Commit Graph

149 Commits

Author SHA1 Message Date
ZhenShuo Leo aec737ff16 fix(carousel): make interval affect slide transition on click 2025-07-27 00:37:40 +08:00
ZhenShuo Leo ccf5e24f55 fix(carousel): interval not working 2025-07-27 00:35:31 +08:00
Nuno C. 4285a740fa Merge pull request #2332 from ZhenShuo2021/fix/repo-color
🐛 Fix: repo card language color is missed
2025-07-21 10:05:23 +01:00
Nuno C. 01622ede5a Merge pull request #2324 from ZhenShuo2021/fix/gist-corb
🐛 Fix: gist CORB error
2025-07-21 10:03:52 +01:00
ZhenShuo Leo 5009fffcf4 fix(repo-card): manually revert to the version in 2.87.0
The md5 method has severe performance degradation
It is approximately 2x slower without cache and 5x slower with cache

Reverted due to lack of a better option
2025-07-18 00:46:14 +08:00
Nuno C. ab9f0b6af8 Merge branch 'dev' into chore/try-repo-card 2025-07-17 16:44:15 +01:00
Nuno C. a679625472 Merge pull request #2331 from ZhenShuo2021/chore/error-msg
🔧 Chore: add warn message for GetRemote usage in shortcodes
2025-07-17 16:42:52 +01:00
ZhenShuo Leo ecf6d1d53f chore(repo-card): add try statement at GetRemote 2025-07-17 23:09:00 +08:00
ZhenShuo Leo 237c90afa9 chore(github.html): move div into with syntax 2025-07-13 20:08:32 +08:00
ZhenShuo Leo d8bdf7e316 chore: add warn message for GetRemote usage in shortcodes 2025-07-13 19:56:39 +08:00
ZhenShuo Leo 965c241f8c feat: add support for compactSummary option in article shortcode 2025-07-13 18:44:45 +08:00
ZhenShuo Leo b4a7741b39 feat: add support for showSummary in article shortcode 2025-07-13 18:44:45 +08:00
ZhenShuo Leo fed64fa58d fix: gist corb error 2025-07-11 18:51:34 +08:00
Nuno C. 6d94d1d62c Merge pull request #2269 from servedsmart/use-data-repo-colors-and-move-out-of-line
♻️ Refactor: Use universal json for repo shortcodes and move styles out of line
2025-07-10 11:37:41 +01:00
Nuno C. 037c741ded Merge pull request #2262 from ZhenShuo2021/refactor/repo-card
♻️ Refactor(repo-card): reduce coupling and indention
2025-07-10 11:37:27 +01:00
Served Smart 65a50ff643 Only generate css classes for used repo colors
This in most cases will reduce the size of main.bundle.css dramatically. Before I had around ~+32kB, now it is ~+228B
2025-07-09 19:19:10 +02:00
Served Smart cc2e90233a ♻️ Refactor: Use universal json and move styles out of line 2025-07-09 19:18:54 +02:00
Served Smart 17faf8b738 ♻️ Refactor: Autogen classes and use consistent naming
- This should greatly improve consistency
- This mainly targets one of my PRs https://github.com/nunocoracao/blowfish/pull/2211
2025-07-09 18:59:32 +02:00
ZhenShuo Leo 43857a5aa9 refactor(gallery): improve readibility
- remove unnecessary intermediate variable
- move the go process out of the div since they are not related
- use expressive variable names
- reorder declarations
2025-06-24 03:44:13 +08:00
ZhenShuo Leo d39a64afe1 refactor(repo-card): use iife and async loading 2025-06-20 22:15:27 +08:00
Nuno Coração f2e224a042 pretty run 2025-06-17 23:17:26 +01:00
Nuno Coração 560e927b87 Merge pull request #2210 from espressif/fix/add_default_figure_shortcode_as_partial
🐛 fix: add default figure shortcode as partial
2025-06-17 23:12:54 +01:00
Nuno Coração 472a89c7a5 Merge pull request #2211 from servedsmart/move-most-inline-styles-out-of-line
♻️ refactor: Move most inline styles out of line
2025-06-17 22:56:25 +01:00
Nuno Coração c2ea4c27b6 Merge pull request #2209 from servedsmart/move-similar-inline-scripts-out-of-line
♻️ refactor: Move similar javascript inline code out of line
2025-06-17 22:37:34 +01:00
Served Smart 9f85c0566e ♻️ refactor: Move most inline styles out of line
- Move out of line by using already defined css classes
- Move paddings out of line
- Move margins out of line
- Move z-indexes out of line
- Move center-relative-left out of line
2025-06-12 14:00:21 +02:00
Served Smart 4ff3d07d30 🎨 structure: Use more explicit naming in fetchRepo() 2025-06-12 13:58:59 +02:00
Served Smart 37ab1055e7 ♻️ refactor: Move similar javascript inline code out of line
- Move variables oid, oid_likes out of line
- Move background-blur out of line
- Move fetch-repo code out of line
2025-06-12 13:58:59 +02:00
kirill.chalov 58f0e30d65 🐛 fix: add default figure shortcode as partial
Hugo v0.146 removed access to embedded templates like "_internal/shortcodes/figure.html".
This commit adds the template as figure-default.html.

This fixes build errors reported and partially solved in issues #2052 and #2093
when using the figure shortcode with the "default=true" option.
2025-06-05 16:34:12 +08:00
ZhenShuo Leo 7cc521bc1e 🐛 fix: gist shortcode breaks smartTOC 2025-06-04 11:08:38 +08:00
Nuno Coração 94424416bc polish 2025-05-27 00:58:36 +01:00
Nuno Coração 68bd843e73 Merge branch 'dev' into feat/gist 2025-05-27 00:36:19 +01:00
Nuno Coração 26f3f0510b Merge pull request #2162 from soar/feature/github-thumbnails
 feat(shortcodes): Display thumbnails for GitHub repos
2025-05-27 00:34:06 +01:00
Nuno Coração e9ebdc4dbe Merge pull request #2158 from ZhenShuo2021/fix/code-card
🐛 fix: hugo minify breaks repo cards
2025-05-27 00:32:59 +01:00
Nuno Coração 375bf31e0b Merge pull request #2131 from ZhenShuo2021/fix/article-shortcode
🐛 fix: article shortcode across languages (#2130)
2025-05-27 00:28:19 +01:00
ZhenShuo Leo eb0d04a014 feat: add gist shortcode 2025-05-26 13:09:08 +08:00
Aleksey @soar Smyrnov 2bbcd3ab8c feat(shortcodes): Display a thumbnail for GitHub repos 2025-05-25 16:08:20 -07: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 8be58016ae feat: allow self-linking in article shortcode 2025-05-15 14:52:47 +08:00
ZhenShuo Leo 61fcafc319 🐛 fix: article shortcode across languages (#2130) 2025-05-11 21:18:05 +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
Nuno Coração 1731c36c7c Merge pull request #2091 from ZhenShuo2021/fix/gallery-path
🐛 fix: incorrect path for gallery (#2042)
2025-05-02 11:38:31 +01: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
Nuno Coração c838202da6 Merge pull request #2055 from ragibson/main
Rewrite templates/partials for Hugo v0.146.0
2025-05-01 16:43:38 +01:00
Nuno Coração 326839575e Merge pull request #2070 from ZhenShuo2021/fix/mermaid
🐛 fix: Preserve Mermaid indentation disrupted by Hugo minify (#2069)
2025-05-01 16:36:03 +01:00
ALXD 5af31913f1 add data-zoom-src to figure and render-image layouts fixing medium-zoom 2025-04-26 12:48:35 +02: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
Ryan Gibson baaf251bde Rewrite templates/partials for Hugo v0.146.0 2025-04-11 09:32:47 -04:00
Nuno Coração e1785fa68f polish and fixing crap from a bunch of PRs 2025-03-30 00:18:01 +00:00
Nuno Coração 10d55c186c Merge pull request #2013 from michaeldorner/patch-1
 Create gist.html
2025-03-29 23:33:37 +00:00