Add daily emails and archive
This commit is contained in:
parent
7ec664a810
commit
e2b6832598
379 changed files with 11132 additions and 0 deletions
39
source/_pages/archive.html
Normal file
39
source/_pages/archive.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
title: Daily Email Archive
|
||||
generator: pagination
|
||||
pagination:
|
||||
max_per_page: 30
|
||||
provider: data.daily_emails
|
||||
use:
|
||||
- daily_emails
|
||||
---
|
||||
|
||||
{% block content %}
|
||||
<div class="space-y-16">
|
||||
<div>
|
||||
<ul>
|
||||
{% for email in page.pagination.items %}
|
||||
<li>
|
||||
<a href="{{ email.url }}">
|
||||
{{ email.date|date('jS F Y') }}:
|
||||
{{ email.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% if page.pagination.previous_page or page.pagination.next_page %}
|
||||
<nav class="flex justify-center pt-10 space-x-6">
|
||||
{% if page.pagination.previous_page %}<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">← Newer Posts{% endif %}<br />
|
||||
{% if page.pagination.next_page %}<a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Posts →</a>{% endif %}<br />
|
||||
</nav>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content_bottom %}
|
||||
{% include 'daily-email-form.html.twig' %}
|
||||
|
||||
{% include 'about-me.html.twig' %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue