1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

fix(pwa): site baseurl not passed to app.js (#1955)

This commit is contained in:
Cotes Chung
2024-09-18 22:32:26 +08:00
committed by GitHub
parent 3ab3b844d2
commit 5a63244721
5 changed files with 14 additions and 12 deletions

View File

@@ -92,7 +92,10 @@
{% if jekyll.environment == 'production' %}
<!-- PWA -->
{% if site.pwa.enabled %}
<script defer src="{{ 'app.min.js' | relative_url }}"></script>
<script
defer
src="{{ 'app.min.js' | relative_url }}?baseurl={{ site.baseurl | default: '' }}&register={{ site.pwa.cache.enabled }}"
></script>
{% endif %}
<!-- Web Analytics -->