From b5cfdc32b764e7b76d76be737b85d4a1b4f65b1d Mon Sep 17 00:00:00 2001 From: "Joway.CI" Date: Tue, 3 Mar 2020 05:40:32 +0000 Subject: feat: support Open Graph --- layouts/index.html | 2 +- layouts/partials/head.html | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 519f63d..80ef6a7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,5 @@ - + {{ partial "head.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 86d1dd0..c04cf9f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,30 +8,40 @@ {{- if .Site.Params.favicon -}} - + + + {{- end -}} + {{ partial "seo" . }} + {{- if .IsHome -}} {{ .Site.Title }} + {{- else -}} {{ .Title }} - {{ .Site.Title }} + {{- end }} + + {{- if .Params.album -}} + + {{ end }} {{ if not .IsHome -}} - + {{- end }} - + @@ -43,4 +53,4 @@ --> {{ .Site.Params.extraHead | safeHTML }} - + \ No newline at end of file -- cgit v1.2.3