mirror of
https://github.com/metagov/govarch-website.git
synced 2025-06-22 10:21:06 +00:00
First pass, editing template
This commit is contained in:
@ -24,49 +24,4 @@ layout: default
|
||||
|
||||
<main class="home" id="main" role="main" aria-label="Content">
|
||||
|
||||
<h1 class="content-title divided">
|
||||
{% if site.paginate and site.paginate_path and paginator.page > 1 %}
|
||||
Page {{ paginator.page }}
|
||||
{% else %}
|
||||
Contents
|
||||
{% endif %}
|
||||
</h1>
|
||||
|
||||
{% if site.paginate and site.paginate_path %}
|
||||
|
||||
<ul class="post-list">
|
||||
{% for post in paginator.posts %}
|
||||
{% include post-list-item.html %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% if paginator.total_pages > 1 %}
|
||||
|
||||
<div class="post-pagination">
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination-next btn">⟨ Older</a>
|
||||
{% else %}
|
||||
<span> </span>
|
||||
{% endif %}
|
||||
<span class="pagination-number">{{ paginator.page }} of {{ paginator.total_pages }}</span>
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination-previous btn">Newer ⟩</a>
|
||||
{% else %}
|
||||
<span> </span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
|
||||
<ul class="post-list">
|
||||
{% for post in site.posts %}
|
||||
{% include post-list-item.html %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
</main>
|
||||
</main>
|
||||
|
Reference in New Issue
Block a user