From 900bb5e845c3ad44defbd427cae3d44a4a43321f Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 25 Feb 2023 13:15:44 +0100 Subject: feat: Initial commit --- code/frontpage/layouts/partials/head/seo.html | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 code/frontpage/layouts/partials/head/seo.html (limited to 'code/frontpage/layouts/partials/head/seo.html') diff --git a/code/frontpage/layouts/partials/head/seo.html b/code/frontpage/layouts/partials/head/seo.html new file mode 100644 index 0000000..ac31d72 --- /dev/null +++ b/code/frontpage/layouts/partials/head/seo.html @@ -0,0 +1,48 @@ +{{ if eq .Kind "404" -}} + +{{ else -}} + {{ with .Params.robots -}} + + {{ else -}} + + + + {{ end -}} +{{ end -}} + +{{ if .IsHome -}} + {{ .Site.Params.title }} {{ .Site.Params.titleSeparator }} {{ .Site.Params.titleAddition }} +{{ else -}} + {{ .Title }} {{ .Site.Params.titleSeparator }} {{ .Site.Params.title }} +{{ end -}} + +{{ with .Description -}} + +{{ else -}} + {{ with .Summary | plainify -}} + + {{ else -}} + + {{ end -}} +{{ end -}} + +{{ if $.Scratch.Get "paginator" }} + + {{ if .Paginator.HasPrev -}} + + {{ end -}} + {{ if .Paginator.HasNext -}} + + {{ end -}} +{{ else -}} + +{{ end -}} + +{{ partial "head/opengraph.html" . }} +{{ partial "head/twitter_cards.html" . }} + +{{ range .AlternativeOutputFormats -}} + +{{ end -}} + +{{ partial "head/structured-data.html" . }} -- cgit v1.3