mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 23:37:19 +00:00
add rss support
This commit is contained in:
parent
7efb4a3698
commit
6199807c21
@ -1,3 +1,7 @@
|
|||||||
|
#for rss feed
|
||||||
|
name: arcanis' blog
|
||||||
|
url: http://arcanis.name/
|
||||||
|
|
||||||
source: .
|
source: .
|
||||||
destination: ./_site
|
destination: ./_site
|
||||||
plugins: ./_plugins
|
plugins: ./_plugins
|
||||||
|
@ -11,6 +11,11 @@
|
|||||||
<link rel="stylesheet" href="/resources/css/styles.css">
|
<link rel="stylesheet" href="/resources/css/styles.css">
|
||||||
<link rel="stylesheet" href="/resources/css/syntax.css">
|
<link rel="stylesheet" href="/resources/css/syntax.css">
|
||||||
<link rel="shortcut icon" href="/resources/icon.ico">
|
<link rel="shortcut icon" href="/resources/icon.ico">
|
||||||
|
{% if page.category == "ru" %}
|
||||||
|
<link href="/ru/feed.xml" rel="alternate" title="arcanis' blog" type="application/rss+xml">
|
||||||
|
{% else %}
|
||||||
|
<link href="/feed.xml" rel="alternate" title="arcanis' blog" type="application/rss+xml">
|
||||||
|
{% endif %}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
@ -22,6 +22,7 @@ Evgeniy Alekseev wrote this file. As long as you retain this notice you can do w
|
|||||||
<li>The source theme was created by <a href="https://github.com/orderedlist/minimal">Steve Smith</a> and licensed under <a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</li>
|
<li>The source theme was created by <a href="https://github.com/orderedlist/minimal">Steve Smith</a> and licensed under <a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</li>
|
||||||
<li>Disqus, which is used for comment block, has own <a href="http://help.disqus.com/customer/portal/articles/466260-terms-of-service">custom license</a>.</li>
|
<li>Disqus, which is used for comment block, has own <a href="http://help.disqus.com/customer/portal/articles/466260-terms-of-service">custom license</a>.</li>
|
||||||
<li>The spoiler block was created by <a href="http://www.cyberforum.ru/post5368179.html">markeley</a> and <a href="http://habrahabr.ru/post/167151/">Defff</a> and it looks like it has no any license.</li>
|
<li>The spoiler block was created by <a href="http://www.cyberforum.ru/post5368179.html">markeley</a> and <a href="http://habrahabr.ru/post/167151/">Defff</a> and it looks like it has no any license.</li>
|
||||||
|
<li>This site uses RSS template, which was suggested by <a href="https://github.com/snaptortoise/jekyll-rss-feeds">snaptortoise</a>.</li>
|
||||||
<li>Google Custom Search is licensed under own <a href="https://support.google.com/customsearch/answer/1714300">custom license</a>.</li>
|
<li>Google Custom Search is licensed under own <a href="https://support.google.com/customsearch/answer/1714300">custom license</a>.</li>
|
||||||
<li>Sharethis have own <a href="http://www.sharethis.com/legal/publisher-terms-of-use">custom license</a> too.</li>
|
<li>Sharethis have own <a href="http://www.sharethis.com/legal/publisher-terms-of-use">custom license</a> too.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
24
feed.xml
Normal file
24
feed.xml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
layout: none
|
||||||
|
---
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>{{ site.name | xml_escape }}</title>
|
||||||
|
<link>{{ site.url }}ru</link>
|
||||||
|
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
|
||||||
|
{% for post in site.categories.en limit:10 %}
|
||||||
|
{% if post.tags contains 'offtop' %}
|
||||||
|
<!-- do nothing -->
|
||||||
|
{% else %}
|
||||||
|
<item>
|
||||||
|
<title>{{ post.title | xml_escape }}</title>
|
||||||
|
<description>{{ post.description | xml_escape }}</description>
|
||||||
|
<pubDate>{{ post.date | date_to_string }}</pubDate>
|
||||||
|
<link>{{ site.url }}{{ post.url }}</link>
|
||||||
|
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
||||||
|
</item>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</channel>
|
||||||
|
</rss>
|
@ -13,6 +13,7 @@ title: arcanis' homepage
|
|||||||
<label class="spoiler">
|
<label class="spoiler">
|
||||||
<input type="checkbox" tabindex="-1">
|
<input type="checkbox" tabindex="-1">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
<a href="/feed.xml"><img src="/resources/feed-icon-14x14.png"></a>
|
||||||
<a href="/blog/">Blog</a> <span class="close">(hide)</span><span class="open">(show)</span>
|
<a href="/blog/">Blog</a> <span class="close">(hide)</span><span class="open">(show)</span>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
{% for post in site.categories.en limit:3 %}
|
{% for post in site.categories.en limit:3 %}
|
||||||
|
BIN
resources/feed-icon-14x14.png
Executable file
BIN
resources/feed-icon-14x14.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 689 B |
@ -24,6 +24,7 @@ Evgeniy Alekseev wrote this file. As long as you retain this notice you can do w
|
|||||||
<li>Исходная тема была создана <a href="https://github.com/orderedlist/minimal">Steve Smith</a> и лицензирована под <a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</li>
|
<li>Исходная тема была создана <a href="https://github.com/orderedlist/minimal">Steve Smith</a> и лицензирована под <a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</li>
|
||||||
<li>Disqus, который используется для блока комментариев, имеет собственную <a href="http://help.disqus.com/customer/portal/articles/466260-terms-of-service">кастомную лицензию</a>.</li>
|
<li>Disqus, который используется для блока комментариев, имеет собственную <a href="http://help.disqus.com/customer/portal/articles/466260-terms-of-service">кастомную лицензию</a>.</li>
|
||||||
<li>Код для спойлеров был предложен <a href="http://www.cyberforum.ru/post5368179.html">markeley</a> и <a href="http://habrahabr.ru/post/167151/">Defff</a>, и, судя по всему, он не имеет никакой лицензии.</li>
|
<li>Код для спойлеров был предложен <a href="http://www.cyberforum.ru/post5368179.html">markeley</a> и <a href="http://habrahabr.ru/post/167151/">Defff</a>, и, судя по всему, он не имеет никакой лицензии.</li>
|
||||||
|
<li>Данный сайт использует RSS шаблон, который был предложен <a href="https://github.com/snaptortoise/jekyll-rss-feeds">snaptortoise</a>.</li>
|
||||||
<li>Google Custom Search имеет собственную <a href="https://support.google.com/customsearch/answer/1714300">кастомную лицензию</a>.</li>
|
<li>Google Custom Search имеет собственную <a href="https://support.google.com/customsearch/answer/1714300">кастомную лицензию</a>.</li>
|
||||||
<li>Sharethis тоже имеет собственную <a href="http://www.sharethis.com/legal/publisher-terms-of-use">кастомную лицензию</a>.</li>
|
<li>Sharethis тоже имеет собственную <a href="http://www.sharethis.com/legal/publisher-terms-of-use">кастомную лицензию</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
24
ru/feed.xml
Normal file
24
ru/feed.xml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
layout: none
|
||||||
|
---
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>{{ site.name | xml_escape }}</title>
|
||||||
|
<link>{{ site.url }}</link>
|
||||||
|
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
|
||||||
|
{% for post in site.categories.ru limit:10 %}
|
||||||
|
{% if post.tags contains 'offtop' %}
|
||||||
|
<!-- do nothing -->
|
||||||
|
{% else %}
|
||||||
|
<item>
|
||||||
|
<title>{{ post.title | xml_escape }}</title>
|
||||||
|
<description>{{ post.description | xml_escape }}</description>
|
||||||
|
<pubDate>{{ post.date | date_to_string }}</pubDate>
|
||||||
|
<link>{{ site.url }}{{ post.url }}</link>
|
||||||
|
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
||||||
|
</item>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</channel>
|
||||||
|
</rss>
|
@ -14,6 +14,7 @@ title: arcanis
|
|||||||
<label class="spoiler">
|
<label class="spoiler">
|
||||||
<input type="checkbox" tabindex="-1">
|
<input type="checkbox" tabindex="-1">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
<a href="/ru/feed.xml"><img src="/resources/feed-icon-14x14.png"></a>
|
||||||
<a href="/ru/blog/">Блог</a> <span class="close">(скрыть)</span><span class="open">(показать)</span>
|
<a href="/ru/blog/">Блог</a> <span class="close">(скрыть)</span><span class="open">(показать)</span>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
{% for post in site.categories.ru limit:3 %}
|
{% for post in site.categories.ru limit:3 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user