diff --git a/CHANGELOG.md b/CHANGELOG.md index e0209d8..653c40e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `h1` with page/section title by default. - Add ability to set accent color per page/section. - Add ability to set default theme per page/section. +- Add ability to set favicon/emoji per page/section. - Add ability to set metadata card per page/section. - Add active state to footer's "Powered by" links. - Add active state to footnotes' go back button. diff --git a/templates/partials/favicon.html b/templates/partials/favicon.html new file mode 100644 index 0000000..6cdc839 --- /dev/null +++ b/templates/partials/favicon.html @@ -0,0 +1,28 @@ + + + + +{%- if page.extra.emoji_favicon or section.extra.emoji_favicon or config.extra.emoji_favicon %} + +{%- endif %} diff --git a/templates/partials/head.html b/templates/partials/head.html index c67cbc1..150990c 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -23,12 +23,7 @@ {%- endif %} - - - - {%- if config.extra.emoji_favicon %} - - {%- endif %} + {%- include "partials/favicon.html" %} {%- if config.generate_feeds and config.feed_filenames %} {%- for feed in config.feed_filenames %} diff --git a/templates/partials/nav.html b/templates/partials/nav.html index e911980..a7e07cd 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -115,10 +115,10 @@ {%- for feed in config.feed_filenames %}