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

github.com/gevhaz/hugo-theme-notrack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbin Ahlbäck <albin.ahlback@gmail.com>2022-03-31 03:09:27 +0300
committerAlbin Ahlbäck <albin.ahlback@gmail.com>2022-03-31 03:09:27 +0300
commit10365e0179cfea06c66830dba85c462b36562c82 (patch)
tree065dd29ac532a9fc8220ba42332615c59d5ac848
parent80916c2ddf43d98c7df2299ae8d6cbd2d488306b (diff)
Add possibility to add favicon
-rw-r--r--layouts/partials/header.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 8abd754..6c67a1d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -3,6 +3,10 @@
<div class="myname">
<h2><a href="{{ default .Site.Home .Site.BaseURL }}">{{ default .Site.Params.Author .Site.Params.siteHeading }}</a></h2>
</div>
+ {{ with .Site.Params.favicon }}
+ <link rel="icon" type="image/ico" href="{{ . | absURL }}">
+ {{ end }}
+
<nav>
<ul class="navbar">
{{- /* info about current page */ -}}