8000 Update sw.js · omegahaunter/codejam.github.io@02ec811 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02ec811

Browse files
authored
Update sw.js
add baseurl
1 parent cc713ab commit 02ec811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/scripts/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const cacheName = `static::${version}`;
1010
const buildContentBlob = () => {
1111
return [
1212
{%- for post in site.posts limit: 10 -%}
13-
"{{ post.url }}",
13+
"{{ site.baseurl }}{{ post.url }}",
1414
{%- endfor -%}
1515
{%- for page in site.pages -%}
1616
{%- unless page.url contains 'sw.js' or page.url contains '404.html' -%}

0 commit comments

Comments
 (0)
0