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

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQueensferry <queensferry.me@gmail.com>2021-02-25 18:43:10 +0300
committerQueensferry <queensferry.me@gmail.com>2021-02-25 18:44:09 +0300
commit71150357b9d53cc2a030961098ea58be18b1a071 (patch)
tree2d7ee1612bd244579add4491aa668364d36cabf2
parent8b1d56e0362187b5d88122dc55133a8d5a83357d (diff)
feat: customize site favicon (#4)
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/head.html3
-rw-r--r--static/favicon.icobin0 -> 318 bytes
3 files changed, 4 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 32982a4..d6d7be1 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -40,5 +40,6 @@ name = "author"
description = "an example site for hugo theme TeXify"
enableFullRSS = true
enableMathjax = true
+ favicon = "/favicon.ico"
footnote = "Follow me on <a class=link href=https://github.com/queensferryme>GitHub</a>, <a class=link href=https://twitter.com/queensferryme>Twitter</a> or <a class=link href=/index.xml>RSS</a> | <a class=link href=https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh target=_blank rel=noopener>CC BY-NC-SA 4.0</a>"
keywords = ["hugo", "latex", "theme"]
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a56411f..0486ae3 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,6 +14,9 @@
<meta name="description" content="{{ .Site.Params.description }}">
{{ end }}
+<!-- favicon -->
+<link rel="icon" href="{{ .Site.Params.favicon }}">
+
<!-- keywords -->
{{ if .Keywords }}
<meta name="keywords" content="{{ range $key, $value := .Keywords }} {{ $value }} {{ end }}">
diff --git a/static/favicon.ico b/static/favicon.ico
new file mode 100644
index 0000000..ebffbcd
--- /dev/null
+++ b/static/favicon.ico
Binary files differ