mirror of
https://github.com/cotes2020/chirpy-starter.git
synced 2025-07-04 21:38:59 +10:00
First commit
This commit is contained in:
4
site/assets/js/data/search.json
Normal file
4
site/assets/js/data/search.json
Normal file
@ -0,0 +1,4 @@
|
||||
[
|
||||
|
||||
]
|
||||
|
57
site/assets/js/data/swcache.js
Normal file
57
site/assets/js/data/swcache.js
Normal file
@ -0,0 +1,57 @@
|
||||
const resource = [
|
||||
/* --- CSS --- */
|
||||
'/assets/css/jekyll-theme-chirpy.css',
|
||||
|
||||
/* --- PWA --- */
|
||||
'/app.js',
|
||||
'/sw.js',
|
||||
|
||||
/* --- HTML --- */
|
||||
'/index.html',
|
||||
'/404.html',
|
||||
|
||||
|
||||
'/categories/',
|
||||
|
||||
'/tags/',
|
||||
|
||||
'/archives/',
|
||||
|
||||
'/about/',
|
||||
|
||||
|
||||
/* --- Favicons & compressed JS --- */
|
||||
|
||||
|
||||
'/assets/img/favicons/android-chrome-192x192.png',
|
||||
'/assets/img/favicons/android-chrome-512x512.png',
|
||||
'/assets/img/favicons/apple-touch-icon.png',
|
||||
'/assets/img/favicons/favicon-16x16.png',
|
||||
'/assets/img/favicons/favicon-32x32.png',
|
||||
'/assets/img/favicons/favicon.ico',
|
||||
'/assets/img/favicons/mstile-150x150.png',
|
||||
'/assets/js/dist/categories.min.js',
|
||||
'/assets/js/dist/commons.min.js',
|
||||
'/assets/js/dist/home.min.js',
|
||||
'/assets/js/dist/misc.min.js',
|
||||
'/assets/js/dist/page.min.js',
|
||||
'/assets/js/dist/post.min.js'
|
||||
];
|
||||
|
||||
/* The request url with below domain will be cached */
|
||||
const allowedDomains = [
|
||||
|
||||
|
||||
'localhost:4000',
|
||||
|
||||
|
||||
|
||||
'fonts.gstatic.com',
|
||||
'fonts.googleapis.com',
|
||||
'cdn.jsdelivr.net',
|
||||
'polyfill.io'
|
||||
];
|
||||
|
||||
/* Requests that include the following path will be banned */
|
||||
const denyUrls = [];
|
||||
|
Reference in New Issue
Block a user