mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-09 12:11:05 +01:00
Add favicon support
This commit is contained in:
parent
34047623ff
commit
df84c55f4c
14
README.md
14
README.md
|
@ -303,6 +303,20 @@ use_full_hack_font = true
|
|||
|
||||
Also see [Hack's docs](https://github.com/source-foundry/Hack/blob/master/docs/WEBFONT_USAGE.md).
|
||||
|
||||
### Favicon
|
||||
|
||||
The theme supports adding a global favicon (applies to
|
||||
all pages) to the site:
|
||||
|
||||
```toml
|
||||
# Optional: Global favicon URL and mimetype.
|
||||
# Mimetype defaults to "image/x-icon".
|
||||
# The URL should point at a file located
|
||||
# in your site's "static" directory.
|
||||
favicon = "/favicon.png"
|
||||
favicon_mimetype = "image/png"
|
||||
```
|
||||
|
||||
All the configuration options are also described in
|
||||
[`config.toml`](../blob/master/config.toml).
|
||||
|
||||
|
|
|
@ -70,3 +70,10 @@ post_view_navigation_prompt = "Thanks for reading! Read other posts?"
|
|||
# Switch this to true if you need full unicode support.
|
||||
# Defaults to false.
|
||||
use_full_hack_font = false
|
||||
|
||||
# Optional: Global favicon URL and mimetype.
|
||||
# Mimetype defaults to "image/x-icon".
|
||||
# The URL should point at a file located
|
||||
# in your site's "static" directory.
|
||||
# favicon = "/favicon.png"
|
||||
# favicon_mimetype = "image/png"
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") }}">
|
||||
{% endif -%}
|
||||
|
||||
{%- if config.extra.favicon %}
|
||||
<link rel="icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") }}" href="{{ config.extra.favicon }}">
|
||||
{% endif -%}
|
||||
|
||||
{%- block extra_head %}
|
||||
{% endblock extra_head -%}
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue