Fix: unique meta descriptions from articles

fixes 🐛 #377

The Meta description tag is now generated from either
1. page description, or
2. Page content summary, or
3. Site wide config
pull/378/head
Glenn Roberts 2022-11-21 13:05:28 +10:00
parent c54e1fddf4
commit 2739549fae
1 changed files with 1 additions and 3 deletions

View File

@ -14,9 +14,7 @@
<meta name="title" content="{{ .Title | emojify }} &middot; {{ .Site.Title | emojify }}" /> <meta name="title" content="{{ .Title | emojify }} &middot; {{ .Site.Title | emojify }}" />
{{- end }} {{- end }}
{{/* Metadata */}} {{/* Metadata */}}
{{ with .Site.Params.description -}} <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
<meta name="description" content="{{ . }}" />
{{- end }}
{{ with .Site.Params.keywords -}} {{ with .Site.Params.keywords -}}
<meta name="keywords" content="{{ . }}" /> <meta name="keywords" content="{{ . }}" />
{{- end }} {{- end }}