feat: Setting for enabling animated favicon

This commit is contained in:
daudix-UFO
2023-10-14 04:10:55 +00:00
parent 32727be002
commit f25e5421ef
3 changed files with 6 additions and 1 deletions

View File

@ -54,6 +54,7 @@ $accent-color: #HEX_COLOR_CODE;
### `[extra]` variables: ### `[extra]` variables:
- `accent_color`: Accent color used in some browsers set in metadata, for actual accent color see `themes/duckquill/sass/_variables.scss` - `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_title`: The title of the blog, used in `/blog`
- `blog_description`: The description of the blog, displayed right under the blog title - `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 - `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

View File

@ -23,8 +23,9 @@ smart_punctuation = true
[extra] [extra]
accent_color = "#ff7800" 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_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" date_format = "%d %B %Y"
hosting = "Codeberg" hosting = "Codeberg"
issues_url = "https://git.exozy.me/daudix/duckquill/issues" issues_url = "https://git.exozy.me/daudix/duckquill/issues"

View File

@ -9,8 +9,11 @@
<link href="{{ get_url(path='style.css') }}" rel="stylesheet" /> <link href="{{ get_url(path='style.css') }}" rel="stylesheet" />
<link href="{{ get_url(path='custom.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" /> <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" /> <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="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 }}" /> <link rel="me" href="https://{{ config.extra.comments.host }}/@{{ config.extra.comments.user }}" />