42 lines
1.1 KiB
Markdown
42 lines
1.1 KiB
Markdown
---
|
|
layout: forge
|
|
---
|
|
|
|
<h2 class="post-list-heading">Highlighted articles</h2>
|
|
|
|
<ul class="post-list">
|
|
{% for post in site.posts %}
|
|
{% if post.highlight == true %}
|
|
<li>
|
|
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
|
|
<h3>
|
|
<a class="post-link" href="{{ post.url | relative_url }}">
|
|
{{ post.title | escape }}
|
|
</a>
|
|
</h3>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<h2 class="post-list-heading" style="margin-top: 40px;">Categories</h2>
|
|
|
|
<div class="modules-wrapper">
|
|
{% for folder_name in site.module_order %}
|
|
{% assign cat_posts = site.categories[folder_name] %}
|
|
{% if cat_posts %}
|
|
{% include folder_tree.html name=folder_name posts=cat_posts %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% assign sorted_cats = site.categories | sort %}
|
|
{% for category in sorted_cats %}
|
|
{% assign cat_name = category[0] %}
|
|
{% assign cat_posts = category[1] %}
|
|
{% unless site.module_order contains cat_name %}
|
|
{% include folder_tree.html name=cat_name posts=cat_posts %}
|
|
{% endunless %}
|
|
{% endfor %}
|
|
|
|
</div>
|