332 Commits

Author SHA1 Message Date
aa3dac499b fix(taxonomy_list): taxonomy_list still display as 'tags'
Signed-off-by: CHEN, CHUN <jim60105@gmail.com>
2025-05-15 01:23:19 +08:00
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
e65252a04d Merge branch 'main' into main 2025-04-22 03:53:41 +00:00
35d94aacdf Ask user to set global site title if none is set (fixes #129) 2025-04-19 21:15:21 +03: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
ea88357a25 corrected (hopefully) reference within for loop 2025-04-15 21:46:20 -04:00
394b8be325 add loop over taxonomies, attempted another correction to reference for taxon name 2025-04-15 21:44:42 -04:00
bbb299baec attempt 4 2025-04-15 21:35:09 -04:00
dfe59caf99 third attempt at correcting taxonomy name reference 2025-04-15 21:31:40 -04:00
6d5e39a6e7 attempted second correction of reference to taxon name 2025-04-15 19:01:01 -04:00
481335cbc4 attempted correction of reference to taxon name 2025-04-15 18:59:00 -04:00
8f98684693 corrected typos, added consistent naming 2025-04-15 18:53:45 -04:00
7f3f7f05ea correct typo 2025-04-15 18:49:18 -04:00
d5ff0dadc7 complete url fetch syntax 2025-04-15 18:48:19 -04:00
8763d960c1 add parenthesis 2025-04-15 18:43:14 -04:00
daca29f6e6 updated article_list display 2025-04-15 18:42:16 -04:00
23d85089a0 standardized var names 2025-04-15 17:48:56 -04:00
7437483b3b correct reference to taxonomy name 2025-04-15 17:33:32 -04:00
85872f23a2 correct whitespace, add taxon in list display 2025-04-15 17:32:00 -04:00
d1b15bc15b list taxon name 2025-04-15 17:17:48 -04:00
9e163ba77e make line mutable 2025-04-15 16:54:37 -04:00
a7f2d8abdb correct display of taxon and terms 2025-04-15 15:00:50 -04:00
337855cfce Ability to turn on "go to top" button on regular pages (fixes #115) 2025-03-30 07:52:03 +03:00
fe079da67b Allow disabling the share preview card (fixes #122) 2025-03-30 07:46:45 +03:00
af524137a9 Fix build failing if taxonomy is set to anything other than "tags" (fixes #126)
This does not fix other issues however, notably links still point to
/tags, and it's displayed as tags in the UI.
2025-03-30 07:30:04 +03:00
673f77cfd1 Convert all icons to CSS variables, add feed button next to tags heading 2024-12-23 23:20:43 +03:00
08860f5974 Automatic contrast color picking (fixes #43) 2024-12-23 22:48:34 +03:00
f2cd992522 Not use all available width for sidebar 2024-12-04 02:58:08 +03:00
b27158102a Merge branch 'main' into allow-sharing-without-description 2024-12-03 22:08:02 +00: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
0d479ef409 Use table_of_contents string instead of toc 2024-12-01 17:19:21 +03:00
915a71fecd Optional TOC sidebar (fixes #107) 2024-12-01 16:55:08 +03:00
73b2c24018 Smarter title 2024-12-01 15:05:14 +03:00
39cf0d0bce Remove extra </small> closing tag (fixes #110) 2024-12-01 14:12:20 +03: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
e867a12356 Margin and variables stuff 2024-10-30 20:56:30 +03:00
6c405946c6 Add external class to https:// links in navbar/footer 2024-10-29 02:16:52 +03:00
3fea028e25 Make auto-hide optional 2024-10-28 06:46:53 +03:00
8f9fb1e88a Show navbar on hover/keyboard focus 2024-10-28 05:23:59 +03:00
77b16597b0 Remove reduant class 2024-10-27 03:19:57 +03:00
81d366d184 Add back support for lazy images in comments 2024-10-26 01:05:33 +03:00
65f0fd5159 Add support for CWs in comments 2024-10-25 22:43:50 +03:00
35382b15b5 Add config.extra.debug_no_styles for debugging 2024-10-24 13:21:14 +03:00
694479bcdb Improved comments (see changelog) 2024-10-23 04:35:15 +03:00
732217ccea Append comments host in CSP 2024-10-18 20:30:23 +03:00
bc9a13d630 Even tighter CSP
Will this fix it?

Remove inline script and style from demo

Okay I'm dumb

Ugh
2024-10-18 20:09:33 +03:00
26b12aadf6 Rewrite half the theme to make Mozilla observatory more happy about strict CSP 2024-10-18 18:16:38 +03:00
932c7d9aa4 Work on the sparkline [SKIP CI] 2024-10-18 03:23:07 +03:00
8bf69a5d71 The big shortcode cleanup 2024-10-17 17:00:35 +03:00