feat: add alternate feeds
This commit is contained in:
parent
a4a10af78a
commit
b8d1fde51d
7 changed files with 149 additions and 2 deletions
|
@ -7,7 +7,7 @@ image: https://cdn.wonderfulfrog.com/images/jonny-appleseed.jpeg
|
||||||
tags:
|
tags:
|
||||||
- fiction
|
- fiction
|
||||||
- emotional
|
- emotional
|
||||||
- lqbtq
|
- lgbtq
|
||||||
year: 2018
|
year: 2018
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,23 @@ description: Feed yourself a veritable bevy of feeds.
|
||||||
|
|
||||||
<h1>Feeds</h1>
|
<h1>Feeds</h1>
|
||||||
<p>Here is my collection of feeds for your perusal. They come in RSS varieties.</p>
|
<p>Here is my collection of feeds for your perusal. They come in RSS varieties.</p>
|
||||||
<ul>
|
<ul class="flow list-none pl-0">
|
||||||
<li>
|
<li>
|
||||||
<a href="/feeds/posts.xml">Posts</a>
|
<a href="/feeds/posts.xml">Posts</a>
|
||||||
<p>Just the posts.</p>
|
<p>Just the posts.</p>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/feeds/books.xml">Books</a>
|
||||||
|
<p>Only book content.</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/feeds/games.xml">Games</a>
|
||||||
|
<p>Gives only games.</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/feeds/watching.xml">Watching</a>
|
||||||
|
<p>
|
||||||
|
Feeding all watching content. Also available in <a href="/feeds/movies.xml">movies</a> and <a href="/feeds/shows.xml">shows</a> varieties.
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
26
src/pages/feeds/books.njk
Normal file
26
src/pages/feeds/books.njk
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
permalink: /feeds/books.xml
|
||||||
|
layout: null
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
excludeFromSitemap: true
|
||||||
|
---<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
<title>Books • {{ meta.siteName }}</title>
|
||||||
|
<subtitle>{{ meta.siteDescription }}</subtitle>
|
||||||
|
<link href="{{ meta.url }}/feeds/books.xml" rel="self" />
|
||||||
|
<link href="{{ meta.url }}/" rel="alternate" type="text/html" />
|
||||||
|
<id>{{ meta.url }}/</id>
|
||||||
|
<author>
|
||||||
|
<name>{{ meta.author }}</name>
|
||||||
|
</author>
|
||||||
|
{% for item in collections.book %}
|
||||||
|
<entry>
|
||||||
|
<id>{{ meta.url }}{{ item.url }}</id>
|
||||||
|
<title>{{ item.data.title | escape }}</title>
|
||||||
|
<link href="{{ item.url }}{{ post.url }}" />
|
||||||
|
<pubDate>{{ item.date }}</pubDate>
|
||||||
|
{%- for tag in item.data.tags | filter("book") %}<category term="{{ tag }}" />{%- endfor %}
|
||||||
|
<content type="html">{{ item.content | escape }}</content>
|
||||||
|
</entry>
|
||||||
|
{% endfor %}
|
||||||
|
</feed>
|
26
src/pages/feeds/games.njk
Normal file
26
src/pages/feeds/games.njk
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
permalink: /feeds/games.xml
|
||||||
|
layout: null
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
excludeFromSitemap: true
|
||||||
|
---<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
<title>Games • {{ meta.siteName }}</title>
|
||||||
|
<subtitle>{{ meta.siteDescription }}</subtitle>
|
||||||
|
<link href="{{ meta.url }}/feeds/games.xml" rel="self" />
|
||||||
|
<link href="{{ meta.url }}/" rel="alternate" type="text/html" />
|
||||||
|
<id>{{ meta.url }}/</id>
|
||||||
|
<author>
|
||||||
|
<name>{{ meta.author }}</name>
|
||||||
|
</author>
|
||||||
|
{% for item in collections.game %}
|
||||||
|
<entry>
|
||||||
|
<id>{{ meta.url }}{{ item.url }}</id>
|
||||||
|
<title>{{ item.data.title | escape }}</title>
|
||||||
|
<link href="{{ item.url }}{{ post.url }}" />
|
||||||
|
<pubDate>{{ item.date }}</pubDate>
|
||||||
|
{%- for tag in item.data.tags | filter("game") %}<category term="{{ tag }}" />{%- endfor %}
|
||||||
|
<content type="html">{{ item.content | escape }}</content>
|
||||||
|
</entry>
|
||||||
|
{% endfor %}
|
||||||
|
</feed>
|
26
src/pages/feeds/movies.njk
Normal file
26
src/pages/feeds/movies.njk
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
permalink: /feeds/movies.xml
|
||||||
|
layout: null
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
excludeFromSitemap: true
|
||||||
|
---<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
<title>Movies • {{ meta.siteName }}</title>
|
||||||
|
<subtitle>{{ meta.siteDescription }}</subtitle>
|
||||||
|
<link href="{{ meta.url }}/feeds/movies.xml" rel="self" />
|
||||||
|
<link href="{{ meta.url }}/" rel="alternate" type="text/html" />
|
||||||
|
<id>{{ meta.url }}/</id>
|
||||||
|
<author>
|
||||||
|
<name>{{ meta.author }}</name>
|
||||||
|
</author>
|
||||||
|
{% for item in collections.movie %}
|
||||||
|
<entry>
|
||||||
|
<id>{{ meta.url }}{{ item.url }}</id>
|
||||||
|
<title>{{ item.data.title | escape }}</title>
|
||||||
|
<link href="{{ item.url }}{{ post.url }}" />
|
||||||
|
<pubDate>{{ item.date }}</pubDate>
|
||||||
|
{%- for tag in item.data.tags | filter("movie") %}<category term="{{ tag }}" />{%- endfor %}
|
||||||
|
<content type="html">{{ item.content | escape }}</content>
|
||||||
|
</entry>
|
||||||
|
{% endfor %}
|
||||||
|
</feed>
|
26
src/pages/feeds/shows.njk
Normal file
26
src/pages/feeds/shows.njk
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
permalink: /feeds/shows.xml
|
||||||
|
layout: null
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
excludeFromSitemap: true
|
||||||
|
---<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
<title>Shows • {{ meta.siteName }}</title>
|
||||||
|
<subtitle>{{ meta.siteDescription }}</subtitle>
|
||||||
|
<link href="{{ meta.url }}/feeds/shows.xml" rel="self" />
|
||||||
|
<link href="{{ meta.url }}/" rel="alternate" type="text/html" />
|
||||||
|
<id>{{ meta.url }}/</id>
|
||||||
|
<author>
|
||||||
|
<name>{{ meta.author }}</name>
|
||||||
|
</author>
|
||||||
|
{% for item in collections.tv %}
|
||||||
|
<entry>
|
||||||
|
<id>{{ meta.url }}{{ item.url }}</id>
|
||||||
|
<title>{{ item.data.title | escape }}</title>
|
||||||
|
<link href="{{ item.url }}{{ post.url }}" />
|
||||||
|
<pubDate>{{ item.date }}</pubDate>
|
||||||
|
{%- for tag in item.data.tags | filter("tv") %}<category term="{{ tag }}" />{%- endfor %}
|
||||||
|
<content type="html">{{ item.content | escape }}</content>
|
||||||
|
</entry>
|
||||||
|
{% endfor %}
|
||||||
|
</feed>
|
29
src/pages/feeds/watching.njk
Normal file
29
src/pages/feeds/watching.njk
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
permalink: /feeds/watching.xml
|
||||||
|
layout: null
|
||||||
|
eleventyExcludeFromCollections: true
|
||||||
|
excludeFromSitemap: true
|
||||||
|
---<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
<title>Watching • {{ meta.siteName }}</title>
|
||||||
|
<subtitle>{{ meta.siteDescription }}</subtitle>
|
||||||
|
<link href="{{ meta.url }}/feeds/watching.xml" rel="self" />
|
||||||
|
<link href="{{ meta.url }}/" rel="alternate" type="text/html" />
|
||||||
|
<id>{{ meta.url }}/</id>
|
||||||
|
<author>
|
||||||
|
<name>{{ meta.author }}</name>
|
||||||
|
</author>
|
||||||
|
{% set movies = collections.movie %}
|
||||||
|
{% set tv = collections.tv %}
|
||||||
|
{% set data = movies.concat(tv) %}
|
||||||
|
{% for item in data %}
|
||||||
|
<entry>
|
||||||
|
<id>{{ meta.url }}{{ item.url }}</id>
|
||||||
|
<title>{{ item.data.title | escape }}</title>
|
||||||
|
<link href="{{ item.url }}{{ post.url }}" />
|
||||||
|
<pubDate>{{ item.date }}</pubDate>
|
||||||
|
{%- for tag in item.data.tags | filter(["tv", "movie"]) %}<category term="{{ tag }}" />{%- endfor %}
|
||||||
|
<content type="html">{{ item.content | escape }}</content>
|
||||||
|
</entry>
|
||||||
|
{% endfor %}
|
||||||
|
</feed>
|
Loading…
Add table
Add a link
Reference in a new issue