ZhenShuo Leo
df4b71be84
fix: performance regression introduced in v3
...
replace backdrop-blur with monochromatic background color
2026-09-13 22:13:36 +01:00
ZhenShuo Leo
1a5c232535
fix: ignoreFiles in development config
2026-09-13 22:12:02 +01:00
ZhenShuo Leo
aa52338289
fix: mobile menu wrong height caused by new stacking context from backdrop-blur
2026-08-28 23:41:30 +01:00
ZhenShuo Leo
9f8972fecf
fix: medium-zoom conflict with featureImageHover
2026-08-22 09:06:46 +01:00
ZhenShuo Leo
4b42f34de5
fix: katex rendering ( #3062 )
2026-08-22 09:06:16 +01:00
ZhenShuo2021
8334f00562
fix: JS broken in v3 ( #3061 )
...
* fix: zoom broken in v3 (#3060 )
* fix: buymeacoffee broken in v3
2026-08-21 02:17:22 +01:00
ZhenShuo Leo
c164484993
fix: global resources fallback incorrectly removed in #2978
2026-07-05 14:37:14 +08:00
ZhenShuo Leo
4a45ab6c96
fix: scope of featureimage in front matter
...
fixes #2977
2026-06-13 14:43:50 +08: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
ZhenShuo Leo
86fd828353
chore: bump minimum Hugo version to 0.158.0 for #2887
...
fixes #2940
2026-05-14 00:43:50 +08:00
ZhenShuo Leo
c74017c987
fix: auto detect mailto prefix
2026-02-26 13:35:29 +08:00
ZhenShuo Leo
be7f6b6f8f
fix: author icon padding
2026-02-25 23:13:17 +08:00
ZhenShuo Leo
55f2f22849
feat: email obfuscation ( #2711 )
2026-02-25 23:13:16 +08:00
ZhenShuo Leo
812effc613
feat: gist css
2026-02-25 22:44:09 +08:00
ZhenShuo Leo
02a7397119
refactor: use css for logo switcher
2026-02-25 22:41:25 +08:00
ZhenShuo Leo
e35bcc0f24
chore: logo alt text
2026-02-25 22:41:25 +08:00
ZhenShuo Leo
99d329c7b0
feat: reduce firebase blocking time
...
- use esm format
- defer loading with type="module"
- upgrade from v8.10.0 to v9.23.0
- allow homepage/taxonomy/term log
2026-02-10 06:52:05 +08:00
ZhenShuo Leo
bbe38534d5
docs: add icon-ref shortcode
2026-02-07 23:20:39 +08:00
ZhenShuo Leo
0e9a151ce5
refactor: gather firebase templates
2026-02-07 21:48:53 +08: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
2c7d234312
chore: allow keeping issues
2026-01-04 21:18:55 +08:00
ZhenShuo Leo
493bb3eb5c
feat(tabs): update docs
2026-01-04 19:29:38 +08:00
ZhenShuo Leo
6fe75d5277
feat(tabs): wrap items
2026-01-04 19:29:38 +08:00
ZhenShuo Leo
601bb87559
feat(tabs): support default tab
2026-01-04 19:29:38 +08:00
ZhenShuo Leo
dbb7d3f7f2
feat(tabs): support group
2026-01-04 19:29:38 +08:00
ZhenShuo Leo
2cac2bfe4a
feat(tabs): support icon
2026-01-04 19:29:38 +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
c3e7d1b8b1
style(alert): add shadow to alert shortcode
2026-01-04 19:25:56 +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
ec69178703
style(doc): tweak the icon color on the homepage
2026-01-04 01:28:41 +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
ZhenShuo Leo
11845d4a7c
fix(rss): lastBuildDate and description
...
align usage with Hugo
https://github.com/gohugoio/hugo/blob/v0.153.4/tpl/tplimpl/embedded/templates/rss.xml
2025-12-31 20:19:52 +08: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
ZhenShuo Leo
3c534548df
feat(admonition): allow full customization
2025-12-31 15:41:13 +08:00
ZhenShuo Leo
bf0713c0cf
feat(admonition): support arbitrary icon
2025-12-31 15:34:24 +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
ZhenShuo Leo
b0c5cd70da
fix: correct CSS build
...
Fix because Tailwind scans the entire project
https://tailwindcss.com/docs/detecting-classes-in-source-files#which-files-are-scanned
2025-12-27 14:16:08 +08:00
ZhenShuo2021
c32887c753
Merge pull request #2666 from ZhenShuo2021/patch
...
Fix #2653 gallery overflow
2025-12-23 02:25:51 +08: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
f3e91168d9
fix(schema): remove abstract field
...
- Search engines do not consume the abstract property
- Platforms (Docusaurus, Vitepress, WordPress, Medium) do not use it
- .Summary method does not match the definition of abstract in schema.org
redo 0d21750932 due to incorrect merge manipulate
2025-12-23 01:42:44 +08:00
ZhenShuo Leo
81f2423d71
Merge branch 'dev' into feature/callout-tailwind
2025-12-23 01:21:40 +08:00
ZhenShuo Leo
0d21750932
fix(schema): remove abstract field
...
- Search engines do not consume the abstract property
- Platforms (Docusaurus, Vitepress, WordPress, Medium) do not use it
- .Summary method does not match the definition of abstract in schema.org
2025-12-23 01:16:01 +08:00
ZhenShuo Leo
e4ca3de291
feat(article-link): support front matter control of showCards option
2025-12-23 01:16:00 +08:00
ZhenShuo Leo
327712d228
fix(list): content too narrow
2025-12-23 01:13:56 +08:00
ZhenShuo Leo
8b362f58d3
perf(schema): loop fusion
2025-12-23 01:13:56 +08:00
ZhenShuo Leo
afa810841c
feat(author): support svg image
2025-12-23 01:13:56 +08:00
ZhenShuo Leo
34fc0e619f
chore(head): normalize color scheme name to lowercase
...
Many users configured the scheme with uppercase letters.
While uppercase works on macOS, it causes deployment failures on Ubuntu due to case sensitivity.
2025-12-23 01:13:55 +08: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
ZhenShuo Leo
0317f3aa0e
refactor(admonition): simplify code
2025-12-22 12:29:12 +08:00
ZhenShuo Leo
1fc6058426
docs: update docs for admonitions
2025-12-22 09:53:58 +08:00
ZhenShuo2021
accf29dea3
Merge pull request #2664 from ZhenShuo2021/fix/img-ext
2025-12-22 09:52:25 +08:00
ZhenShuo Leo
cc2c5c5205
fix: user thumbnail file extension
2025-12-21 23:21:48 +08:00
ZhenShuo Leo
0e3bad2be7
feat(codeblock): add title support
2025-12-18 02:38:31 +08:00
ZhenShuo Leo
f487e616bf
docs: update code block sample
2025-12-18 02:38:31 +08:00
ZhenShuo Leo
4422c4b517
fix: gallery and carousel wouldn't show without other statically sized elements
2025-12-15 20:26:04 +08:00
ZhenShuo Leo
f8417b8297
feat: adopt Hugo embed render-link logic
2025-12-15 18:20:26 +08:00
ZhenShuo Leo
ff9a860af9
style: line highlight for linenos=inline
2025-12-08 16:29:15 +08:00
ZhenShuo Leo
eda9fc9bc3
feat(tabs): better usage
2025-12-01 21:14:15 +08:00
ZhenShuo Leo
20044af981
feat: add tabs
2025-12-01 20:24:26 +08:00
ZhenShuo Leo
7b5fe02079
feat(code): use github theme
2025-12-01 13:24:47 +08:00
ZhenShuo Leo
c5b51e3491
style: specify dark mode selector
2025-11-30 11:00:10 +08:00
ZhenShuo Leo
2d3642c62b
style: improve hr contrast
2025-11-30 11:00:10 +08:00
ZhenShuo Leo
960681efaf
style: improve blockquote contrast
2025-11-30 11:00:10 +08:00
ZhenShuo Leo
bb99b59528
style: improve toc contrast
2025-11-30 11:00:10 +08:00
ZhenShuo Leo
f29e515147
style: improve code contrast
2025-11-30 11:00:10 +08:00
ZhenShuo Leo
112b22c0d9
style: improve article-link contrast
...
add background and tweak border
2025-11-29 04:10:47 +08:00
ZhenShuo Leo
31039584e8
style: add overlay for background blur
2025-11-29 04:10:47 +08:00
ZhenShuo Leo
ec942b013a
fix: remove alt in decorative images
2025-11-29 03:29:18 +08:00
ZhenShuo Leo
19ebf4f5d2
docs: remove duplicate en content in it doc
2025-11-27 15:38:37 +08:00
ZhenShuo Leo
825f9fec18
docs: clarify showHero
2025-11-27 15:38:37 +08:00
ZhenShuo Leo
f9f9cf8e11
docs: use a simpler command in custom syntax highlighter
...
change command because tailwind v4 natively support css nesting
2025-11-27 15:38:37 +08:00
ZhenShuo Leo
0f105d2acb
docs: add theme-switcher for color schemes
2025-11-27 14:53:07 +08:00
ZhenShuo2021
4248719f9c
Merge pull request #2618 from ZhenShuo2021/feat/chroma
2025-11-25 05:17:36 +08:00
ZhenShuo Leo
62ce9f2e68
docs: document the Chroma customization steps
2025-11-22 07:30:17 +08:00
ZhenShuo Leo
8d5c2045a6
fix: author image stretch when zooming
...
fix this issue by using square image for data-zoom-src
2025-11-22 05:34:28 +08:00
ZhenShuo Leo
652462e326
fix: add JSON-LD to section page
2025-11-21 02:16:48 +08:00
ZhenShuo Leo
8ab2d8b68a
feat: add BreadcrumbList (enableStructuredBreadcrumbs option)
...
also fix escape character in url of schema
2025-11-21 02:16:43 +08:00
ZhenShuo Leo
32f452b25d
feat(chroma): use cascade layer to allow override via custom.css
...
This allows users to customize Chroma CSS without building the TailwindCSS manually.
For example, add this to `custom.css`:
```
.chroma,
.chroma,
.chroma:is(.dark *),
.chroma:is(.dark *) * {
color: unset;
background-color: unset;
font-weight: unset;
}
```
Then use:
```
hugo gen chromastyles --style=github | sed 's/\./html.dark ./' >> assets/css/custom.css
hugo gen chromastyles --style=github | sed 's/\./html:not(.dark) ./' >> exampleSite/assets/css/custom.css
```
2025-11-05 10:59:41 +08:00
ZhenShuo Leo
3a1b44c177
docs: config.toml -> hugo.toml
2025-11-03 11:05:26 +08:00
ZhenShuo Leo
7f55de67d4
fix(a11y): i18n "Disable images" -> "Disable background image"
2025-11-03 10:30:59 +08:00
ZhenShuo Leo
c51559dee5
fix(a11y): create disable_images button only when layout is background
2025-11-03 10:30:59 +08:00
ZhenShuo Leo
a05ba20c85
feat: add new color scheme "one-light"
2025-10-20 21:34:16 +08:00
ZhenShuo Leo
be89d0e2b3
feat: add new color scheme "github"
2025-10-20 21:34:16 +08:00
ZhenShuo Leo
1e99e63084
fix(keyword): trim empty spaces
2025-10-17 18:35:26 +08:00
ZhenShuo Leo
d1f332b9cf
fix: showDateOnlyInArticle
2025-10-17 14:52:25 +08:00
ZhenShuo Leo
884d84363e
Revert "perf(repo-card): only generate used CSS class"
...
This reverts commit af221fbf3b .
fix language dot colors in repo-card not displaying
This occurs because head.html is rendered before the page content,
making .Page.Store unavailable at that point in the template
execution order.
This issue doesn't appear in local development because page refreshes
trigger full re-renders, allowing the Store values to be properly
populated from shortcodes.
Alternative solutions considered:
1. templates.Defer: too complex and unreliable
2. Moving CSS to footer: confusing and delayed load
3. Inline styles: incurs CSP issue
Final I choose pre-generate CSS for all languages. After zstd
compression, the CSS file is only 8KB and benefits from browser
caching across all pages.
2025-10-17 14:38:24 +08:00
ZhenShuo Leo
03f078ba8e
fix(scroll-to-top): handle nil value correctly
2025-10-16 00:42:07 +08:00
ZhenShuo2021
a0d04df2b3
Merge pull request #2549 from ZhenShuo2021/patch
...
chore: rebuild CSS for the new release v2.91.0
2025-10-15 00:28:28 +08:00
ZhenShuo Leo
de68f8d46e
chore: rebuild CSS for the new release v2.91.0
2025-10-15 00:26:29 +08:00
ZhenShuo Leo
faeb1e1dea
chore: move dev branch description to the front
2025-10-11 15:41:27 +08:00
ZhenShuo Leo
925065a5bd
feat(mermaid): support dark mode
2025-10-11 15:24:21 +08:00
ZhenShuo Leo
792ec9a601
refactor(render-image): see detail
...
- trim white spaces which can't be eliminated by minify
- unify dict input usages
2025-10-11 15:07:20 +08:00
ZhenShuo Leo
8bfa9926c7
fix(render-image): improper srcset usage
...
- correct srcset image w descriptor value
- use compressed image for src fallback
2025-10-11 15:07:20 +08:00
ZhenShuo Leo
90e553541e
fix: enable wrapStandAloneImageWithinParagraph by default
...
This fixes invalid HTML where figure tag is inside p tag.
However, this does not fix linked images, e.g., `[](url)`.
The cleanest way to resolve linked images is using markdown-attributes,
but markdown-attributes is not recommended by CommonMark.
See:
- https://discourse.gohugo.io/t/how-to-do-wrap-img-with-a-inside-figure-with-render-image-html/44843
- https://github.com/gohugoio/hugo/blob/master/markup/goldmark/images/transform.go
- https://gohugo.io/content-management/markdown-attributes/
- https://github.com/commonmark/commonmark-spec/wiki/Deployed-Extensions#attributes
2025-10-11 15:07:20 +08:00