42 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			42 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								{% 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 %}
							 | 
						||
| 
								 | 
							
								
							 |