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

Optimized update list & fixed sw cache list.

This commit is contained in:
Cotes Chung
2020-07-15 16:49:02 +08:00
parent 9f3619e54a
commit 22115f3797
3 changed files with 12 additions and 11 deletions

View File

@@ -53,8 +53,9 @@ const include = [
{% endfor %}
{% include update-list.html %}
{% for item in update_list %}
{% assign url = item | split: "::" | last | prepend: "/posts/" | append: "/" %}
{% assign url = item | split: "::" | last | url_encode | prepend: "/posts/" | append: "/" | relative_url %}
{% assign post_list = post_list | push: url %}
{% endfor %}