Morten Victor Nordbye
1f82608cd6
Add reading progress bar for articles ( #3014 )
...
* Add reading progress bar for articles
* Let page-level showReadingProgress override the site setting
Hugo's default treats false as empty, so a page-level false could not
disable the bar once it was enabled site-wide. Resolve the value by
initialising from the site setting and overriding it only when the
front matter parameter is actually present, and use the same resolved
boolean in single.html and head.html.
* Guard the reading progress handler and mark the listener passive
The script loads in the head without defer, so the scroll listener is
registered before the progress bar element exists. A scroll event fired
during parsing, such as when the browser restores the scroll position on
reload, would throw. Bail out when the element is missing, matching the
guard in background-blur.js, and mark the scroll listener passive as
toc.html already does.
2026-08-16 22:14:45 +01:00
dependabot[bot]
ef081ffc68
💄 Rebuild CSS
2026-07-22 05:09:05 +00:00
Nuno Coração
1f14448333
updates
2026-07-02 13:25:16 +01:00
Nuno C.
c6d1d04c9b
Merge branch 'main' into scrollbar
2026-07-02 12:44:52 +01:00
ZhenShuo Leo
ef9e756ce5
fix: restore scrollbar styles broken by tailwind v4.3 upgrade
...
Tailwind v4.3 introduced built-in scrollbar utilities that conflicted
with the tailwind-scrollbar plugin, causing visual regressions.
Fixed by inlining the pre-v4.3 build output directly into main.css,
which also eliminates the need for the tailwind-scrollbar plugin.
2026-06-12 05:12:34 +08:00
dependabot[bot]
e9a59654c9
💄 Rebuild CSS
2026-06-04 01:14:21 +00:00
dependabot[bot]
7c2545d598
💄 Rebuild CSS
2026-04-15 05:17:57 +00:00
Nuno C.
8eb1f330c5
Merge pull request #2877 from jin-li/feature/thumbnail-aspect-ratio-global
...
feat: Allow configurable thumbnail aspect ratio for article cards
2026-04-13 22:43:18 +01:00
Nuno C.
a666aa54b8
Merge pull request #2852 from MaikelChan/badges
...
✨ Implemented category badges in secondary color and better granularity for showing categories or tags
2026-04-13 22:38:59 +01:00
dependabot[bot]
16acbfee52
💄 Rebuild CSS
2026-04-08 05:17:37 +00:00
Nuno C.
3f4636afc1
Merge pull request #2864 from nunocoracao/dependabot/npm_and_yarn/dev/tailwindcss/cli-4.2.2
...
📌 Bump @tailwindcss/cli from 4.2.1 to 4.2.2
2026-03-29 23:57:39 +01:00
jin-li
a308a86365
feat: global thumbnail aspect ratio configuration
...
- Add thumbnailAspectRatio site parameter (default '1.5')
- Use decimal values instead of fractions for Hugo compatibility
- Sanitize user input to extract only numeric characters
- Apply to article cards, related cards, and term cards
- Update both source and compiled CSS
Closes #2839
2026-03-29 14:27:09 +02:00
dependabot[bot]
e9b51aadcd
💄 Rebuild CSS
2026-03-25 05:04:00 +00:00
dependabot[bot]
bad5bf18ac
💄 Rebuild CSS
2026-03-25 05:03:44 +00:00
MaikelChan
e84fc0e1c6
Implemented category badges in secondary color.
2026-03-23 05:45:46 +01:00
ZhenShuo Leo
812effc613
feat: gist css
2026-02-25 22:44:09 +08:00
Nuno C.
f18c6a0564
Merge pull request #2812 from nunocoracao/dependabot/npm_and_yarn/dev/tailwindcss/cli-4.2.1
...
📌 Bump @tailwindcss/cli from 4.1.18 to 4.2.1
2026-02-25 14:14:09 +00:00
dependabot[bot]
350d669406
💄 Rebuild CSS
2026-02-25 05:04:26 +00:00
dependabot[bot]
15bf0ea12a
💄 Rebuild CSS
2026-02-23 11:55:12 +00:00
dependabot[bot]
ebfe68673f
💄 Rebuild CSS
2026-02-18 05:04:26 +00:00
Nuno Coração
d38accc6ff
release polish
2026-02-11 22:15:07 +00:00
dependabot[bot]
2172b94fe6
💄 Rebuild CSS
2026-01-14 05:04:29 +00:00
Nuno C.
e5fc548eb5
Merge pull request #2714 from ZhenShuo2021/feat/compact
...
💄 Style(article-link): truncate long summary
2026-01-12 00:53:58 +00:00
ZhenShuo Leo
1d275134ad
style(list): see details
...
- Align list TOC wrapper with single TOC wrapper
- Adjust margin
2026-01-08 00:40:24 +08:00
ZhenShuo Leo
10083786cb
style(card-link): add line clamp and BEM classes
...
Add BEM class names for easier CSS targeting
2026-01-07 16:06:56 +08:00
ZhenShuo Leo
8c8a914fa9
style(admonition): tweak the dark bg
...
warning and caution are slightly different from the others to make them more distinguishable
2026-01-04 19:26:32 +08:00
ZhenShuo Leo
4a16b20d3f
style(header): tweak fixed-fill-blur
2026-01-04 19:25:56 +08:00
ZhenShuo Leo
0083e927c1
style(doc): remove opacity from homepage contributors
...
images look gray
2026-01-04 01:28:53 +08:00
ZhenShuo Leo
14a2ea0c80
style(doc): build css for the new homepage
2026-01-04 01:28:35 +08:00
ZhenShuo Leo
287e397b82
fix(mobile-menu): body not scrollable
2026-01-02 20:09:50 +08:00
Nuno C.
949e367a01
Merge pull request #2684 from RxChi1d/feat/add-video-shortcode
...
feat(shortcodes): add video shortcode
2026-01-01 23:26:38 +00:00
Nuno C.
1aba089483
Merge pull request #2683 from ZhenShuo2021/fix/header
...
✨ Feat: improve the appearance of the header
2026-01-01 23:24:20 +00:00
Nuno C.
45b6a073e0
Merge pull request #2692 from ZhenShuo2021/fix/bold
...
🐛 Fix: make bold text inherit parent color
2026-01-01 23:19:53 +00:00
Nuno C.
f408467bf5
Merge pull request #2673 from nunocoracao/dependabot/npm_and_yarn/dev/tailwindcss/cli-4.1.18
...
📌 bump @tailwindcss/cli from 4.1.17 to 4.1.18
2026-01-01 23:16:42 +00:00
ZhenShuo Leo
85a781a998
fix: make bold text inherit parent color
...
For example, given the following HTML:
<p class="text-primary-500"><strong>Hello</strong> world</p>
The rendered result shows `Hello` in the neutral color, while `world` is rendered in the primary color.
This change applies `color: inherit` to bold text so that both uses the primary color.
2025-12-31 17:42:29 +08:00
rxchi1d
ef9486f794
feat(shortcodes): add video shortcode
2025-12-27 18:42:04 +08:00
ZhenShuo Leo
c78b3a1e6a
fix: menu unreadable ( #1790 )
2025-12-27 17:33:20 +08:00
ZhenShuo Leo
230ee3ab16
feat: improve fixed-fill-blur
...
The original appearance is identical to `fixed-fill`
2025-12-27 17:32:04 +08:00
ZhenShuo Leo
8ab8807398
feat: better mobile menu
2025-12-27 17:32:00 +08:00
ZhenShuo Leo
522bdbe29e
fix: menu vertical overflow
2025-12-27 17:31:53 +08:00
dependabot[bot]
446cf9541c
💄 Rebuild CSS
2025-12-24 05:02:32 +00:00
dependabot[bot]
6804d068cc
💄 Rebuild CSS
2025-12-24 05:02:09 +00:00
ZhenShuo Leo
7a1cfbb75d
fix: overflow when the gallery is inside other containers [skip ci]
...
Fix the fix in #2653
This is a simple fix, hopefully it will be fully resolved in the future.
2025-12-23 02:23:21 +08:00
ZhenShuo Leo
81f2423d71
Merge branch 'dev' into feature/callout-tailwind
2025-12-23 01:21:40 +08:00
Nuno C.
b6c00249c6
Merge pull request #2656 from ZhenShuo2021/feat/codeblock-title
...
✨ Feat: support title in code block
2025-12-22 17:11:53 +00:00
Nuno C.
9719d7ac6f
Merge pull request #2653 from ZhenShuo2021/fix/gallery
...
🐛 Fix: gallery and carousel no width
2025-12-22 17:10:44 +00:00
Nuno C.
74650e4927
Merge pull request #2637 from ZhenShuo2021/feat/tabs
...
✨ Feat: add tabs shortcode
2025-12-22 17:09:40 +00:00
ZhenShuo Leo
07f2fec870
feat(admonition): polish
...
- sort by type names
- tweak colors of some types
- improve dark mode contrast
- prune css
- simplify render hook
2025-12-23 00:49:50 +08:00
rxchi1d
3f2891cc32
fix(admonitions): align paragraph spacing with prose
2025-12-22 15:42:07 +08:00
rxchi1d
57befe227f
feat(admonitions): add header-only support
2025-12-22 14:18:31 +08:00