diff options
-rw-r--r-- | exampleSite/config.toml | 6 | ||||
-rw-r--r-- | exampleSite/static/example16.png | bin | 0 -> 415 bytes | |||
-rw-r--r-- | exampleSite/static/example32.png | bin | 0 -> 703 bytes | |||
-rw-r--r-- | exampleSite/static/favicon.ico | bin | 0 -> 15406 bytes | |||
-rw-r--r-- | layouts/partials/header.html | 4 |
5 files changed, 8 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4cb5a8d..5c0e7be 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -85,7 +85,6 @@ unsafe = true [params] title = "Alpha Church" subtitle = "Another Church Theme" - #favicon = "/example.ico" author = "Daniel Saunders" keywords = ["theme", "hugo", "podcast"] languageCode = "en" # For accessibility this needs to be set. You can find all language codes at https://www.w3schools.com/tags/ref_language_codes.asp @@ -95,6 +94,11 @@ unsafe = true customCSS = ["example.css"] + [params.favicon] + sml = "/example16.png" + med = "/example32.png" + #lge = "example96.png" + [params.banner] image = "img/banner.jpg" diff --git a/exampleSite/static/example16.png b/exampleSite/static/example16.png Binary files differnew file mode 100644 index 0000000..c415b55 --- /dev/null +++ b/exampleSite/static/example16.png diff --git a/exampleSite/static/example32.png b/exampleSite/static/example32.png Binary files differnew file mode 100644 index 0000000..7f182ad --- /dev/null +++ b/exampleSite/static/example32.png diff --git a/exampleSite/static/favicon.ico b/exampleSite/static/favicon.ico Binary files differnew file mode 100644 index 0000000..9173fb1 --- /dev/null +++ b/exampleSite/static/favicon.ico diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8f360c9..883bbeb 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -21,7 +21,9 @@ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{- end -}} {{ hugo.Generator }} - {{- with .Site.Params.favicon}}<link rel="shortcut icon" href="{{ . }}" />{{ end -}} + {{- with .Site.Params.Favicon.sml}}<link rel="shortcut icon" href="{{ . }}" sizes="16x16"/>{{ end -}} + {{- with .Site.Params.Favicon.med}}<link rel="shortcut icon" href="{{ . }}" sizes="32x32"/>{{ end -}} + {{- with .Site.Params.Favicon.lge}}<link rel="shortcut icon" href="{{ . }}" sizes="96x96"/>{{ end -}} {{ with .Site.Params.Podcast.itunes }} <meta name="apple-itunes-app" content="app-id={{ replaceRE "https\\:\\/\\/itunes\\.apple\\.com\\/[a-z]{2}\\/podcast\\/[a-z\\-]*\\/id(\\d{10}).*" "$1" . }}" /> {{ end }} |