Fix planetfeed: Add page type to yaml

This commit is contained in:
Stefan Schlott 2016-02-29 10:12:18 +01:00
parent 1378ee2ae6
commit 33a00cda42
2 changed files with 2 additions and 0 deletions

View file

@ -81,3 +81,4 @@ blogposts:
date: 2015-08-06 18:53:05.000000000 Z date: 2015-08-06 18:53:05.000000000 Z
title: Lustiges Tierleben title: Lustiges Tierleben
url: http://blog.querulantin.de/serendipity/index.php?/archives/438-Lustiges-Tierleben.html url: http://blog.querulantin.de/serendipity/index.php?/archives/438-Lustiges-Tierleben.html
kind: page

View file

@ -58,6 +58,7 @@ blogposts['blogposts'].sort! do |a,b|
end end
end end
blogposts['blogposts'] = blogposts['blogposts'][0..19] blogposts['blogposts'] = blogposts['blogposts'][0..19]
blogposts['kind'] = 'page'
# Output # Output
File.open(blogposts_file, 'w+') {|f| f.write(blogposts.to_yaml) } File.open(blogposts_file, 'w+') {|f| f.write(blogposts.to_yaml) }