fix issue with tags/keywords not set

This commit is contained in:
Nishant Srivastava 2020-03-03 22:20:23 +01:00
parent a287af5467
commit 1faef362e3
1 changed files with 6 additions and 2 deletions

View File

@ -3,9 +3,13 @@
{{ end }}
<meta name="description" content="{{ $.Param "description" }}" />
{{ if isset .Params "keywords" }}
<meta name="keywords" content="{{ delimit .Keywords "," }}">
{{ with $.Params.keywords }}
<meta name="keywords" content="{{ delimit $.Params.keywords "," }}">
{{ end }}
{{ else if isset .Params "tags" }}
<meta name="keywords" content="{{ delimit .Params.tags "," }}">
{{ with $.Params.tags }}
<meta name="keywords" content="{{ delimit $.Params.tags "," }}">
{{ end }}
{{ end }}
<meta name="created" content="{{ .Date.Format "2006-01-02T15:04:05-0700" }}">
<meta name="modified" content="{{ .Lastmod.Format "2006-01-02T15:04:05-0700" }}">