From c19780280e30855de60767404f7ada0585ddf453 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 26 Sep 2020 23:00:48 +0200 Subject: [PATCH] feat: add "head" block --- layouts/_default/baseof.html | 5 ++++- layouts/partials/head/head.html | 38 ++++++++++++++++----------------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fb6e871..06a31e5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,9 @@ - {{- partial "head/head.html" . -}} + + {{- partial "head/head.html" . -}} + {{- block "head" . -}}{{ end }} +
{{ partial "sidebar/left.html" . }} diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index 9df2ea1..40d9749 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -1,22 +1,20 @@ - - - - - {{- $description := partialCached "data/description" . .RelPermalink -}} - + + - {{- $title := partialCached "data/title" . .RelPermalink -}} - {{ $title }} - - - - {{- partial "head/style.html" . -}} - {{- partial "head/script.html" . -}} - {{- partial "head/opengraph/include.html" . -}} +{{- $description := partialCached "data/description" . .RelPermalink -}} + - {{- range .AlternativeOutputFormats -}} - - {{- end -}} - - {{- partial "head/custom.html" . -}} - \ No newline at end of file +{{- $title := partialCached "data/title" . .RelPermalink -}} +{{ $title }} + + + +{{- partial "head/style.html" . -}} +{{- partial "head/script.html" . -}} +{{- partial "head/opengraph/include.html" . -}} + +{{- range .AlternativeOutputFormats -}} + +{{- end -}} + +{{- partial "head/custom.html" . -}} \ No newline at end of file