website/blog/index.html
Ivan Bushchik 40ae41dc60
Reinitial commit (rewriting history)
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-09-04 17:16:49 +03:00

47 lines
No EOL
1.5 KiB
HTML

---
layout: default
title: "Blog"
---
<div>
<h1 style="font-size: 24px; margin-bottom: 0;">Blog</h1>
<a href="/feed.xml" style="margin-top: 0;">RSS feed</a>
<div id="blog-archives">
{% for post in paginator.posts %}
<article class="post" style="margin-top: 15px;">
<h2 style="font-size: 14pt; margin: 0 0 0 0;"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="meta"><span class="postdate">{{ post.date | date: "%b %d, %Y" }}</span></p>
{% if post.summary %}
<p>{{ post.summary }}</p>
{% endif %}
{% if post.img %}
<img src="{{ post.img }}" width=600/>
{% endif %}
</article>
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination" align="center">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}">&laquo; Prev</a>
{% else %}
<span>&laquo; Prev</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<span>{{ page }}</span>
{% elsif page == 1 %}
<a href="{{ '/blog' | relative_url }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}">Next &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}
</div>
{% endif %}
</div>