mods.shadowfacts.net/_layouts/article.html

35 lines
966 B
HTML
Raw Normal View History

2017-05-08 23:02:29 +00:00
---
layout: default
---
{% assign icon = page.icon-item %}
<div class="row justify-content-between">
<div class="col-9">
<h1>{{ page.title }} {% unless icon == nil %}{% include item.html item=icon %}{% endunless %}</h1>
<article>
{{ content }}
</article>
</div>
<div class="col-auto">
<div class="list-group">
<a href="/{{ page.mod }}/" class="list-group-item {% if page.type == 'mod' %}active{% else %}list-group-item-action{% endif %}">{{ page.mod-name }}</a>
{% assign sorted = site.articles | sort %}
{% for article in sorted %}
{% if article.mod == page.mod %}
<a href="{{ article.url }}" class="list-group-item {% if article.url == page.url %}active{% else %}list-group-item-action{% endif %}">
{% unless article.icon-item == nil %}
{% assign icon = article.icon-item %}
{% include item.html item=icon %}
{% endunless %}
{{ article.title }}
</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>