2024-03-03 22:34:46 +00:00
|
|
|
{#
|
|
|
|
This is an example of a Tera template for your gemlog's index page.
|
|
|
|
|
|
|
|
This example formats your index page in the standard gemsub format that
|
|
|
|
Gemini clients can subscribe to. Note that gempost already generates an Atom
|
|
|
|
feed that clients should be able to subscribe to.
|
|
|
|
|
|
|
|
Here is the documentation for the gemsub format:
|
|
|
|
https://geminiprotocol.net/docs/companion/subscription.gmi
|
|
|
|
#}# {{ feed.title }}
|
|
|
|
|
|
|
|
{% if feed.subtitle -%}
|
|
|
|
## {{ feed.subtitle }}
|
|
|
|
{% endif -%}
|
|
|
|
|
|
|
|
{% for entry in feed.entries -%}
|
2024-03-04 01:23:27 +00:00
|
|
|
=> {{ entry.url }} {{ entry.updated | date(format="%Y-%m-%d") }} {{ entry.title }}
|
2024-03-04 00:05:49 +00:00
|
|
|
|
|
|
|
{%- if entry.categories -%}
|
|
|
|
{% for category in entry.categories %}#{{ category }}{% if not loop.last%} {% endif %}{% endfor %}
|
|
|
|
{% endif %}
|
2024-03-04 15:26:25 +00:00
|
|
|
{% endfor %}
|
2024-03-04 00:05:49 +00:00
|
|
|
|
|
|
|
─────
|
|
|
|
|
2024-03-03 22:34:46 +00:00
|
|
|
=> {{ feed.feed_url }} Atom feed
|
2024-03-04 00:05:49 +00:00
|
|
|
=> {{ feed.capsule_url }} Home
|
|
|
|
|
|
|
|
{% if feed.rights -%}
|
|
|
|
{{ feed.rights }}
|
|
|
|
{%- endif %}
|