Skip to content

Commit

Permalink
RSS and checking todos
Browse files Browse the repository at this point in the history
  • Loading branch information
muan committed May 30, 2013
1 parent d4436dc commit 793992d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ This is work in progress, come back later. Star the repo or follow me on [Twitte

1. <del>Pagination</del>
2. Syntax highlighting code for each theme
3. Style titles
3. <del>Style titles</del>
4. Pretty date
5. <del>Instruction</del>
6. RSS feed
6. <del>RSS feed</del>
7. Category links
8. Signoff
9. <del>Move things out of includes</del>
10. Style blockquotes
10. <del>Style blockquotes</del>
11. Check image and iframe presentations in posts
12. Confirm installation commands

---

Expand Down
21 changes: 21 additions & 0 deletions feed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ <h2>{{ post.title }}</h2>
</li>
{% endfor %}
</ul>
{% unless paginator.total_pages == 1 %}
<section class="pagination">
<a href="/{{ paginator.previous_page_path }}" class="previous-page{% unless paginator.previous_page %} invisible{% endunless %}">Previous</a>
{{ paginator.page }} of {{ paginator.total_pages }}
<a href="/{{ paginator.next_page_path }}" class="next-page{% unless paginator.next_page %} invisible{% endunless %}">Next</a>
</section>
{% endunless %}
<aside>
<img src="{{ site.owner.avatar }}" alt="{{ site.owner.name }}" class="avatar" />
<strong>{{ site.owner.name }}</strong>
Expand Down

0 comments on commit 793992d

Please sign in to comment.