capsule/templates/index.tera

31 lines
859 B
Plaintext

{#
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 -%}
=> {{ entry.url }} {{ entry.updated | date(format="%Y-%m-%d") }} {{ entry.title }}
{%- if entry.categories -%}
{% for category in entry.categories %}#{{ category }}{% if not loop.last%} {% endif %}{% endfor %}
{% endif %}
{% endfor %}
─────
=> {{ feed.feed_url }} [atom feed]
=> {{ feed.capsule_url }} [home]
{% if feed.rights -%}
{{ feed.rights }}
{%- endif %}