summaryrefslogtreecommitdiff
path: root/feed.gmi
blob: ac3e185902c1dab5b8b1f70f03a6735ffdb2e42a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
---
  {% assign title = site.title | default: site.name %}

  {% if title %}
# {{ title | smartify | xml_escape }}
  {% endif %}

  {% if site.description %}
## {{ site.description | xml_escape }}
  {% endif %}

  {% unless site.show_drafts %}
    {% assign posts = site.posts | where_exp: "post", "post.draft != true" %}
  {% endunless %}
  {% assign posts = posts | sort: "date" | reverse %}
  {% for post in posts %}
      {% assign post_title = post.title | smartify | strip_html | normalize_whitespace | xml_escape %}

=> {{ post.url }} {{ post.date | date: "%Y-%m-%d" }} {{ post_title }}
  {% endfor %}