From 6cf842950bec0b2dc861836fdf9157ef6f269fa6 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Mon, 9 Jun 2014 21:53:34 +0400 Subject: [PATCH] add short feed --- _layouts/default.html | 2 ++ feed-short.xml | 30 ++++++++++++++++++++++++++++++ ru/feed-short.xml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 feed-short.xml create mode 100644 ru/feed-short.xml diff --git a/_layouts/default.html b/_layouts/default.html index 2239c5b..0a8b9da 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -13,8 +13,10 @@ {% if page.category == "ru" %} + {% else %} + {% endif %} + {% else %} + + {{ post.title | xml_escape }} + {{ post.description | xml_escape }} + {{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }} + {{ site.url }}{{ post.url }} + {{ site.url }}{{ post.url }} + + {% endif %} + {% endfor %} + + diff --git a/ru/feed-short.xml b/ru/feed-short.xml new file mode 100644 index 0000000..bb48691 --- /dev/null +++ b/ru/feed-short.xml @@ -0,0 +1,30 @@ +--- +layout: none +--- + + + + arcanis' blog + arcanis' blog (только названия) + {{ site.url }}/ru + + {{ site.url }}/resources/icon-35x35.png + arcanis' blog + {{ site.url }}/ru + + + {% for post in site.categories.ru limit:10 %} + {% if post.tags contains 'offtop' %} + + {% else %} + + {{ post.title | xml_escape }} + {{ post.description | xml_escape }} + {{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }} + {{ site.url }}{{ post.url }} + {{ site.url }}{{ post.url }} + + {% endif %} + {% endfor %} + +