From e9ec93a471d9a753db01b682e75c52b32adf16f2 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 18 Feb 2021 21:44:01 +0100 Subject: use LoveIt theme, self hosted --- themes/LoveIt/layouts/partials/head/link.html | 51 +++++++++ themes/LoveIt/layouts/partials/head/meta.html | 17 +++ themes/LoveIt/layouts/partials/head/seo.html | 153 ++++++++++++++++++++++++++ 3 files changed, 221 insertions(+) create mode 100644 themes/LoveIt/layouts/partials/head/link.html create mode 100644 themes/LoveIt/layouts/partials/head/meta.html create mode 100644 themes/LoveIt/layouts/partials/head/seo.html (limited to 'themes/LoveIt/layouts/partials/head') diff --git a/themes/LoveIt/layouts/partials/head/link.html b/themes/LoveIt/layouts/partials/head/link.html new file mode 100644 index 0000000..080a1f9 --- /dev/null +++ b/themes/LoveIt/layouts/partials/head/link.html @@ -0,0 +1,51 @@ +{{- $cdn := .Scratch.Get "cdn" | default dict -}} +{{- $fingerprint := .Scratch.Get "fingerprint" -}} + +{{- if not .Site.Params.app.noFavicon -}} + {{- with .Site.Params.app.svgFavicon -}} + + {{- else -}} + + + + {{- end -}} + + {{- with .Site.Params.app.iconColor -}} + + {{- end -}} + +{{- end -}} + + +{{- if .PrevInSection -}} + +{{- end -}} +{{- if .NextInSection -}} + +{{- end -}} + +{{- with .OutputFormats.Get "RSS" -}} + + +{{- end -}} + +{{- /* normalize.css */ -}} +{{- $source := $cdn.normalizeCSS | default "lib/normalize/normalize.min.css" -}} +{{- $style := dict "Source" $source "Fingerprint" $fingerprint -}} +{{- partial "plugin/style.html" $style -}} + +{{- /* style.min.css */ -}} +{{- $style := dict "Source" "css/style.scss" "Fingerprint" $fingerprint -}} +{{- $options := dict "targetPath" "css/style.min.css" "enableSourceMap" true -}} +{{- $style = dict "Context" . "ToCSS" $options | merge $style -}} +{{- partial "plugin/style.html" $style -}} + +{{- /* Font Awesome */ -}} +{{- $source := $cdn.fontawesomeFreeCSS | default "lib/fontawesome-free/all.min.css" -}} +{{- $style := dict "Source" $source "Fingerprint" $fingerprint -}} +{{- partial "plugin/style.html" $style -}} + +{{- /* Animate.css */ -}} +{{- $source := $cdn.animateCSS | default "lib/animate/animate.min.css" -}} +{{- $style := dict "Source" $source "Fingerprint" $fingerprint -}} +{{- partial "plugin/style.html" $style -}} diff --git a/themes/LoveIt/layouts/partials/head/meta.html b/themes/LoveIt/layouts/partials/head/meta.html new file mode 100644 index 0000000..0862b83 --- /dev/null +++ b/themes/LoveIt/layouts/partials/head/meta.html @@ -0,0 +1,17 @@ +{{- $params := .Scratch.Get "params" -}} + + + +{{- template "_internal/opengraph.html" . -}} +{{- template "_internal/twitter_cards.html" . -}} + + + + +{{- with .Site.Params.app.themeColor -}} + +{{- end -}} + +{{- with .Site.Params.app.tileColor -}} + +{{- end -}} diff --git a/themes/LoveIt/layouts/partials/head/seo.html b/themes/LoveIt/layouts/partials/head/seo.html new file mode 100644 index 0000000..d431ad0 --- /dev/null +++ b/themes/LoveIt/layouts/partials/head/seo.html @@ -0,0 +1,153 @@ +{{- $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 -}} + +{{- /* Home SEO */ -}} +{{- if .IsHome -}} + + +{{- /* Page SEO */ -}} +{{- else if .IsPage -}} + +{{- end -}} -- cgit v1.2.3