summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-11-14 12:05:40 +0800
committerMole Shang <[email protected]>2023-11-14 12:05:40 +0800
commit3c8f655c73c4ba4706f0f7fb86a574f7c60b43c5 (patch)
tree88464506b2a05cda8bdfcdeff869d88a6a5bea62 /templates
parentb932add15d89ab854935cd15930c57b3616ea020 (diff)
downloadSeje2-3c8f655c73c4ba4706f0f7fb86a574f7c60b43c5.tar.gz
Seje2-3c8f655c73c4ba4706f0f7fb86a574f7c60b43c5.tar.bz2
Seje2-3c8f655c73c4ba4706f0f7fb86a574f7c60b43c5.zip
templates: load pange.js for auto-spacing
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index 795adb3..8168dc9 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -62,6 +62,12 @@
<link rel="stylesheet" href="https://{{ font_base_url }}/css2?family=Source+Serif+Pro:wght@400;700&display=swap">
<link rel="stylesheet" href="https://{{ font_base_url }}/css2?family={{ fonts_url }}&display=swap">
<style>body { font-family: {{ font_family | safe }} }</style>
+ <script src="/pangu.min.js"></script>
+ <script>
+ document.addEventListener('DOMContentLoaded', () => {
+ pangu.autoSpacingPage();
+ });
+ </script>
{% block metadata %}{# <meta property="og:image" content="/<%= theme.favicon %>"> #}{% endblock %}
</head>
<body>