Merge branch 'main' into main

This commit is contained in:
maxletemple
2024-08-28 09:16:56 +00:00
6 changed files with 31 additions and 6 deletions

View File

@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v4.7.0...main) ## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v4.7.0...main)
## [4.7.1](https://codeberg.org/daudix/duckquill/compare/v4.7.0...v4.7.1) - 2024-08-28
### Changed
- Don't use `safe` on `primary_color` default variables since they don't need it.
- Make commented-out config variables easier to find.
### Fixed
- Don't wrap sentences in navbar dropdowns.
## [4.7.0](https://codeberg.org/daudix/duckquill/compare/v4.6.0...v4.7.0) - 2024-08-27 ## [4.7.0](https://codeberg.org/daudix/duckquill/compare/v4.6.0...v4.7.0) - 2024-08-27
### Added ### Added

View File

@ -37,4 +37,4 @@ There are several ways to contribute to this project:
When making any sort of contribution, please make sure to follow [Forgejo's Code of Conduct](https://codeberg.org/forgejo/code-of-conduct). If you don't have the time to read it, just know that all you have to do is be nice, and you'll be just fine. When making any sort of contribution, please make sure to follow [Forgejo's Code of Conduct](https://codeberg.org/forgejo/code-of-conduct). If you don't have the time to read it, just know that all you have to do is be nice, and you'll be just fine.
*</> with <3 by [daudix](https://daudix.codeberg.page) | README based on [libreivan's](https://codeberg.org/libreivan/libreivan.com)* *</> with <3 by [daudix](https://daudix.one) | README based on [libreivan's](https://codeberg.org/libreivan/libreivan.com)*

View File

@ -55,7 +55,9 @@ taxonomies = [{ name = "tags", feed = true }]
# Which theme should be used by default (light/dark). # Which theme should be used by default (light/dark).
# Strongly recommended to use this only with the manual theme switcher enabled, # Strongly recommended to use this only with the manual theme switcher enabled,
# it's important for a11y. # it's important for a11y.
#
# default_theme = "dark" # default_theme = "dark"
#
# Sets theme and browser theme color. # Sets theme and browser theme color.
# See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color # See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color
primary_color = "#ff7800" primary_color = "#ff7800"
@ -67,27 +69,35 @@ primary_color_dark = "#ffa348"
primary_color_dark_alpha = "rgb(255 163 72 / 0.2)" primary_color_dark_alpha = "rgb(255 163 72 / 0.2)"
# Whether to fix low contrast in text selection, checkboxes, etc. # Whether to fix low contrast in text selection, checkboxes, etc.
# Use only if the default doesn't provide enough contrast, e.g. the primary color is set to yellow. # Use only if the default doesn't provide enough contrast, e.g. the primary color is set to yellow.
#
# fix_contrast = true # fix_contrast = true
#
# Ditto but for the dark mode. # Ditto but for the dark mode.
fix_contrast_dark = true fix_contrast_dark = true
# Use emoji as a favicon. # Use emoji as a favicon.
# Only one emoji is being rendered, everything else is truncated. # Only one emoji is being rendered, everything else is truncated.
#
# emoji_favicon = "🦆🪶" # emoji_favicon = "🦆🪶"
#
# URL to website's issue tracker # URL to website's issue tracker
issues_url = "https://codeberg.org/daudix/duckquill/issues" issues_url = "https://codeberg.org/daudix/duckquill/issues"
# URL to website's source code # URL to website's source code
source_url = "https://codeberg.org/daudix/duckquill" source_url = "https://codeberg.org/daudix/duckquill"
# Additional CSS stylesheets; expects them to be in the "./static/" directory. # Additional CSS stylesheets; expects them to be in the "./static/" directory.
# If you are using Sass it will be generated there automatically. # If you are using Sass it will be generated there automatically.
#
# stylesheets = [ # stylesheets = [
# "YOUR_STYLE.css", # "YOUR_STYLE.css",
# "ALSO_YOUR_STYLE.css" # "ALSO_YOUR_STYLE.css"
# ] # ]
#
# Additional JavaScript scripts; expects them to be in the "./static/" directory. # Additional JavaScript scripts; expects them to be in the "./static/" directory.
#
# scripts = [ # scripts = [
# "YOUR_SCRIPT.js", # "YOUR_SCRIPT.js",
# "ALSO_YOUR_SCRIPT.js" # "ALSO_YOUR_SCRIPT.js"
# ] # ]
#
# Whether to show "copy code" button on all code blocks # Whether to show "copy code" button on all code blocks
# that have the language set. # that have the language set.
# See https://www.getzola.org/documentation/content/syntax-highlighting/ # See https://www.getzola.org/documentation/content/syntax-highlighting/
@ -143,6 +153,7 @@ show_powered_by = true
# Whether to show link to website source # Whether to show link to website source
show_source = false show_source = false
# Custom copyright text # Custom copyright text
#
# copyright = "© *Aperture* **Science** ~~Innovators~~, `1972`" # copyright = "© *Aperture* **Science** ~~Innovators~~, `1972`"
# Based on https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/ # Based on https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/
@ -164,6 +175,8 @@ show_qr = true
# GoatCounter analytics; enabled only if present in config. # GoatCounter analytics; enabled only if present in config.
[extra.goatcounter] [extra.goatcounter]
# Your GoatCounter server; goatcounter.com is used by default. # Your GoatCounter server; goatcounter.com is used by default.
#
# host = "YOUR_SERVER" # host = "YOUR_SERVER"
#
# Your GoatCounter username # Your GoatCounter username
user = "duckquill" user = "duckquill"

View File

@ -52,7 +52,7 @@ It is highly recommended to switch from the `main` branch to the latest release:
```bash ```bash
cd themes/duckquill cd themes/duckquill
git checkout tags/v4.7.0 git checkout tags/v4.7.1
``` ```
To update the submodule, simply switch to a new tag: To update the submodule, simply switch to a new tag:
@ -64,7 +64,7 @@ Check the changelog for all versions that came after the one you are using, ther
```bash ```bash
git submodule update --remote --merge git submodule update --remote --merge
git tag --list git tag --list
git checkout tags/v4.7.0 git checkout tags/v4.7.1
``` ```
Then, enable it in your `config.toml`: Then, enable it in your `config.toml`:
@ -169,6 +169,7 @@ Files named `favicon.png` and `apple-touch-icon.png` are used as favicon and app
- [rbd.gg](https://www.rbd.gg) - [rbd.gg](https://www.rbd.gg)
- [rerere.unlogic.co.uk](https://rerere.unlogic.co.uk) - [rerere.unlogic.co.uk](https://rerere.unlogic.co.uk)
- [rossjr.dev](https://rossjr.dev) - [rossjr.dev](https://rossjr.dev)
- [shrimple.srht.site](https://shrimple.srht.site)
- [siddharthsabron.in](https://siddharthsabron.in) - [siddharthsabron.in](https://siddharthsabron.in)
- [skaven.org](https://skaven.org) - [skaven.org](https://skaven.org)
- [sorg.codeberg.page](https://sorg.codeberg.page) - [sorg.codeberg.page](https://sorg.codeberg.page)

View File

@ -1,5 +1,5 @@
/*! /*!
* Duckquill v4.7.0 (https://duckquill.daudix.one) * Duckquill v4.7.1 (https://duckquill.daudix.one)
* Copyright 2024 David "Daudix" Lapshin * Copyright 2024 David "Daudix" Lapshin
* Licensed under MIT (https://codeberg.org/daudix/duckquill/src/branch/main/LICENSE) * Licensed under MIT (https://codeberg.org/daudix/duckquill/src/branch/main/LICENSE)
*/ */

View File

@ -3,7 +3,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="description" content="{{ config.description }}" /> <meta name="description" content="{{ config.description }}" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="{{ config.extra.primary_color | default(value='#9a9996' | safe) | safe }}" /> <meta name="theme-color" content="{{ config.extra.primary_color | default(value='#9a9996') | safe }}" />
{%- if config.extra.primary_color_dark %} {%- if config.extra.primary_color_dark %}
<meta name="theme-color" content="{{ config.extra.primary_color_dark | safe }}" media="(prefers-color-scheme:dark)" /> <meta name="theme-color" content="{{ config.extra.primary_color_dark | safe }}" media="(prefers-color-scheme:dark)" />
{%- endif %} {%- endif %}
@ -56,7 +56,7 @@
<style type="text/css"> <style type="text/css">
:root { :root {
--primary-color: {{ config.extra.primary_color | default(value="#6f8396" | safe) | safe }}; --primary-color: {{ config.extra.primary_color | default(value="#6f8396") | safe }};
--primary-color-alpha: {{ config.extra.primary_color_alpha | default(value="rgb(111 131 150 / 0.2)" | safe) | safe }}; --primary-color-alpha: {{ config.extra.primary_color_alpha | default(value="rgb(111 131 150 / 0.2)" | safe) | safe }};
--contrast-color: {% if config.extra.fix_contrast %}rgb(0 0 0 / 0.8){% else %}#fff{% endif %}; --contrast-color: {% if config.extra.fix_contrast %}rgb(0 0 0 / 0.8){% else %}#fff{% endif %};
} }