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

57 lines
1.4 KiB
HTML
Raw Normal View History

2021-10-11 00:35:20 +00:00
---
layout: base
---
<section class="panel panel-box">
<h2>
{{ page.title }}
</h2>
{{ content }}
</section>
2021-10-12 17:02:26 +00:00
{% 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] %}
2021-10-11 00:35:20 +00:00
{% include post-summary.html %}
2021-10-12 17:02:26 +00:00
{% endfor %}
</section>
2021-10-11 00:35:20 +00:00
{% endfor %}
</section>
2021-10-12 17:02:26 +00:00
</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 %}
2021-10-11 00:35:20 +00:00
{% endfor %}
</section>
2021-10-12 17:02:26 +00:00
{% endif %}