From ad0fe1db150d86f7f5c14af35ec2ab16920ba0f5 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sat, 14 Aug 2021 10:47:33 +1000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20favicons=20partial=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/footer.html | 9 ++++----- layouts/partials/head.html | 12 ++++++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c2cb0448..f19a05ba 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -18,13 +18,12 @@ Congo

{{ end }} + {{/* Extend footer - eg. for extra scripts, etc. */}} + {{ if templates.Exists "partials/extend-footer.html" }} + {{ partialCached "extend-footer.html" . }} + {{ end }} -{{/* Extend footer - eg. for extra scripts, etc. */}} -{{ if templates.Exists "partials/extend-footer.html" }} - {{ partialCached "extend-footer.html" . }} -{{ end }} - {{/* Include mermaid.js only on pages that use the shortcode */}} {{- if (in (string .Content) "class=\"mermaid\"") -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2026d460..93520d5e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -29,10 +29,14 @@ {{- end }} {{/* Icons */}} - - - - + {{ if templates.Exists "partials/favicons.html" }} + {{ partialCached "favicons.html" .Site }} + {{ else }} + + + + + {{ end }} {{/* Site Verification */}} {{ with .Site.Params.verification.google }}