Prevent articles in the article list from having multiple visual types at once, bump to v5.3.0

This commit is contained in:
daudix
2024-09-29 21:29:33 +03:00
parent b98775d61c
commit 4a4f037cd6
5 changed files with 25 additions and 18 deletions

View File

@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v5.2.0...main) ## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v5.3.0...main)
## [5.3.0](https://codeberg.org/daudix/duckquill/compare/v5.2.0...v5.3.0)
### Added ### Added
@ -15,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Allow enabling KaTeX per page/section. - Allow enabling KaTeX per page/section.
- Improve the logic of inclusion feeds in `<head>`. - Improve the logic of inclusion feeds in `<head>`.
- Prevent articles in the article list from having multiple visual types at once (i.e., archived and featured badges at the same time).
- Restly the heading anchors. - Restly the heading anchors.
## Fixed ## Fixed
@ -40,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Get rid of dashed outline on article hover in article list. - Get rid of dashed outline on article hover in article list.
- Make comment actions slimmer. - Make comment actions slimmer.
- Make navabr menu/search open animation nicer (scale up instead of just fading from transparency). - Make navabr menu/search open animation nicer (scale up instead of just fading from transparency).
- More visually interesting dropdown open animation.
- More visually interesting paginator. - More visually interesting paginator.
- Move paginator from `articles.html` to `article-list.html`. - Move paginator from `articles.html` to `article-list.html`.
- Tweak styling of `details`. - Tweak styling of `details`.

View File

@ -70,7 +70,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/v5.2.0 git checkout tags/v5.3.0
``` ```
Then, enable it in your `config.toml`: Then, enable it in your `config.toml`:
@ -84,7 +84,7 @@ To update the theme, simply switch to a new tag:
```bash ```bash
git submodule update --remote --merge git submodule update --remote --merge
cd themes/duckquill cd themes/duckquill
git checkout tags/v5.2.0 git checkout tags/v5.3.0
``` ```
{% alert(important=true) %} {% alert(important=true) %}
@ -111,6 +111,7 @@ Configuration variables from `config.toml` that can be set/overriden per page/se
- `emoji_favicon`: Use emoji as a favicon. Only one emoji is being rendered, everything else is truncated. - `emoji_favicon`: Use emoji as a favicon. Only one emoji is being rendered, everything else is truncated.
- `styles`: Additional CSS styles; expects them to be in the `./static/` directory. If you are using Sass it will be generated there automatically. - `styles`: Additional CSS styles; expects them to be in the `./static/` directory. If you are using Sass it will be generated there automatically.
- `scripts`: Additional JavaScript scripts; expects them to be in the `./static/` directory. - `scripts`: Additional JavaScript scripts; expects them to be in the `./static/` directory.
- `katex`: Whether to enable the KaTeX library for rendering LaTeX.
Other variables: Other variables:

View File

@ -1,5 +1,5 @@
/*! /*!
* Duckquill v5.2.0 (https://duckquill.daudix.one) * Duckquill v5.3.0 (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

@ -0,0 +1,11 @@
{%- if page.draft -%}
class="draft"
{%- elif page.extra.archive -%}
class="archive"
{%- elif page.extra.featured -%}
class="featured"
{%- elif page.extra.hot -%}
class="hot"
{%- elif page.extra.poor -%}
class="poor"
{%- endif -%}

View File

@ -8,37 +8,28 @@
<div id="article-list"> <div id="article-list">
{%- for page in pages %} {%- for page in pages %}
<article class=" <article {% include "partials/article_type.html" %}>
{% if page.draft %}draft{% endif %}
{% if page.extra.archive %}archive{% endif %}
{% if page.extra.featured %}featured{% endif %}
{% if page.extra.hot %}hot{% endif %}
{% if page.extra.poor %}poor{% endif %}">
{%- if page.draft %} {%- if page.draft %}
<span class="draft-badge"> <span class="draft-badge">
<i class="icon"></i> <i class="icon"></i>
{{- macros_translate::translate(key="drafted", default="Drafted", language_strings=language_strings) -}} {{- macros_translate::translate(key="drafted", default="Drafted", language_strings=language_strings) -}}
</span> </span>
{%- endif -%} {%- elif page.extra.archive %}
{%- if page.extra.archive %}
<span class="archive-badge"> <span class="archive-badge">
<i class="icon"></i> <i class="icon"></i>
{{- macros_translate::translate(key="archived", default="Archived", language_strings=language_strings) -}} {{- macros_translate::translate(key="archived", default="Archived", language_strings=language_strings) -}}
</span> </span>
{%- endif %} {%- elif page.extra.featured %}
{%- if page.extra.featured %}
<span class="featured-badge"> <span class="featured-badge">
<i class="icon"></i> <i class="icon"></i>
{{- macros_translate::translate(key="featured", default="Featured", language_strings=language_strings) -}} {{- macros_translate::translate(key="featured", default="Featured", language_strings=language_strings) -}}
</span> </span>
{%- endif %} {%- elif page.extra.hot %}
{%- if page.extra.hot %}
<span class="hot-badge"> <span class="hot-badge">
<i class="icon"></i> <i class="icon"></i>
{{- macros_translate::translate(key="hot", default="Hot", language_strings=language_strings) -}} {{- macros_translate::translate(key="hot", default="Hot", language_strings=language_strings) -}}
</span> </span>
{%- endif %} {%- elif page.extra.poor %}
{%- if page.extra.poor %}
<span class="poor-badge"> <span class="poor-badge">
<i class="icon"></i> <i class="icon"></i>
{{- macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -}} {{- macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -}}