File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ section: Extend
77---
88{%- assign category-string = "" -%}
99{%- for p in site .pages -%}
10- {%- assign tokens = p .url | split: "/" -%}
11- {%- if tokens [3] and tokens [3] != 'index' -%} {%- continue -%} {%- endif -%}
1210 {%- comment -%}
1311 It would be nicer to use the concat filter below, no?
1412 But that filter only became available in Jekyll 4.0.
@@ -121,10 +119,8 @@ function toggleAllCategories(checked) {
121119
122120<ul id =" list-of-extensions" >
123121{%- for p in site .pages -%}
124- {%- assign tokens = p .url | split: "/" -%}
125- {%- if tokens [1] != 'plugins' and tokens [1] != 'formats' -%} {%- continue -%} {%- endif -%}
126- {%- if tokens [3] and tokens [3] != 'index' -%} {%- continue -%} {%- endif -%}
127- {%- assign url = p .url | replace: '/index' , '' -%}
122+ {%- comment -%} Only pages declaring categories are listed. {%- endcomment -%}
123+ {%- unless p .categories -%} {%- continue -%} {%- endunless -%}
128124 {%- assign classes = "" -%}
129125 {%- for category in p .categories -%}
130126 {%- assign c = category | slugify -%}
You can’t perform that action at this time.
0 commit comments