1
0
Fork 0

Update feed

This commit is contained in:
Daniel Kempkens 2014-12-24 22:52:49 +01:00
parent edc731eb8d
commit f6eb88b291
3 changed files with 29 additions and 19 deletions

View file

@ -1,4 +1,4 @@
all: compile upload
all: compile upload superfeedr
compile:
@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
@echo "=== Changing permissions"
@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"

View file

@ -11,6 +11,7 @@ title: tail call
tagline: 'Ramblings in software development'
description: The ramblings of a 25-year-old software developer from Germany.
url: https://blog.kempkens.io
hub_url: https://kempkens-blog.superfeedr.com
baseurl: /
author:

View file

@ -3,23 +3,29 @@ layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<link href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>
<title>{{ site.title }}</title>
<link rel="self" href="{{ site.url }}/feed.xml" />
<link href="{{ site.url }}/"/>
<link rel="hub" href="{{ site.hub_url }}/" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ site.url }}{{ post.url }}" />
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
{% for post in site.posts %}
<entry>
<id>{{ site.url }}{{ post.id }}</id>
<title>{{ post.title }}</title>
<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>
{% endif %}
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>