ZhenShuo Leo
35faec527b
refactor(article-link): abstract anchor attributes for making article links formattable
2025-07-09 23:39:03 +08:00
Nuno C.
b83889b72f
Merge pull request #2268 from servedsmart/move-inline-style-background-image-out-of-line
...
♻️ Refactor: Move inline styles containing background-image: out of line
2025-07-09 15:43:04 +01:00
Nuno C.
0f83712a3d
Merge pull request #2253 from servedsmart/move-some-inline-event-handlers-out-of-line
...
♻️ Refactor: Move 2 inline event handlers out of line
2025-07-09 15:42:33 +01:00
Nuno C.
dfd03ad722
Merge pull request #2254 from servedsmart/add-missing-resources-fingerprint
...
🎨 Structure: Restructure vendor.html and add missing hugo fingerprints
2025-07-09 15:39:30 +01:00
Nuno C.
4d200adfd3
Merge pull request #2257 from Weaxs/umami-bugfix
...
umami bugfix
2025-07-09 15:38:45 +01:00
Nuno C.
83dcf2dfdc
Merge pull request #2240 from ZhenShuo2021/style/format-head
...
🎨 Style(head): format head.html
2025-07-09 15:36:30 +01:00
Served Smart
a34947a630
♻️ Refactor: Move 2 inline event handlers out of line
...
If MDN explicitly warns user not to use them, we probably shouldn't.
MDN also states: "Note that inline event handlers are blocked as well[...]You should replace them with addEventListener calls[...]" regarding CSP.
2025-06-27 19:23:55 +02:00
Served Smart
7f8004e6af
🎨 Structure: Restructure vendor.html and add missing hugo fingerprints
...
This renames $youtubeLiteJS $youtubeLiteLib to match the naming of other files in assets/lib and moves the initialization of $youtubeLiteLib to the bottom, above the script element
This also adds 3 missing fingerprints, one to $packeryLib, one to $twelementsLib and one to $youtubeLiteCSS
2025-06-27 19:23:31 +02:00
Served Smart
80486364cd
🐛 Fix: Reassignment of variable names
...
I'm not sure why this is such a big problem, but hugo doesn't seem to like this. It is also better to just use the intended way to reassign vars always.
Before, *feature* images if using background.html would always get overwritten, now that is fixed.
2025-06-27 19:21:59 +02:00
Served Smart
f82776c86b
🐛 Fix: Typos and images not in css if optimized
2025-06-27 19:21:58 +02:00
Served Smart
1736cafcf4
♻️ Refactor: Move inline styles containing background-image: out of line
...
This greatly reduces the number of inline styles in the project and enhances maintainability by avoiding a lot of duplicate code.
This also reduces the number of hashes required for a CSP since all previous background-image inline styles are now in main.css.
2025-06-27 19:21:58 +02:00
ZhenShuo Leo
2886dea826
style(header): run prettier format
2025-06-19 19:44:08 +08:00
ZhenShuo Leo
6d941ee3d7
fix(header): incorrect end clause
2025-06-19 19:44:08 +08:00
ZhenShuo Leo
79171f488c
refactor(header): modularize basic.html
2025-06-19 19:44:08 +08:00
ZhenShuo Leo
62e5fc2564
style: format head.html
2025-06-19 19:42:57 +08:00
ZhenShuo Leo
fda569cb8b
fix: make head.html formattable
2025-06-19 19:42:57 +08:00
ZhenShuo Leo
e9edfa8f1c
feat: support all types of sources for defaultSocialImage
2025-06-19 19:42:56 +08:00
Weaxs
49e463b726
add prettier-ignore annotation
2025-06-19 17:17:34 +08:00
Weaxs
495562826c
umami bugfix
2025-06-19 15:50:24 +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
03f9c7d732
Merge pull request #2224 from Weaxs/support-adsense
...
✨ support advertisement
2025-06-17 23:06:45 +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
3e52d26e30
Merge pull request #2216 from ZhenShuo2021/fix/showDate
...
🐛 Fix: date still shown when showDate=false
2025-06-17 22:49:46 +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
Weaxs
52b47665c8
support advertisement
2025-06-16 16:18:51 +08: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
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
ZhenShuo Leo
c3fbfc9545
fix: date still shown when showDate=false
2025-06-11 18:31:15 +08: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
e6f0522b60
🐛 fix(toc): prevent active state loss from dynamically loaded content
2025-06-04 13:52:01 +08:00
ZhenShuo Leo
4ca31fadca
🐛 fix: toc child not collapsed
2025-06-04 12:18:33 +08:00
Served Smart
dc36597427
🔒 Add config parameter fingerprintAlgorithm
...
This parameter allows users to choose their algorithm for html integrity checks. This mainly affects Hugo's fingerprint
2025-06-03 11:53:03 +02:00
Nuno Coração
7afecd63e5
Merge pull request #2133 from timcappalli/main
...
Feat: Adds ability show only the category instead of all tags
2025-05-27 00:31:07 +01:00
Nuno Coração
f711f1afaa
Merge pull request #2115 from ZhenShuo2021/feat/hero-image
...
✨ Feat: add option disableHeroImageFilter on homepage (#2029 )
2025-05-27 00:26:15 +01:00
Nuno Coração
5fc28a1ffd
Merge pull request #2116 from ZhenShuo2021/feat/extend-head
...
✨ Feat: support extend-head access .Page (#1781 )
2025-05-27 00:24:57 +01:00
Nuno Coração
754076de7f
Merge pull request #2101 from ZhenShuo2021/feat/social-image
...
✨ feat: add defaultSocialImage (#1491 ) (#2100 )
2025-05-27 00:07:56 +01:00
Nuno Coração
321e1cf07c
Merge pull request #2105 from ZhenShuo2021/fix/hero-url
...
🐛 Fix: make thumbAndBackground behavior consistent
2025-05-27 00:07:28 +01:00
Tim Cappalli
49ec3b5a01
showCategoryOnly config
2025-05-11 14:57:19 -04: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
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
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
Nuno Coração
8d3a3dce93
Merge pull request #2059 from ragibson/fix-list-summaries
...
Fix article lists showing incorrectly wrapped summaries
2025-05-01 16:48:13 +01: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
Ryan Gibson
f91edf0d3c
Add explicit md:flex-nowrap into article link class
2025-04-29 12:08:22 -04:00
Karun Sandhu
9b3f313d00
✨ don't add mailto: links to <head>
2025-04-17 12:04:31 +02:00