Commit Graph

57 Commits

Author SHA1 Message Date
6ae1db5c74 feat: localize new taxonomy names
- Tag links now use the actual taxonomy name for the URL and the displayed label is wrapped in a translation macro instead of the previous placeholder-based logic.
- Simplify the taxonomy tag URL by passing the name directly and add translation support for the tag label.
- Introduce a new taxon_name_i18n variable to translate the taxonomy name and swap in this localized value for the page title and “See all” link, while also simplifying the all-taxa URL by passing taxonomy.name directly to get_url.

Signed-off-by: CHEN, CHUN <jim60105@gmail.com>
2025-05-15 00:13:14 +08:00
37cbddbf3e display taxonomies in article list block 2025-04-16 00:33:37 -04:00
c9bfc1a977 display taxonomies per taxon 2025-04-15 22:34:14 -04:00
f2cd992522 Not use all available width for sidebar 2024-12-04 02:58:08 +03:00
176ec48cea Check if page.description is empty before trying to use it
The article.html template, when the sharing button is enabled, uses the
description of the page to generate the share link. However the end user
may not want descriptions. If a page description is empty, the following
error is thrown:

```
Error: Failed to build the site
Error: Failed to render page '/home...index.md'
Error: Reason: Failed to render 'article.html'
Error: Reason: Filter call 'urlencode' failed
Error: Reason: Filter `urlencode` was called on an incorrect value: got `null` but expected a String
```

We now check if the description is not empty before passing it to
urlencode, and don't use it if it is not set
2024-12-03 23:01:38 +01:00
4b1fac1f17 Backport some changes and fixes
Return the separator customization that got lost in some commit
Don't blur the nav when it's not visible
Don't scale down the article card when clicking on a tag
2024-11-14 19:40:54 +03:00
694479bcdb Improved comments (see changelog) 2024-10-23 04:35:15 +03:00
26b12aadf6 Rewrite half the theme to make Mozilla observatory more happy about strict CSP 2024-10-18 18:16:38 +03:00
36812777f9 Implement backlinks 2024-10-17 01:28:07 +03:00
77df7c1120 Add title class for use on <strong> 2024-10-17 00:26:47 +03:00
841ccc5fa5 Add support for Fuse.js search (fixes #101) 2024-10-16 23:23:40 +03:00
003ec0b29a Remove drafted watermark for now
The implementation wasn't as clean as I'd like it to be
2024-10-12 18:17:45 +03:00
a7e1112791 Use Zola's built-in reading time variable instead of the custom implementation (fixes #102) 2024-10-12 00:22:35 +03:00
800efa802a Add "DRAFTED" watermark to drafted posts 2024-10-11 23:42:15 +03:00
3080a2ca70 Improve TOC logic, reduce code duplication and add changelog entries 2024-10-02 20:30:55 +03:00
a85b1ccfe6 [Feature] Add options for TOC: inline, popup, numbered (#95)
addressing this issue: https://codeberg.org/daudix/duckquill/issues/94

- You can now choose if you want to have and inline Table of Contents(TOC), a popup, or both!
- You can also choose between numbered and un-numbered TOC styles

note: please squash the commits
Reviewed-on: https://codeberg.org/daudix/duckquill/pulls/95
Co-authored-by: Alireza Alavi <alavialireza@protonmail.com>
Co-committed-by: Alireza Alavi <alavialireza@protonmail.com>
2024-10-02 14:23:52 +00:00
8085b6355c Move post actions to the top on mobile
It's not exactly useful to have them at the bottom
2024-10-02 03:10:33 +03:00
a559ade347 Less IDs 2024-09-28 04:30:13 +03:00
3f6c6486f3 New title style for articles (inspired by gxbs.dev and tesk.page) 2024-09-25 06:02:19 +03:00
3f80c870ea More visually interesting open animations, close details on outside click 2024-09-22 19:04:38 +03:00
edd5da0a8a Don't hide the post action buttons on mobile 2024-09-18 03:51:18 +03:00
ed02e10c3a Redo the table of contents dropdown, with new animation as well 2024-09-17 04:02:44 +03:00
543d1bf862 Add share button and more (fixes #73) 2024-09-17 01:40:25 +03:00
a5f16ca54f Optional bundled fonts (fixes #44). Style cleanups 2024-09-15 03:49:59 +03:00
a84165fe3b Docs improvements, allow setting more stuff outside of articles 2024-09-08 23:50:20 +03:00
2f00256c0f Fix banner loading and processing 2024-08-26 16:50:54 +03:00
4392844fc6 Generate card from banner if present. Use page/section description instead of config if available (fixes #51 and #50) 2024-08-26 06:34:24 +03:00
813f0cdf68 Prevent navbar from obfuscating post banner on mobile (fixes #61) 2024-08-25 01:37:00 +03:00
16762b4bc4 Images can be lazy as well! (fixes #39) 2024-07-29 17:47:26 +03:00
7c176c09d2 Set rel attributes to links (fixes #40) 2024-07-29 17:18:25 +03:00
f786ca3cbb Self closing tag! 2024-07-21 02:15:41 +03:00
089755c89f Add estimated read time counter, remove tags from the post
Shoutout to Cassidy for
https://cassidyjames.com/blog/read-time-estimate-jekyll/
2024-07-20 23:00:11 +03:00
a6e0471fb2 Display multiple post authors of present, align tags to the right 2024-07-20 02:00:53 +03:00
f1ca685eaa Allow statements on regular pages (fixes #34) 2024-07-19 21:32:32 +03:00
19e976375c Use code block header if copy button is enabled
Now copy button doesn't cover the code, because it's not on top of it!
2024-07-18 01:55:09 +03:00
12408de744 Much fancier banners 2024-07-15 07:10:12 +03:00
792a4a14ea Simplify banner and improve readability when used 2024-07-14 08:17:36 +03:00
26aea8cf46 Trim whitespace in more places 2024-07-13 22:57:02 +03:00
f690ec1105 Post banners! 2024-07-13 22:48:55 +03:00
280857fc56 Use margin instead of untrimmed space 2024-07-05 03:08:38 +03:00
6f9c51fa5d Make the default locale en_US instead of en_IE
en_US is way more common and usual for most people than the weird
European en_IE (I do like it but that's just me)
2024-06-30 21:02:01 +03:00
c592f88a6b Don't use span for edit time 2024-06-26 00:26:06 +03:00
b157f81a07 Allow making posts "featured", tweak article list styles 2024-06-22 06:29:52 +03:00
fe6de0eb17 Deprecate the animated_favicon variable
APNG seems to be well supported so it's not needed I guess
2024-06-21 20:39:43 +03:00
238f84de30 Make dates respect current locale (deprecations!)
And make comments use it in a smart way (it's not but it works)

Deprecate "extra.date_format" and "extra.comments.locale" and replace it
with "date_format" and "date_locale" in translation files
2024-06-20 19:26:12 +03:00
13fad928f7 Rename translation keys 2024-06-20 10:19:27 +03:00
40b1895618 Redo the translation system (steal from tabi) 2024-06-20 08:42:24 +03:00
ee70e5fe46 More RTL improvements and some style tweaks 2024-06-18 07:52:13 +03:00
fbed171669 Add external class to external buttons 2024-06-18 06:42:40 +03:00
88cf05a654 Fix nav active indicator, remove useless default values 2024-06-16 05:20:06 +03:00