mirror of
https://github.com/correl/correl.github.io.git
synced 2024-11-15 03:00:11 +00:00
Add an emacs-specific feed
This commit is contained in:
parent
29426f9b8e
commit
164a2e36f1
3 changed files with 27 additions and 0 deletions
|
@ -33,6 +33,8 @@
|
||||||
</script>
|
</script>
|
||||||
<link rel="alternate" type="application/rss+xml" title="All Stories"
|
<link rel="alternate" type="application/rss+xml" title="All Stories"
|
||||||
href="/feed.xml">
|
href="/feed.xml">
|
||||||
|
<link rel="alternate" type="application/rss+xml" title="Emacs Stories"
|
||||||
|
href="/feed-emacs.xml">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
|
|
21
_layouts/tag-feed.xml
Normal file
21
_layouts/tag-feed.xml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
---
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<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-{{ page.tag }}.xml" rel="self" type="application/rss+xml" />
|
||||||
|
{% for post in site.tags[page.tag] limit:10 %}
|
||||||
|
<item>
|
||||||
|
<title>{{ post.title | xml_escape }}</title>
|
||||||
|
<dc:creator>{{ post.author | xml_escape }}</dc:creator>
|
||||||
|
<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>
|
4
feed-emacs.xml
Normal file
4
feed-emacs.xml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
layout: tag-feed
|
||||||
|
tag: emacs
|
||||||
|
---
|
Loading…
Reference in a new issue