Prevent articles in the article list from having multiple visual types at once, bump to v5.3.0
This commit is contained in:
@ -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/),
|
||||
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
|
||||
|
||||
@ -15,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Allow enabling KaTeX per page/section.
|
||||
- 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.
|
||||
|
||||
## 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.
|
||||
- Make comment actions slimmer.
|
||||
- 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.
|
||||
- Move paginator from `articles.html` to `article-list.html`.
|
||||
- Tweak styling of `details`.
|
||||
|
@ -70,7 +70,7 @@ It is highly recommended to switch from the `main` branch to the latest release:
|
||||
|
||||
```bash
|
||||
cd themes/duckquill
|
||||
git checkout tags/v5.2.0
|
||||
git checkout tags/v5.3.0
|
||||
```
|
||||
|
||||
Then, enable it in your `config.toml`:
|
||||
@ -84,7 +84,7 @@ To update the theme, simply switch to a new tag:
|
||||
```bash
|
||||
git submodule update --remote --merge
|
||||
cd themes/duckquill
|
||||
git checkout tags/v5.2.0
|
||||
git checkout tags/v5.3.0
|
||||
```
|
||||
|
||||
{% 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.
|
||||
- `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.
|
||||
- `katex`: Whether to enable the KaTeX library for rendering LaTeX.
|
||||
|
||||
Other variables:
|
||||
|
||||
|
@ -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
|
||||
* Licensed under MIT (https://codeberg.org/daudix/duckquill/src/branch/main/LICENSE)
|
||||
*/
|
||||
|
11
templates/partials/article_type.html
Normal file
11
templates/partials/article_type.html
Normal 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 -%}
|
@ -8,37 +8,28 @@
|
||||
|
||||
<div id="article-list">
|
||||
{%- for page in pages %}
|
||||
<article class="
|
||||
{% 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 %}">
|
||||
<article {% include "partials/article_type.html" %}>
|
||||
{%- if page.draft %}
|
||||
<span class="draft-badge">
|
||||
<i class="icon"></i>
|
||||
{{- macros_translate::translate(key="drafted", default="Drafted", language_strings=language_strings) -}}
|
||||
</span>
|
||||
{%- endif -%}
|
||||
{%- if page.extra.archive %}
|
||||
{%- elif page.extra.archive %}
|
||||
<span class="archive-badge">
|
||||
<i class="icon"></i>
|
||||
{{- macros_translate::translate(key="archived", default="Archived", language_strings=language_strings) -}}
|
||||
</span>
|
||||
{%- endif %}
|
||||
{%- if page.extra.featured %}
|
||||
{%- elif page.extra.featured %}
|
||||
<span class="featured-badge">
|
||||
<i class="icon"></i>
|
||||
{{- macros_translate::translate(key="featured", default="Featured", language_strings=language_strings) -}}
|
||||
</span>
|
||||
{%- endif %}
|
||||
{%- if page.extra.hot %}
|
||||
{%- elif page.extra.hot %}
|
||||
<span class="hot-badge">
|
||||
<i class="icon"></i>
|
||||
{{- macros_translate::translate(key="hot", default="Hot", language_strings=language_strings) -}}
|
||||
</span>
|
||||
{%- endif %}
|
||||
{%- if page.extra.poor %}
|
||||
{%- elif page.extra.poor %}
|
||||
<span class="poor-badge">
|
||||
<i class="icon"></i>
|
||||
{{- macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -}}
|
||||
|
Reference in New Issue
Block a user