Skip to content

Commit cc4b009

Browse files
committed
Frontpage: Use wiki layout for filling platform cards and below
This is to increase awareness of our other articles - you'd have to actively check out the Wiki tab which still had the platform cards on them, which likely wasn't intuitive
1 parent 38be23d commit cc4b009

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

site/_layouts/frontpage.html

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,29 @@ <h1 class="col-lg-6 col-md-8 mx-auto">{{ site.title }}</h1>
66
<h5 class="my-2 text-center">v{{ site.data.otd-versions | last }}</h5>
77
{{ content }}
88
</section>
9-
{% include platformcards.html %}
9+
<div class="pb-2">
10+
{%- include platformcards.html -%}
11+
12+
{% assign wikifiles = site.collections | where: "label", "wiki" | first %}
13+
{% assign folders = site.wiki |
14+
where_exp: "item", "item.hide_from_auto_list == false" |
15+
group_by_exp: "item", "item.path | split: '/' | slice: 1" |
16+
reverse %}
17+
18+
{%- for folder in folders -%}
19+
{% assign folderTitle = site.data.wiki.title-remaps |
20+
where: "OldTitle", folder.name[0] |
21+
map: "NewTitle" | first |
22+
default: folder.name[0] %}
23+
24+
<h3 id="{{ folderTitle | slugify }}">{{ folderTitle }}</h3>
25+
<ul>
26+
{% assign sortedItems = folder.items | sort: "title" %}
27+
{%- for file in sortedItems -%}
28+
<li>
29+
<a class="link-light" href="{{ file.url }}">{{ file.title }}</a>
30+
</li>
31+
{%- endfor -%}
32+
</ul>
33+
{%- endfor -%}
34+
</div>

0 commit comments

Comments
 (0)