File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed
Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ layout: null
3+ collections:
4+ - name: launcher
5+ title: Launcher
6+ - name: modpack
7+ title: Modpack
8+ ---
9+ [
10+ {%- for collection in page.collections -% }
11+ {"title" :" {{ collection.title }}" ,"items" :[
12+ {%- assign documents = site[collection.name] | where: "locale", page.locale -% }
13+ {%- for document in documents -% }
14+ {"title" :" {{ document.title }}" ,"subtitle" :" {{ document.excerpt }}" ,"url" :" {{ document.url | absolute_url }}" }
15+ {%- unless forloop.last % },{% endunless -% }
16+ {%- endfor -% }
17+ ]}
18+ {%- unless forloop.last % },{% endunless -% }
19+ {%- endfor -% }
20+ ]
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ collections:
99[
1010{%- for collection in page.collections -% }
1111{"title" :" {{ collection.title }}" ,"items" :[
12- {%- for document in site[collection.name] -% }
12+ {%- assign documents = site[collection.name] | where: "locale", page.locale -% }
13+ {%- for document in documents -% }
1314{"title" :" {{ document.title }}" ,"subtitle" :" {{ document.excerpt }}" ,"url" :" {{ document.url | absolute_url }}" }
1415{%- unless forloop.last % },{% endunless -% }
1516{%- endfor -% }
Original file line number Diff line number Diff line change 1+ ---
2+ layout: null
3+ collections:
4+ - name: launcher
5+ title: 啟動器
6+ - name: modpack
7+ title: 整合包
8+ ---
9+ [
10+ {%- for collection in page.collections -% }
11+ {"title" :" {{ collection.title }}" ,"items" :[
12+ {%- assign documents = site[collection.name] | where: "locale", page.locale -% }
13+ {%- for document in documents -% }
14+ {"title" :" {{ document.title }}" ,"subtitle" :" {{ document.excerpt }}" ,"url" :" {{ document.url | absolute_url }}" }
15+ {%- unless forloop.last % },{% endunless -% }
16+ {%- endfor -% }
17+ ]}
18+ {%- unless forloop.last % },{% endunless -% }
19+ {%- endfor -% }
20+ ]
You can’t perform that action at this time.
0 commit comments