Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/funkydan2/alpha-church.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Saunders <daniel.saunders@gmail.com>2021-05-08 13:05:34 +0300
committerDaniel Saunders <daniel.saunders@gmail.com>2021-05-08 13:05:34 +0300
commitfba45c18165bde386be3346e00a0de1ca6b98d2a (patch)
tree550d0e3e0f1c631c8efb39cd54bd748fd51de789
parent8c4e055a2251724f42c5654522b1d370fc5a5647 (diff)
Next Level Favicon
-rw-r--r--exampleSite/config.toml6
-rw-r--r--exampleSite/static/example16.pngbin0 -> 415 bytes
-rw-r--r--exampleSite/static/example32.pngbin0 -> 703 bytes
-rw-r--r--exampleSite/static/favicon.icobin0 -> 15406 bytes
-rw-r--r--layouts/partials/header.html4
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
new file mode 100644
index 0000000..c415b55
--- /dev/null
+++ b/exampleSite/static/example16.png
Binary files differ
diff --git a/exampleSite/static/example32.png b/exampleSite/static/example32.png
new file mode 100644
index 0000000..7f182ad
--- /dev/null
+++ b/exampleSite/static/example32.png
Binary files differ
diff --git a/exampleSite/static/favicon.ico b/exampleSite/static/favicon.ico
new file mode 100644
index 0000000..9173fb1
--- /dev/null
+++ b/exampleSite/static/favicon.ico
Binary files differ
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 }}