Theme installed
This commit is contained in:
parent
8c90bb2dfc
commit
9f4d78baa2
135 changed files with 2650 additions and 269 deletions
41
templates/section.html
Normal file
41
templates/section.html
Normal file
|
@ -0,0 +1,41 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="row content">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-6 content" id="catlist">
|
||||
<h1 class="center">{{ section.title }}</h1>
|
||||
<ul>
|
||||
{% for post in paginator.pages %}
|
||||
<li><b><a href="{{ post.permalink | safe }}">
|
||||
{{ post.date | date(format="%e %b %Y") }} <span class="invis">»</span>
|
||||
{{ post.title }}</a></b><span class="icon icon-time post-list"></span><span class="invis reading-time">{{ post.reading_time }} min read</span>
|
||||
{%- if post.description -%}<div class="invis post-desc">{{ post.description }}</div>{%- endif -%}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="pagination">
|
||||
{%- if paginator.previous or paginator.next -%}
|
||||
{%- set pag_start = 1 -%}
|
||||
{%- set pag_end = paginator.number_pagers -%}
|
||||
{%- if paginator.previous -%}<a href = "{{ paginator.previous }}">←</a>{%- endif -%}
|
||||
{%- for i in range(start=pag_start, end=pag_end+1) -%}
|
||||
<a class="{% if paginator.current_index == i %} current {% endif %}" href="{{ paginator.base_url | safe }}{{ i ~ '/' }}">{{i}}</a>
|
||||
{%- endfor -%}
|
||||
{%- if paginator.next -%}<a href = {{paginator.next}}>→</a>{%- endif -%}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2" id="taglist">
|
||||
{% if section.ancestors %}
|
||||
<h4>Tags:</h4>
|
||||
{% set tags = get_taxonomy(kind="tags") %}
|
||||
<ul>
|
||||
{% for tag in tags.items %}
|
||||
<li><a href="{{ tag.permalink | safe }}">{{ tag.name }}</a> ({{ tag.pages | length }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue