diff options
| author | Mole Shang <135e2@135e2.dev> | 2023-11-14 12:05:40 +0800 | 
|---|---|---|
| committer | Mole Shang <135e2@135e2.dev> | 2023-11-14 12:05:40 +0800 | 
| commit | 3c8f655c73c4ba4706f0f7fb86a574f7c60b43c5 (patch) | |
| tree | 88464506b2a05cda8bdfcdeff869d88a6a5bea62 /templates | |
| parent | b932add15d89ab854935cd15930c57b3616ea020 (diff) | |
| download | Seje2-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.html | 6 | 
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> | 
