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

feat: add pwa.cache.* option to precisely control caching (#1501)

This commit is contained in:
Cotes Chung
2024-01-28 02:22:33 +08:00
committed by GitHub
parent ea3a22e13c
commit 1127c43823
18 changed files with 272 additions and 228 deletions

View File

@@ -45,6 +45,15 @@
{{ seo_tags }}
<!-- PWA cache settings -->
<meta
name="pwa-cache"
content="{{ site.pwa.cache.enabled | default: 'false' }}"
{%- if site.baseurl and site.baseurl != empty -%}
data-baseurl="{{ site.baseurl }}"
{%- endif -%}
>
<title>
{%- unless page.layout == 'home' -%}
{{ page.title | append: ' | ' }}