mirror of
https://github.com/ivabus/website
synced 2024-11-22 16:35:11 +03:00
47 lines
No EOL
1.5 KiB
HTML
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 }}">« Prev</a>
|
|
{% else %}
|
|
<span>« 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 »</a>
|
|
{% else %}
|
|
<span>Next »</span>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div> |