From c055dd0766b225bf154661aa98f019e37b9206e0 Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Wed, 1 Dec 2021 21:54:50 +0000 Subject: [PATCH] Favicon --- assets/images/logo.svg | 38 ++++++++++++++++++++++---------------- config.toml | 5 +++++ layouts/partials/head.html | 10 ++++++---- layouts/partials/nav.html | 2 +- 4 files changed, 34 insertions(+), 21 deletions(-) diff --git a/assets/images/logo.svg b/assets/images/logo.svg index 4fa6928..dfd38f4 100644 --- a/assets/images/logo.svg +++ b/assets/images/logo.svg @@ -1,14 +1,20 @@ + + {{ $cssoptions := (dict "outputStyle" .Site.Params.scssOutputStyle "enableSourceMap" .Site.Params.scssEnableSourceMap) }} + - {{ $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint "sha512" }} + {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $cssoptions | resources.Fingerprint "sha512" }} - {{ $font := resources.Get "sass/nunitosans.scss" | resources.ExecuteAsTemplate "sass/nunitosans.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint "sha512" }} + {{ $font := resources.Get "sass/nunitosans.scss" | resources.ExecuteAsTemplate "sass/nunitosans.scss" . | resources.ToCSS $cssoptions | resources.Fingerprint "sha512" }} - {{ $logo := resources.Get "images/logo.svg" | resources.ExecuteAsTemplate "images/logo.svg" . | resources.Minify}} - + {{ $favicon := resources.Get "images/logo.svg" | resources.ExecuteAsTemplate "images/favicon.svg" (dict "ctx" . "type" "favicon") | resources.Minify}} + {{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 1f2b836..bec5412 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,7 +1,7 @@