new theme
This commit is contained in:
parent
5314819ba0
commit
459e385622
13 changed files with 175 additions and 52 deletions
48
posts/index.html
Normal file
48
posts/index.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
layout: page
|
||||
title: Artikel
|
||||
background: '/img/bg-default.jpg'
|
||||
---
|
||||
|
||||
{% for post in paginator.posts %}
|
||||
|
||||
<article class="post-preview">
|
||||
<a href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}">
|
||||
<h2 class="post-title">{{ post.title }}</h2>
|
||||
{% if post.subtitle %}
|
||||
<h3 class="post-subtitle">{{ post.subtitle }}</h3>
|
||||
{% else %}
|
||||
<h3 class="post-subtitle">{{ post.excerpt | strip_html | truncatewords: 15 }}</h3>
|
||||
{% endif %}
|
||||
</a>
|
||||
<p class="post-meta">Posted by
|
||||
{% if post.author %}
|
||||
{{ post.author }}
|
||||
{% else %}
|
||||
{{ site.author }}
|
||||
{% endif %}
|
||||
on {{ post.date | date: '%B %d, %Y' }} · {% include read_time.html content=post.content %}
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<hr>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
<!-- Pager -->
|
||||
{% if paginator.total_pages > 1 %}
|
||||
|
||||
<div class="clearfix">
|
||||
|
||||
{% if paginator.previous_page %}
|
||||
<a class="btn btn-primary float-left" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">←
|
||||
Newer<span class="d-none d-md-inline"> Posts</span></a>
|
||||
{% endif %}
|
||||
|
||||
{% if paginator.next_page %}
|
||||
<a class="btn btn-primary float-right" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older<span class="d-none d-md-inline"> Posts</span> →</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue