Skip to content

Commit

Permalink
feat(pangu): add pangu.js for automatic spacing between Chinese and E…
Browse files Browse the repository at this point in the history
…nglish

- Implement pangu.js functionality for improved readability
- Add script loading in layout/_partials/scripts.ejs
- Create new pangu.js plugin file with spacing logic
- Include minified version and source map for production use
  • Loading branch information
EvanNotFound committed Nov 15, 2024
1 parent e87dacd commit b25d911
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layout/_partials/scripts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@
<%- renderJS('js/libs/moment-with-locales.min.js', { swupReload: true }) %>
<%- renderJS('js/layouts/essays.js', { swupReload: true, module: true }) %>

<% if (theme.articles.pangu_js) { %>
<%- renderJS([
'js/libs/pangu.min.js',
'js/plugins/pangu.js'
]) %>
<% } %>
9 changes: 9 additions & 0 deletions source/build/js/libs/pangu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions source/build/js/plugins/pangu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions source/build/js/plugins/pangu.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b25d911

Please sign in to comment.