8 Commits

Author SHA1 Message Date
rxchi1d
17906e63e2 refactor(admonition): simplify title handling logic
Replace complex title processing (9 lines) with single-line title filter approach.

Changes:
- Simplify $admonitionTitle definition from 5 variables to 1 line
- Remove $titleClass conditional logic (4 lines)
- Replace dynamic CSS class with static "grow" class
- Use Hugo title filter instead of CSS capitalize
- Remove TrimSpace processing per author feedback

This maintains the same visual behavior while significantly reducing code complexity.

Related: PR #2704 feedback from ZhenShuo2021
2026-01-04 23:25:28 +08:00
rxchi1d
fc9e6efb80 fix(render-blockquote): preserve custom title casing 2026-01-03 11:19:17 +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
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
57befe227f feat(admonitions): add header-only support 2025-12-22 14:18:31 +08:00
ZhenShuo Leo
0317f3aa0e refactor(admonition): simplify code 2025-12-22 12:29:12 +08:00
rxchi1d
775d5b1bbf feat: add admonitions 2025-12-22 09:53:58 +08:00