1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 19:44:21 +00:00
bluelib/_layouts/home.html

56 lines
1.4 KiB
HTML

---
layout: base
---
<section class="panel panel-box">
<h2>
{{ page.title }}
</h2>
{{ content }}
</section>
{% if site.posts %}
<section class="panel panel-box">
<h2>
Posts
</h2>
<p>
These are the latest posts in the site in reverse chronological order.
</p>
{% for post in site.posts %}
{% include post-summary.html %}
{% endfor %}
</section>
<section class="panel panel-box">
<h2>
Posts by tag
</h2>
<p>
These are all the posts in the blog, grouped by their tag.
</p>
<section class="chapter">
{% for tag_pair in site.tags %}
<section id="tag-{{ tag_pair[0] }}" class="panel panel-box">
<h3>
{{ tag_pair[0] }}
</h3>
{% for post in tag_pair[1] %}
{% include post-summary.html %}
{% endfor %}
</section>
{% endfor %}
</section>
</section>
{% else %}
<section class="panel panel-box">
<h2>
Pages
</h2>
<p>
These are the pages in the site in alphabetical order.
</p>
{% for post in site.posts %}
{% include page-summary.html %}
{% endfor %}
</section>
{% endif %}