feat: Setting for enabling animated favicon
This commit is contained in:
@ -54,6 +54,7 @@ $accent-color: #HEX_COLOR_CODE;
|
||||
### `[extra]` variables:
|
||||
|
||||
- `accent_color`: Accent color used in some browsers set in metadata, for actual accent color see `themes/duckquill/sass/_variables.scss`
|
||||
- `animated_favicon`: Specify if the favicon are animated GIF (true, false)
|
||||
- `blog_title`: The title of the blog, used in `/blog`
|
||||
- `blog_description`: The description of the blog, displayed right under the blog title
|
||||
- `date_format`: Allows setting custom date format in [Tera](https://keats.github.io/tera) format, all available variables are listed [here](https://docs.rs/chrono/0.4.31/chrono/format/strftime/index.html). Does not apply to comments
|
||||
|
@ -23,8 +23,9 @@ smart_punctuation = true
|
||||
|
||||
[extra]
|
||||
accent_color = "#ff7800"
|
||||
blog_title = "Writings of Duck's Feet"
|
||||
animated_favicon = false
|
||||
blog_description = "Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo"
|
||||
blog_title = "Writings of Duck's Feet"
|
||||
date_format = "%d %B %Y"
|
||||
hosting = "Codeberg"
|
||||
issues_url = "https://git.exozy.me/daudix/duckquill/issues"
|
||||
|
@ -9,8 +9,11 @@
|
||||
<link href="{{ get_url(path='style.css') }}" rel="stylesheet" />
|
||||
<link href="{{ get_url(path='custom.css') }}" rel="stylesheet" />
|
||||
|
||||
{% if config.extra.animated_favicon %}
|
||||
<link rel="icon" type="image/gif" href="{{ config.base_url }}/favicon.gif" />
|
||||
{% else %}
|
||||
<link rel="icon" type="image/png" href="{{ config.base_url }}/favicon.png" />
|
||||
{% endif %}
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ config.base_url }}/apple-touch-icon.png" />
|
||||
<link rel="me" href="https://{{ config.extra.comments.host }}/@{{ config.extra.comments.user }}" />
|
||||
|
||||
|
Reference in New Issue
Block a user