summaryrefslogtreecommitdiff
path: root/feed.gmi
blob: 1e7f11d80f853605052f24f56e5689b01d666492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
---
  {% 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 %}
  {% assign posts_limit = site.feed.posts_limit | default: 10 %}
  {% for post in posts limit: posts_limit %}
      {% assign post_title = post.title | smartify | strip_html | normalize_whitespace | xml_escape %}

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