Web/_includes/blog.html

40 lines
1.5 KiB
HTML
Raw Permalink Normal View History

<div class="list-display rounded">
2023-02-12 12:18:45 +01:00
<h1 id="blog">
<span id="blog-all"></span>
{% for tag in site.tags %}
2023-08-07 14:04:06 +02:00
<span id="blog-{{ tag[0] | slugify }}"></span>
2023-02-12 12:18:45 +01:00
{% endfor %}
📔 Blog
</h1>
<p>
This is my blog, where I post about gaming, programming and life. The featured posts are the ones you'll probably be most interested in, but you can select a different category to see every post.
</p>
2022-11-02 21:28:32 +01:00
<p>📫 You can also subscribe to this blog through the <a href="https://ell.lt/lists">mailing list</a> or the <a href="/feed.xml">Atom feed</a>.</p>
<div id="blog-cats">
{% include tagbtn.html tag="All" %}
{%- assign sorted = site.tags | sort -%}
{%- for tag in sorted -%}
2023-08-07 14:04:06 +02:00
{%- assign name = tag[0] -%}
{% include tagbtn.html tag=name %}
{%- endfor -%}
</div>
<div id="blog-list">
{% for post in site.posts %}
2023-08-07 14:04:06 +02:00
{% if post.archived != true %}
{% include post.html post=post %}
{% endif %}
{% endfor %}
</div>
<button type="button" class="btn btn-link" id="blog-archive-button">Show archived posts</button>
<div id="blog-archive">
{% for post in site.posts %}
2023-08-07 14:04:06 +02:00
{% if post.archived == true %}
{% include post.html post=post %}
{% endif %}
{% endfor %}
<em id="no-archived-posts" hidden>There are no archived posts in this category.</em>
</div>
<script src="/scripts/blog.js"></script>
2022-07-17 15:26:14 +02:00
</div>