Add rss feed (last 10 posts)
This commit is contained in:
parent
f8ce5f95fe
commit
06ec48434c
@ -1,5 +1,9 @@
|
|||||||
name: Tyler Hallada - Blog
|
name: Tyler Hallada - Blog
|
||||||
|
description: Musings on technology, literature, and interesting topics
|
||||||
|
url: http://hallada.net/blog
|
||||||
markdown: redcarpet
|
markdown: redcarpet
|
||||||
pygments: true
|
pygments: true
|
||||||
paginate: 10
|
paginate: 10
|
||||||
paginate_path: "blog/page:num"
|
paginate_path: "blog/page:num"
|
||||||
|
gems:
|
||||||
|
- jekyll-redirect-from
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
<!-- Web Fonts -->
|
<!-- Web Fonts -->
|
||||||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700' rel='stylesheet' type='text/css'>
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700' rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
|
<!-- RSS Feed -->
|
||||||
|
<link href='/feed.xml' rel='alternate' type='application/atom+xml'>
|
||||||
|
|
||||||
<!-- Favicon -->
|
<!-- Favicon -->
|
||||||
<link rel="shortcut icon" href="/favicon.png" />
|
<link rel="shortcut icon" href="/favicon.png" />
|
||||||
</head>
|
</head>
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
<!-- Custom CSS -->
|
<!-- Custom CSS -->
|
||||||
<link rel="stylesheet" href="/css/main.css">
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
|
||||||
|
<!-- RSS Feed -->
|
||||||
|
<link href='/feed.xml' rel='alternate' type='application/atom+xml'>
|
||||||
|
|
||||||
<!-- Web Fonts -->
|
<!-- Web Fonts -->
|
||||||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italics,300,300italics,200' rel='stylesheet' type='text/css'>
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italics,300,300italics,200' rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
|
22
feed.xml
Normal file
22
feed.xml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
layout: none
|
||||||
|
redirect_from: "/rss"
|
||||||
|
---
|
||||||
|
<?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>
|
||||||
|
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</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 | xml_escape }}</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>
|
Loading…
Reference in New Issue
Block a user