-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (33 loc) · 1.2 KB
/
index.html
File metadata and controls
35 lines (33 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
layout: default
---
{% for post in paginator.posts %}
<article class="teaser">
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p>Recorded: {{ post.recorded|date: "%Y-%m-%d" }}, Published: {{ post.date|date: "%Y-%m-%d" }}</p>
{% if post.podcast %}
<div class="player">
<audio src="{{ post.podcast.file }}" preload="none" controls></audio>
<a href="{{ post.podcast.file }}">Download MP3</a>
</div>
{% if post.excerpt %}
{{ post.excerpt | markdownify }}
{% else %}
{{ post.content | mark_excerpt }}
{% endif %}
<p><a href="{{ post.url }}" class="more-link"><span class="readmore">Read More...</span></a></p>
{% endif %}
</article>
{% endfor %}
<!-- Pagination links -->
{% if paginator.total_pages > 1 %}
<footer class="pagination">
{% if paginator.previous_page %}
<a href="{% if paginator.previous_page == 1 %}/{%else%}/page{{ paginator.previous_page }}{%endif%}" class="previous">Previous Page</a>
{% endif %}
<span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}" class="next">Next Page</a>
{% endif %}
</footer>
{% endif %}