Skip to content

Commit

Permalink
fix: the keywords meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 28, 2023
1 parent 96dfcd3 commit 3852f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- partialCached "head/favicons" . }}
<meta name="keywords" content="{{ if .IsPage }}{{ delimit .Keywords ", " }}{{ else }}{{ $.Site.Params.keywords }}{{ end }}" />
<meta name="keywords" content="{{ with .Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.keywords }}{{ end }}" />
{{- $description := default .Site.Params.description (default .Summary .Description) }}
{{- with $description }}
<meta name="description" content="{{ . }}" />
Expand Down

0 comments on commit 3852f9c

Please sign in to comment.