diff --git a/config.toml b/config.toml index b3f5c7c..c61628e 100644 --- a/config.toml +++ b/config.toml @@ -53,9 +53,9 @@ accent_color_dark = "#ffa348" # emoji_favicon = "🦆🪶" # # URL to website's issue tracker -issues_url = "https://codeberg.org/daudix/duckquill/issues" +issues_url = "https://git.aparoksha.dev/david-swift/duckling/issues" # URL to website's source code -source_url = "https://codeberg.org/daudix/duckquill" +source_url = "https://git.aparoksha.dev/david-swift/duckling" # Additional CSS styles; expects them to be in the "./static/" directory. # If you are using Sass it will be generated there automatically. # @@ -151,6 +151,7 @@ links = [ links = [ { url = "@/blog/_index.md", name = "Blog" }, { url = "@/subprojects/_index.md", name = "Subprojects" }, + { url = "@/docs/overview/index.md", name = "Docs" }, { url = "@/demo/index.md", name = "Demo" }, { url = "https://mastodon.de/@david_swift", name = "Developer" } ] @@ -198,7 +199,7 @@ show_qr = true # host = "YOUR_SERVER" # # Your GoatCounter username -user = "duckquill" +user = "duckling" [extra.debug] # Display outlines around all elements for debugging purposes diff --git a/content/_index.md b/content/_index.md index 8553ee3..10502b9 100644 --- a/content/_index.md +++ b/content/_index.md @@ -13,7 +13,7 @@ jgs~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~ # Duckling -Duckquill is an minimal and feature-rich [Zola](https://www.getzola.org) theme that has the purpose of greatly simplifying the process of rolling up your project website. It aims to provide all the necessary options for comfortable writing, while keeping the balance of simplicity. +Duckling is an minimal and feature-rich [Zola](https://www.getzola.org) theme that has the purpose of greatly simplifying the process of rolling up your project website. It aims to provide all the necessary options for comfortable writing, while keeping the balance of simplicity. It is based on the [Duckquill](https://duckquill.daudix.one) theme for blogs. @@ -111,13 +111,12 @@ Other variables: - `archive`: Displays an archived message. - `trigger`: Displays a trigger warning message. - `disclaimer`: Displays a disclaimer message. - - +- `left_align_badges`: Left-align badges in subprojects lists. +- `hide_subproject_tags`: Hide the link to the list of tags in subprojects lists. +- `hide_number_of_subprojects`: Hide the subprojects counter in a subproject list. ### Blog Post Specific - - - `banner`: Filename of the [colocated](https://www.getzola.org/documentation/content/overview/#asset-colocation) banner image. Recommended dimensions are 2:1 aspect ratio and 1920x960 resolution. - `banner_pixels` Makes the banner use nearest neighbor algorithm for scaling, useful for keeping pixel-art sharp. - `archived`: Make the post visually stand out in the post list. Also accepts message as a value. @@ -131,6 +130,29 @@ In `[extra.comments]` section: - `user`: The username of the poster. - `id`: ID of the post; the one in the URL. +### Subproject Specific + +All the options for blog posts are available for subprojects as well. + +Additionally, you can use the following front matter variables: + +- `preview`: Filename of the image displayed in the subprojects list. +- `expand`: Make the subproject use the full width in the subprojects list. +- `url`: Instead of showing the page's content, redirect from the subprojects list to the given URL. +- `badge`: A label displayed in the item's corner in the subprojects list. + +### Documentation Page Specific + +All the options for blog posts are avilable for documentation pages as well. + +Additionally, you can use the following front matter variables: + +- `section`: Assign the page to the section with the given index. The sections are defined in the Zola section (the `_index.md`). Use `0` to place it above all the sections. + +### Documentation Specific + +- `sections`: The sections available in the documentation. + ### Localization Duckling ships with a localization system based on one used in [tabi](https://github.com/welpo/tabi), it's very easy to use and quite flexible at the same time. @@ -192,6 +214,8 @@ Files named `favicon.png` and `apple-touch-icon.png` are used as favicon and App ## In the Wild +- [aparoksha.dev](https://aparoksha.dev) +- [david.aparoksha.dev](https://david.aparoksha.dev) - [duckling.aparoksha.dev](https://duckling.aparoksha.dev) - Yours? (feel free to send a pull request) diff --git a/content/blog/the-quill-of-duck/index.md b/content/blog/the-quill-of-duck/index.md index c83ed1f..81aff54 100644 --- a/content/blog/the-quill-of-duck/index.md +++ b/content/blog/the-quill-of-duck/index.md @@ -1,7 +1,7 @@ +++ authors = ["Scrooge McDuck", "Darkwing Duck"] title = "The Quill of Duck" -description = "This is a Duckquill post example, this post has nothing but a bunch of text and random formatting, acting like a demo." +description = "This is a Duckling post example, this post has nothing but a bunch of text and random formatting, acting like a demo." date = 2023-08-31 updated = "2024-06-21" [taxonomies] @@ -59,7 +59,7 @@ Other sizes will also work, but will be cut off at the bottom/won't be high enou ## The what? -This is a Duckquill post example, this post has nothing but a bunch of text and random formatting, acting like a demo. +This is a Duckling post example, this post has nothing but a bunch of text and random formatting, acting like a demo. ## Some info diff --git a/content/demo/index.md b/content/demo/index.md index 66f6794..baea3d2 100644 --- a/content/demo/index.md +++ b/content/demo/index.md @@ -92,7 +92,7 @@ pre table td:nth-of-type(1) { ### KaTeX -Duckquill can render LaTeX using the [KaTeX](https://katex.org) library. It can be enabled using the `extra.katex` config variable. +Duckling can render LaTeX using the [KaTeX](https://katex.org) library. It can be enabled using the `extra.katex` config variable. ```latex $$\relax f(x) = \int_{-\infty}^\infty\hat{f}(\xi)\,e^{2 \pi i \xi x}\,d\xi$$ @@ -108,7 +108,7 @@ $\relax f(x) = \int_{-\infty}^\infty\hat{f}(\xi)\,e^{2 \pi i \xi x}\,d\xi$ ### Shortcodes -Duckquill provides a few useful [shortcodes](https://www.getzola.org/documentation/content/shortcodes/) that simplify some tasks. They can be used on all pages. +Duckling provides a few useful [shortcodes](https://www.getzola.org/documentation/content/shortcodes/) that simplify some tasks. They can be used on all pages. #### Alerts @@ -625,7 +625,7 @@ Blah blah Inline Quote hmm. Some spoiler ``` -You know, Duckquill is a pretty dumb name. I know, crazy. +You know, Is Duckling a pretty dumb name? I know, crazy. With `solid` class: @@ -633,7 +633,7 @@ With `solid` class: Some spoiler ``` -You know, Duckquill is a pretty dumb name. I know, crazy. +You know, Is Duckling a pretty dumb name? I know, crazy. ### Buttons Dialog diff --git a/sass/style.scss b/sass/style.scss index c456c6b..2b021fd 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -1,7 +1,5 @@ /*! - * Duckquill v6.1.1 (https://duckquill.daudix.one) - * Copyright 2024 David "Daudix" Lapshin - * Licensed under MIT (https://codeberg.org/daudix/duckquill/src/branch/main/LICENSE) + * Licensed under MIT (https://git.aparoksha.dev/david-swift/duckling/src/branch/main/LICENSE.md) */ @use "normalize"; diff --git a/templates/base.html b/templates/base.html index 76f5671..132ff10 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,7 @@ {%- set language_strings = load_data(path="i18n/" ~ lang ~ '.toml', required=false) -%} {%- if not language_strings -%} - {%- set language_strings = load_data(path="themes/duckquill/i18n/" ~ lang ~ ".toml", required=false) -%} + {%- set language_strings = load_data(path="themes/duckling/i18n/" ~ lang ~ ".toml", required=false) -%} {%- endif -%} {%- set rtl_languages = ["ar", "arc", "az", "dv", "ff", "he", "ku", "nqo", "fa", "rhg", "syc", "ur"] -%} diff --git a/templates/partials/footer.html b/templates/partials/footer.html index f140d8e..01b6b93 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -46,8 +46,8 @@

{%- set zola_link = 'Zola' -%} - {%- set duckquill_link = 'Duckling' -%} - {{ macros_translate::translate(key="powered_by", default="Powered by $ZOLA and $DUCKQUILL", language_strings=language_strings) | replace(from="$ZOLA", to=zola_link) | replace(from="$DUCKQUILL", to=duckquill_link) | safe }} + {%- set duckling_link = 'Duckling' -%} + {{ macros_translate::translate(key="powered_by", default="Powered by $ZOLA and $DUCKLING", language_strings=language_strings) | replace(from="$ZOLA", to=zola_link) | replace(from="$DUCKLING", to=duckling_link) | safe }}

{%- endif %} diff --git a/templates/partials/language_switcher.html b/templates/partials/language_switcher.html index e78b37f..949b076 100644 --- a/templates/partials/language_switcher.html +++ b/templates/partials/language_switcher.html @@ -14,7 +14,7 @@ {#- Dynamically load the language strings for each language -#} {%- set other_language_strings = load_data(path="i18n/" ~ lcode ~ ".toml", required=false) -%} {%- if not other_language_strings -%} - {%- set other_language_strings = load_data(path="themes/duckquill/i18n/" ~ lcode ~ ".toml", required=false) -%} + {%- set other_language_strings = load_data(path="themes/duckling/i18n/" ~ lcode ~ ".toml", required=false) -%} {%- endif -%} {#- Use the loaded language strings to get the language name -#} {% set language_name = macros_translate::translate(key="language_name", default=lcode, language_strings=other_language_strings) %} diff --git a/templates/shortcodes/alert.html b/templates/shortcodes/alert.html index db2c6f7..1a3b38c 100644 --- a/templates/shortcodes/alert.html +++ b/templates/shortcodes/alert.html @@ -2,7 +2,7 @@ {%- set language_strings = load_data(path="i18n/" ~ lang ~ '.toml', required=false) -%} {%- if not language_strings -%} - {%- set language_strings = load_data(path="themes/duckquill/i18n/" ~ lang ~ ".toml", required=false) -%} + {%- set language_strings = load_data(path="themes/duckling/i18n/" ~ lang ~ ".toml", required=false) -%} {%- endif -%} {%- if note -%}