Add keywords front matter support

This commit is contained in:
James Panther
2023-01-10 16:33:33 +11:00
parent 5fbe11611b
commit 3fcd6211a8
3 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -16,8 +16,8 @@
{{- end }}
{{/* Metadata */}}
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
{{ with .Site.Params.keywords -}}
<meta name="keywords" content="{{ . }}" />
{{ with union .Site.Params.keywords .Params.keywords -}}
<meta name="keywords" content="{{ delimit . `, `}}" />
{{- end }}
{{ with .Site.Params.robots }}
<meta name="robots" content="{{ . }}" />