From a6e8d0fcd97795ef39dbd4a48efe451fc175f61d Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 23 Mar 2021 20:14:43 +0100 Subject: [PATCH] moved opengraph meta tags to another partial --- layouts/partials/head.html | 17 +------------- layouts/partials/head_meta_opengraph.html | 27 +++++++++++++++++++++++ 2 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 layouts/partials/head_meta_opengraph.html diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8b42530..b8be4c9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -28,20 +28,5 @@ {{ $style := resources.Get "/scss/style.scss" | resources.ExecuteAsTemplate "/scss/style.scss" . | resources.ToCSS (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") | resources.Fingerprint "sha512" }} {{- partial "inject/head.html" . -}} - - {{ if .IsPage }} - - - - - - {{ range .Params.tags }} - - {{ end }} - - - - {{ else }} - - {{ end }} + {{- partial "head_meta_opengraph.html" . -}} diff --git a/layouts/partials/head_meta_opengraph.html b/layouts/partials/head_meta_opengraph.html new file mode 100644 index 0000000..b8bd1bb --- /dev/null +++ b/layouts/partials/head_meta_opengraph.html @@ -0,0 +1,27 @@ + +{{ if .IsPage }} + + + + + + {{ range .Params.tags }} + + {{ end }} + + + +{{ else }} + + + +{{ end }}