@@ -32,6 +32,22 @@ <h1 class="ui center aligned icon header">
32
32
</ section >
33
33
34
34
{# list all content #}
35
+
36
+ {% set config = load_data(path = "content/" ~ section.path ~ "data.toml", format="toml") %}
37
+
38
+ {% set crates = [] %}
39
+ {% set archived = [] %}
40
+
41
+ {% for item in config.items %}
42
+ {% if item.categories is containing(page.slug) %}
43
+ {% if item.archived %}
44
+ {% set_global archived = archived | concat(with=item) %}
45
+ {% else %}
46
+ {% set_global crates = crates | concat(with=item) %}
47
+ {% endif %}
48
+ {% endif %}
49
+ {% endfor %}
50
+
35
51
< section >
36
52
< h2 class ="ui horizontal divider small header ">
37
53
< a href ="#{{ section.extra.plural | slugify }} " id ="{{ section.extra.plural | slugify }} ">
@@ -43,20 +59,40 @@ <h2 class="ui horizontal divider small header">
43
59
< div class ="ui vertical stripe ">
44
60
< div class ="ui container ">
45
61
< ul class ="ui stackable cards nolist {{ columns }} ">
46
- {% set config = load_data(path = "content/" ~ section.path ~ "data.toml", format="toml") %}
47
-
48
- {% if config.items %}
49
- {% for item in config.items %}
50
- {% if item.categories is containing(page.slug) %}
51
- {{ category_macros::info(item=item, section=section) }}
52
- {% endif %}
53
- {% endfor %}
54
- {% endif %}
62
+ {% for item in crates %}
63
+ {{ category_macros::info(item=item, section=section) }}
64
+ {% endfor %}
55
65
</ ul >
56
66
</ div >
57
67
</ div >
58
68
</ section >
59
69
70
+ {% if archived | length > 0 %}
71
+ < section >
72
+ < h2 class ="ui horizontal divider small header ">
73
+ < a href ="#{{ section.extra.plural | slugify }} " id ="{{ section.extra.plural | slugify }} ">
74
+ < i class ="bed icon big "> </ i >
75
+ Archived
76
+ </ a >
77
+ </ h2 >
78
+
79
+ < div class ="ui vertical stripe ">
80
+ < div class ="ui container ">
81
+ < div class ="ui message ">
82
+ < i class ="info circle icon "> </ i >
83
+ These {{ section.extra.plural }} are no longer maintained, but may still be of interest.
84
+ </ div >
85
+
86
+ < ul class ="ui stackable cards nolist {{ columns }} ">
87
+ {% for item in archived %}
88
+ {{ category_macros::info(item=item, section=section, archived=true) }}
89
+ {% endfor %}
90
+ </ ul >
91
+ </ div >
92
+ </ div >
93
+ </ section >
94
+ {% endif %}
95
+
60
96
< section >
61
97
< h2 class ="ui horizontal divider small header ">
62
98
< a href ="#contribute " id ="contribute ">
0 commit comments