Commit Graph

270 Commits

Author SHA1 Message Date
rxchi1d
ef9486f794 feat(shortcodes): add video shortcode 2025-12-27 18:42:04 +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
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
rxchi1d
775d5b1bbf feat: add admonitions 2025-12-22 09:53:58 +08:00
ZhenShuo Leo
0e3bad2be7 feat(codeblock): add title support 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
ff9a860af9 style: line highlight for linenos=inline 2025-12-08 16:29: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
31039584e8 style: add overlay for background blur 2025-11-29 04:10:47 +08:00
ZhenShuo Leo
0f105d2acb docs: add theme-switcher for color schemes 2025-11-27 14:53:07 +08:00
Nuno C.
b0e6c4e5fd Merge pull request #2607 from nunocoracao/dependabot/npm_and_yarn/dev/tailwindcss/cli-4.1.17
📌 bump @tailwindcss/cli from 4.1.16 to 4.1.17
2025-11-24 23:20:08 +00:00
dependabot[bot]
2b55f9aa68 💄 Rebuild CSS 2025-11-12 05:02:17 +00: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
dependabot[bot]
aee443b910 💄 Rebuild CSS 2025-10-29 05:02:26 +00:00
ZhenShuo Leo
de68f8d46e chore: rebuild CSS for the new release v2.91.0 2025-10-15 00:26:29 +08:00
Nuno C.
452bdd408b Merge branch 'dev' into main 2025-10-14 10:16:20 +01:00
Nuno C.
b29c6614dc Merge branch 'dev' into feat/image-position 2025-10-14 10:14:18 +01:00
Nuno C.
9b6ed820e9 Merge pull request #2509 from ZhenShuo2021/fix/terms-typo
🐛 Fix: multiple small patches
2025-10-14 09:55:46 +01:00
ZhenShuo Leo
40eea78d8c chore(footer): use logical properties 2025-10-11 03:10:00 +08:00
ZhenShuo Leo
c9c8a36c16 fix: article-pagination
- simplify html
- fix rtl item alignment
- fix empty span tag when showDate is false
- align hover effect with other element, removes group hover underline
2025-10-11 15:19:36 +08:00
ZhenShuo Leo
9b35cc2bae fix(toc): too wide when no related contents 2025-10-11 15:19:36 +08:00
ZhenShuo Leo
d8ea1d81b5 fix: article shortcode padding 2025-10-11 15:19:35 +08:00
ZhenShuo Leo
9665fe953c fix(header): align width with body
remove all horizontal padding
align layout padding settings with body
split body classes into three variables
2025-10-11 15:19:35 +08:00
ZhenShuo Leo
d4620d5318 fix(blur): remove small right-edge gap of blur on mobile devices 2025-10-11 15:19:35 +08:00
ZhenShuo Leo
fefb7d2fb5 fix(katex): content hidden at container edges 2025-10-11 15:19:35 +08:00
ZhenShuo Leo
3918571644 chore(article-link): use old naming of css class name
though the new thumbnail--xxx naming is cleaner
but this kind of change should be postponed until a major release
2025-10-08 13:15:31 +08:00
dependabot[bot]
4417b41319 💄 Rebuild CSS 2025-10-08 05:02:33 +00:00
dependabot[bot]
30a1bd281e 💄 Rebuild CSS 2025-10-07 22:16:33 +00:00
dependabot[bot]
da627a0cc7 💄 Rebuild CSS 2025-10-07 17:42:10 +00:00
dependabot[bot]
44c20b3cf0 💄 Rebuild CSS 2025-09-24 05:02:17 +00:00
ZhenShuo Leo
1159e78cc3 chore: rebuild css 2025-09-23 18:32:59 +08:00
ZhenShuo Leo
65ab50a901 fix(baseof): add offset to skip to main content 2025-09-23 17:57:58 +08:00
ZhenShuo Leo
b777d4e59e fix(scroll-to-top): resolve overlap with buy me a coffee button 2025-09-23 17:57:58 +08:00
dependabot[bot]
1cb5e9ab2f 💄 Rebuild CSS 2025-09-17 05:02:38 +00:00
ZhenShuo Leo
01b998e070 feat(article-link): replace background div with img tag 2025-09-16 15:08:36 +08:00
ZhenShuo Leo
b1b7aa1f42 feat(article-link): reimplement card hover using ::before method
The previous method was not intuitive since there was nothing in the <a> tag,
and required group-xxx classes for every element.

The new pseudo element method fixes those problems, see:

https://kittygiraudel.com/2022/04/02/accessible-cards/
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
e3194eca1e chore(article-link): remove unused .Params.images
The `.Params.images` and `.Site.Params.images` have existed since the creation of the files
but have never been referenced in the documentation since their initial commit (3cc1569fc1)

Also, Meta tags are not valid inside card elements
2025-09-16 15:08:22 +08:00
Nuno C.
d8add6e15f Merge pull request #2399 from ZhenShuo2021/feat/enable-tailwind-colors
 Feat(tailwind): enable default colors
2025-09-15 23:02:55 +01:00