diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html new file mode 100644 index 0000000..5d879b3 --- /dev/null +++ b/layouts/partials/head/seo.html @@ -0,0 +1,169 @@ +{{- $params := .Scratch.Get "params" -}} + +{{- with .Site.Params.verification.google -}} + +{{- end -}} +{{- with .Site.Params.verification.bing -}} + +{{- end -}} +{{- with .Site.Params.verification.yandex -}} + +{{- end -}} +{{- with .Site.Params.verification.pinterest -}} + +{{- end -}} +{{- with .Site.Params.verification.baidu -}} + +{{- end -}} +{{- with .Site.Params.verification.so -}} + +{{- end -}} +{{- with .Site.Params.verification.sogou -}} + +{{- end -}} + + + +{{- /* Home SEO */ -}} +{{- if .IsHome -}} + + +{{- /* Page SEO */ -}} +{{- else if .IsPage -}} + {{- $authorName := .Site.Params.author.name | default (T "single.author") -}} + {{- with .Params.author -}} + {{- if reflect.IsMap . -}} + {{- $authorName = cond (isset . "name") .name $authorName -}} + {{- else -}} + {{- $authorName = . -}} + {{- end -}} + {{- end -}} + +{{- end -}}