diff --git a/exampleSite/assets/img/favicon.png b/exampleSite/assets/img/favicon.png
new file mode 100644
index 0000000..74e8efa
Binary files /dev/null and b/exampleSite/assets/img/favicon.png differ
diff --git a/exampleSite/assets/img/logo.jpg b/exampleSite/assets/img/logo.jpg
new file mode 100644
index 0000000..145804e
Binary files /dev/null and b/exampleSite/assets/img/logo.jpg differ
diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml
index b672b31..a87c986 100644
--- a/exampleSite/config/_default/params.toml
+++ b/exampleSite/config/_default/params.toml
@@ -1,6 +1,7 @@
mainSections = ["post"]
featuredImageField = "image"
rssFullContent = true
+favicon = "img/favicon.png"
[footer]
since = 2020
@@ -16,7 +17,7 @@ subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
[sidebar.avatar]
enabled = true
local = true
-src = "img/avatar.png"
+src = "img/logo.jpg"
[article]
math = false
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html
index 4d89b89..826ef3c 100644
--- a/layouts/partials/head/head.html
+++ b/layouts/partials/head/head.html
@@ -18,7 +18,12 @@
{{- end -}}
{{ with .Site.Params.favicon }}
-
+ {{ $favicon := resources.Get . }}
+ {{ if $favicon }}
+
+ {{ else }}
+ {{ errorf "Failed loading favicon from %q" . }}
+ {{ end }}
{{ end }}
{{- template "_internal/google_analytics.html" . -}}