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:
|
||||||
|
|
10
feed.xml
10
feed.xml
|
@ -4,8 +4,9 @@ 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 }}/"/>
|
||||||
|
<link rel="hub" href="{{ site.hub_url }}/" />
|
||||||
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
||||||
<id>{{ site.url }}</id>
|
<id>{{ site.url }}</id>
|
||||||
<author>
|
<author>
|
||||||
|
@ -15,10 +16,15 @@ layout: null
|
||||||
|
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<entry>
|
<entry>
|
||||||
|
<id>{{ site.url }}{{ post.id }}</id>
|
||||||
<title>{{ post.title }}</title>
|
<title>{{ post.title }}</title>
|
||||||
<link href="{{ site.url }}{{ post.url }}" />
|
<link href="{{ site.url }}{{ post.url }}" />
|
||||||
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
||||||
|
{% if post.modified != nil %}
|
||||||
|
<updated>{{ post.modified | date_to_xmlschema }}</updated>
|
||||||
|
{% else %}
|
||||||
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
||||||
<id>{{ site.url }}{{ post.id }}</id>
|
{% endif %}
|
||||||
<content type="html">{{ post.content | xml_escape }}</content>
|
<content type="html">{{ post.content | xml_escape }}</content>
|
||||||
</entry>
|
</entry>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue