Browse Source

add older/newer entries section to archive-entry.html template.

stable
Craig Oates 2 years ago
parent
commit
ad58e02f5c
  1. 36
      templates/archive-entry.html

36
templates/archive-entry.html

@ -64,8 +64,44 @@
</p>
<p class="fe-hint">Keywords: {{ db-data.keywords | replace:, | with:" • " }}</p>
{{data | safe}}
<div class="fe-article-nav">
{% if older-entries %}
<h2>Previous</h2>
<ul>
{% for item in older-entries %}
<li>
<a href="/view/archive/{{item.slug}}">
{{item.title}}
</a>
<p class="fe-hint">
{{item.month}}{{item.year}}
</p>
</li>
{% endfor %}
</ul>
{% endif %}
{% if newer-entries %}
<h2>Next</h2>
<ul>
{% for item in newer-entries %}
<li>
<a href="/view/archive/{{item.slug}}">
{{item.title}}
</a>
<p class="fe-hint">
{{item.month}}{{item.year}}
</p>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</article>
<script src="/js/instant-meilisearch-0.8.0.js"></script>
<script src="/js/instantsearch-4.43.1.js"></script>
<script src="/js/quick-search.js"></script>

Loading…
Cancel
Save