Commit Graph
47 Commits
Author SHA1 Message Date
ZhenShuo Leo e785f50575 style: add formatter config 2025-05-28 07:40:58 +08:00
ZhenShuo Leo 69fc96ed5b ✨ feat: add new option disableImageOptimizationMD 2025-05-27 04:19:51 +08:00
ZhenShuo Leo deec874d7c 📝 docs: restore missing shortcode in zh-cn and it docs 2025-05-26 13:31:12 +08:00
ZhenShuo Leo eb0d04a014 ✨ feat: add gist shortcode 2025-05-26 13:09:08 +08:00
ZhenShuo Leo bc6d4d86c7 📝 docs: update shortcoode from twitter_simple to x 2025-05-26 13:08:37 +08:00
ZhenShuo Leo 86fa25f27f chore: unify variable naming conventions 2025-05-26 00:21:37 +08:00
ZhenShuo Leo eb0afc16ea 📝 docs: update documentation for render-image fix 2025-05-26 00:05:03 +08:00
ZhenShuo Leo 6ab1964e22 ♻️ refactor: encapsulates functions in render-image.html 2025-05-25 23:29:48 +08:00
ZhenShuo Leo 4688d1e8c4 🐛 fix: correct the attributes of img tag 2025-05-25 22:36:26 +08:00
ZhenShuo Leo 5afceca56a 🐛 fix: make cursor pointer correctly on all buttons
Restore button CSS behavior from ef5186c

https://github.com/nunocoracao/blowfish/blob/ef5186ce4cb7611a24f0bea542b1badc77ba552e/assets/css/compiled/main.css#L522
2025-05-25 04:58:43 +08:00
ZhenShuo Leo 30d74227df 🐛 fix: cursor pointer on all buttons 2025-05-25 04:27:38 +08:00
ZhenShuo Leo 7c70f27a62 🐛 fix: hugo minify breaks repo cards
Make all repo cards behave consistently as in #2090
2025-05-25 03:59:15 +08:00
ZhenShuo Leo 079660d207 🐛 fix: cursor pointer on show more link button 2025-05-25 01:48:30 +08:00
ZhenShuo Leo 8be58016ae ✨ feat: allow self-linking in article shortcode 2025-05-15 14:52:47 +08:00
ZhenShuo Leo 3d0b59f413 🐛 fix: katex block overflow (#2138) 2025-05-14 20:47:18 +08:00
ZhenShuo2021 6b0db754f7 chore: fix typo 2025-05-14 20:01:39 +08:00
ZhenShuo Leo 48e66514f9 🧑‍💻 chore: add options for faster development
Add example:site_core and example:site_core:en_only for faster development

We need development/hugo.toml since the segments still renders images.
See object graph in https://gohugo.io/configuration/segments/
2025-05-14 18:02:30 +08:00
ZhenShuo Leo 8fe07b5550 chore: tweak distance for context 2025-05-12 22:47:16 +08:00
ZhenShuo Leo 61fcafc319 🐛 fix: article shortcode across languages (#2130) 2025-05-11 21:18:05 +08:00
ZhenShuo Leo c705186e41 🐛 fix: footer not expand in zen-mode 2025-05-11 18:11:24 +08:00
ZhenShuo Leo ea7b69f4e6 🩹 Chore: tweak processUsers.js to reduce feature image size (#980)
While we can't rewrite history, we can at least slow its growth.
WebP with lower quality settings gives about 2x size reduction with acceptable visual results.
2025-05-07 23:50:15 +08:00
ZhenShuo Leo 3081c5f1d1 📝 Docs: correct timeline in Chinese docs 2025-05-07 20:54:36 +08:00
ZhenShuo Leo 45c5ddbdaf 🐛 Fix: prevent header from blocking footnotes links 2025-05-07 19:27:16 +08:00
ZhenShuo Leo a9996082c4 📝 Docs: fix broken image links 2025-05-07 19:20:14 +08:00
ZhenShuo Leo c20a86585e 📝 Docs: fix all anchor links
Work along with #2122
2025-05-07 17:58:04 +08:00
ZhenShuo Leo 6e49bfac5e 🐛 Fix: anchor not working for non-ascii characters
Fix in-page anchor links by replacing urlize to anchorize
2025-05-07 16:10:00 +08:00
ZhenShuo Leo 73cbdae595 ✨ Feat: support extend-head access .Page (#1781)
Use extend-head-uncached.html for downward compatibility
2025-05-06 23:55:47 +08:00
ZhenShuo Leo 772bcfb879 ✨ Feat: add option disableHeroImageFilter on homepage (#2029)
disableHeroImageFilter deault to false. When set to true, it uses the color
style from the background layout.
2025-05-06 21:42:12 +08:00
ZhenShuo Leo adc828128d 🐛 Fix: codeblock highlight in .prose-invert 2025-05-06 20:03:13 +08:00
ZhenShuo Leo c941b70c60 📝 Docs: update codeblock language 2025-05-06 18:04:32 +08:00
ZhenShuo Leo e169dfa5ec Fix: disable the search keyboard shortcut in a form (#2041) 2025-05-06 17:32:04 +08:00
ZhenShuo Leo 7c13ba985f 🐛 Fix: truncation text in copy-button 2025-05-06 17:25:46 +08:00
ZhenShuo Leo c4d7112520 Update Hugo supported version 2025-05-05 10:33:17 +08:00
ZhenShuo Leo c59cb293bf ✨ Feat: Prevent ToC flicker on initial load
Use CSS to control ToC height instead of JavaScript to prevent flickering.
2025-05-05 08:30:34 +08:00
ZhenShuo Leo 6fb8b945d7 🐛 Table of Contents takes too much space (#1607) 2025-05-05 08:27:22 +08:00
ZhenShuo Leo 6486908601 ✨ Feat: gallery shortcode supports all kinds of input
Also trim white spaces
2025-05-04 00:27:31 +08:00
ZhenShuo Leo 806a8612b8 chore: add usage example in document site 2025-05-03 19:53:48 +08:00
ZhenShuo Leo f19c61cb97 🐛 Fix: make thumbAndBackground behavior consistent
Add support for URL input, matching the behavior of other hero partials.
2025-05-03 18:30:32 +08:00
ZhenShuo Leo 3afe8b5e00 chore: correct typo (#1491) (#2100) 2025-05-03 03:14:29 +08:00
ZhenShuo Leo e4b76d6fce ✨ feat: add defaultSocialImage (#1491) (#2100)
Add `defaultSocialImage` as the default image for social media sharing. This feature would be useful for users who don’t want to specify an image for every article. This PR also resolves the issue where the homepage missing an image when shared.
2025-05-03 03:07:00 +08:00
ZhenShuo Leo faa22c47d8 🐛 fix: i18n items of code don't work (#1965) 2025-05-02 18:20:41 +08:00
ZhenShuo Leo 6f33b9d5cf 🐛 fix: incorrect path for gallery
Fix this issue with resource.RelPermalink
2025-05-02 17:43:56 +08:00
ZhenShuo Leo 7072628632 🐛 fix: hugo minify breaks github card (#1434)
Add a div wrapper to avoid incorrect minification by hugo.

Tested with sample https://codeberg.org/cthru/blowfish_test/src/branch/master/content/tests/1716983769844-github-card-test/index.md#
2025-05-02 14:46:32 +08:00
ZhenShuo Leo 059d22ca96 🐛 fix: Preserve Mermaid indentation disrupted by Hugo minify (#2069)
Add a pre tag to the Mermaid class to preserve indentation and ensure data retrieval on DOMContentLoaded
2025-04-22 05:53:15 +08:00
ZhenShuo2021 923cefdf6b 👤 Update users.json 2025-02-15 04:17:32 +08:00
ZhenShuo2021 3f00958e80 ✏️ Update owner URL to n9o
Replace all nunocoracao.com to n9o.xyz except for the LICENSE file.
2025-02-15 04:14:35 +08:00
ZhenShuo2021 6d20417fd5 fix: expand article title in zen mode 2024-12-02 22:30:52 +08:00