Commit Graph

132 Commits

Author SHA1 Message Date
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
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
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
Michael Dorner
08c9207ea7 Create gist.html 2025-03-08 21:27:45 +01:00
wermos
525e4b5547 Removed an unused option. 2025-02-27 13:41:40 +05:30
sculptor189
213880a1a3 add rel attribute to button shortcode 2024-08-10 15:15:59 -04:00
Nuno Coração
80417d4238 final polish 2024-08-10 11:23:56 +01:00
Nuno Coração
a11112bfed Merge pull request #1666 from ldericher/selfhosted-git
 Add support for selfhosted git servers
2024-08-10 10:48:37 +01:00
Nuno Coração
e796e4195a Merge pull request #1667 from ldericher/fix-typos
🐛 Fix typos
2024-08-10 10:44:43 +01:00
Jörn-Michael Miehe
5762ecaf1b add shortcodes
- "forgejo" and "gitea"
- add copies as giteaColors.json resp. forgejoColors.json
- add params "giteaDefaultServer" and "forgejoDefaultServer"
2024-08-08 02:01:38 +02:00
Jörn-Michael Miehe
cfe270e278 🐛 fix typos in "codeberg" shortcode 2024-08-07 23:01:50 +02:00
W.T. Chang
121909e809 fix warning caused by getJSON 2024-07-18 23:33:44 +08:00
jason810496
c91bc9dfb5 fix: handle codeimporter URL encoding 2024-06-22 23:37:23 +08:00
jason810496
2b001f0761 feat: add startLine and endLine support for codeimporter 2024-06-21 23:48:13 +08:00
Manjunath Mohan
e8dfdfe528 fix: https://github.com/nunocoracao/blowfish/issues/1549 2024-06-19 09:57:27 +05:30
Nuno Coração
cc9ee9d26f Merge pull request #1513 from wermos/minor-improvements
🎨 Improvements to image handling and link handling
2024-06-03 23:21:24 +01:00
wermos
f88923b3ff Fixed the issue of the numbers showing up. 2024-06-03 23:54:49 +05:30
wermos
581aba3359 Be less aggressive in removing newlines. 2024-06-03 22:45:22 +05:30
wermos
bb435aded7 Minified the shortcodes and added handling for SVGs. 2024-06-03 22:34:24 +05:30
Zoe Roux
9dc7940718 Use markdown emojify instead of dump emojify 2024-05-31 12:37:29 +02:00