Update feed
This commit is contained in:
parent
edc731eb8d
commit
f6eb88b291
3 changed files with 29 additions and 19 deletions
5
Makefile
5
Makefile
|
@ -1,4 +1,4 @@
|
||||||
all: compile upload
|
all: compile upload superfeedr
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
@echo "=== Generating static files"
|
@echo "=== Generating static files"
|
||||||
|
@ -9,3 +9,6 @@ upload:
|
||||||
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ webserver.kempkens.io:/var/www/blog
|
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ webserver.kempkens.io:/var/www/blog
|
||||||
@echo "=== Changing permissions"
|
@echo "=== Changing permissions"
|
||||||
@ssh webserver.kempkens.io chown -R www:www /var/www/blog
|
@ssh webserver.kempkens.io chown -R www:www /var/www/blog
|
||||||
|
|
||||||
|
superfeedr:
|
||||||
|
curl -X POST https://kempkens-blog.superfeedr.com -d "hub.mode=publish" -d "hub.url=https://blog.kempkens.io/feed.xml"
|
||||||
|
|
|
@ -11,6 +11,7 @@ title: tail call
|
||||||
tagline: 'Ramblings in software development'
|
tagline: 'Ramblings in software development'
|
||||||
description: The ramblings of a 25-year-old software developer from Germany.
|
description: The ramblings of a 25-year-old software developer from Germany.
|
||||||
url: https://blog.kempkens.io
|
url: https://blog.kempkens.io
|
||||||
|
hub_url: https://kempkens-blog.superfeedr.com
|
||||||
baseurl: /
|
baseurl: /
|
||||||
|
|
||||||
author:
|
author:
|
||||||
|
|
42
feed.xml
42
feed.xml
|
@ -3,23 +3,29 @@ layout: null
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
<title>{{ site.title }}</title>
|
<title>{{ site.title }}</title>
|
||||||
<link href="{{ site.url }}/atom.xml" rel="self"/>
|
<link rel="self" href="{{ site.url }}/feed.xml" />
|
||||||
<link href="{{ site.url }}/"/>
|
<link href="{{ site.url }}/"/>
|
||||||
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
<link rel="hub" href="{{ site.hub_url }}/" />
|
||||||
<id>{{ site.url }}</id>
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
||||||
<author>
|
<id>{{ site.url }}</id>
|
||||||
<name>{{ site.author.name }}</name>
|
<author>
|
||||||
<email>{{ site.author.email }}</email>
|
<name>{{ site.author.name }}</name>
|
||||||
</author>
|
<email>{{ site.author.email }}</email>
|
||||||
|
</author>
|
||||||
|
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<entry>
|
<entry>
|
||||||
<title>{{ post.title }}</title>
|
<id>{{ site.url }}{{ post.id }}</id>
|
||||||
<link href="{{ site.url }}{{ post.url }}" />
|
<title>{{ post.title }}</title>
|
||||||
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
<link href="{{ site.url }}{{ post.url }}" />
|
||||||
<id>{{ site.url }}{{ post.id }}</id>
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
||||||
<content type="html">{{ post.content | xml_escape }}</content>
|
{% if post.modified != nil %}
|
||||||
</entry>
|
<updated>{{ post.modified | date_to_xmlschema }}</updated>
|
||||||
{% endfor %}
|
{% else %}
|
||||||
|
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
||||||
|
{% endif %}
|
||||||
|
<content type="html">{{ post.content | xml_escape }}</content>
|
||||||
|
</entry>
|
||||||
|
{% endfor %}
|
||||||
</feed>
|
</feed>
|
||||||
|
|
Loading…
Reference in a new issue