Skip to content

Commit a7f51bc

Browse files
committed
rss added
1 parent 7024c3f commit a7f51bc

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

Diff for: _includes/rss.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<feed xmlns="http://www.w3.org/2005/Atom">
3+
<title type="text" xml:lang="en">{{ site.title }}</title>
4+
<link type="application/atom+xml" href="{{ site.url }}/feed" rel="self" />
5+
<link type="text" href="{{ site.url }}" rel="alternate" />
6+
7+
<updated>{{ site.time | date_to_xmlschema }}</updated>
8+
<id>{{ site.url }}</id>
9+
<author><name>Michael Bodnarchuk "Davert"</name></author>
10+
<rights>Copyright (c) Codeception</rights>
11+
12+
{% for post in site.posts limit:30 %}
13+
<entry>
14+
<title>{{ post.title }}</title>
15+
<link href="{{ site.url }}{{ post.url }}/"/>
16+
<updated>{{ post.date | date_to_xmlschema }}</updated>
17+
<id>{{ site.url }}{{ post.url }}/</id>
18+
<summary type="html">{{ post.content | strip_html | truncatewords: 20 }}</summary>
19+
</entry>
20+
{% endfor %}
21+
</feed>

Diff for: _layouts/default.html

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
1212
<script src="/js/jquery.tableofcontents.min.js" type="text/javascript" charset="utf-8"></script>
1313

14+
<link title="Codeception Blog" type="application/rss+xml" rel="alternate" href="/feed"/>
15+
1416
</head>
1517
<body>
1618
<a href="http://github.com/codeception/codeception"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/ce742187c818c67d98af16f96ed21c00160c234a/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f677261795f3664366436642e706e67" alt="Fork me on GitHub"></a>

Diff for: blog.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Codeception Blog
77

88
{% for post in site.posts %}
99

10-
## [{{ post.title }}]({{ post.url }})
10+
### [{{ post.title }}]({{ post.url }})
1111

1212
#### {{ post.date | date: "%B %d, %Y" }}
1313

Diff for: feed/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
---
3+
{% include rss.html %}

0 commit comments

Comments
 (0)