🤖 Feat(SEO): optimize SEO keywords meta (#30)

This commit is contained in:
Cell
2022-01-13 10:30:03 +08:00
parent 6a9b2a6a0e
commit df735f6249
+1 -1
View File
@@ -2,7 +2,7 @@
<meta name="author" content="{{ .Site.Author.name }}: {{ .Site.Author.link }}">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
<meta name="keywords" content="{{ range $index, $keyword := .Site.Params.keywords }}{{ if ne $index 0 }},{{ end }}{{ $keyword }}{{ end }}" />
<meta name="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ if ne $index 0 }},{{ end }}{{ $tag }}{{ end }}{{ else }}{{ range $index, $keyword := .Site.Params.keywords }}{{ if ne $index 0 }},{{ end }}{{ $keyword }}{{ end }}{{ end }}" />
{{- template "_internal/schema.html" . -}}
{{- template "_internal/opengraph.html" . -}}