feat: feedpress plus cleanup
This commit is contained in:
parent
cc0a934f88
commit
29d3042f63
16 changed files with 32 additions and 107 deletions
23
src/feeds/feed.liquid
Normal file
23
src/feeds/feed.liquid
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
layout: null
|
||||
permalink: /feeds/posts
|
||||
---
|
||||
{% layout "./_includes/feeds/feed.liquid" %}
|
||||
{% block title %}All posts • Cory Dransfeldt{% endblock %}
|
||||
{% block self %}feed.xml{% endblock %}
|
||||
{% block update %}
|
||||
{{ collections.posts[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
|
||||
{% block entries %}
|
||||
{% assign posts = collections.posts | reverse %}
|
||||
{% for post in posts limit: 15 %}
|
||||
<entry>
|
||||
<title>{{ post.data.title }}</title>
|
||||
<link href="{{ site.url }}{{ post.url }}" />
|
||||
<updated>{{ post.date | date: "%m.%d.%Y" }}</updated>
|
||||
<id>{{ site.url }}{{ post.url }}</id>
|
||||
<content type="html">
|
||||
{{ post.data.post_excerpt | markdown | escape }}
|
||||
</content>
|
||||
</entry>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
Reference in a new issue