Skip to content

Commit

Permalink
feat(themeHelpers): add swup attribute to script tag generation
Browse files Browse the repository at this point in the history
- Enhance script tag generation in themeHelpers.js
- Include swup attribute for dynamic reloading functionality
- Improve compatibility with Swup.js for smoother page transitions
  • Loading branch information
EvanNotFound committed Oct 19, 2024
1 parent ff56dfa commit 4b3fc4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/helpers/themeHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ hexo.extend.helper.register("renderJS", function (path, options = {}) {
scriptTag = _js({
src: path,
type: module ? "module" : undefined,
[swupAttr]: swupReload,
// async: async,
});
}
Expand Down

0 comments on commit 4b3fc4c

Please sign in to comment.