implement RSS feeds
This commit is contained in:
parent
1e3a1f3527
commit
55b6a0df96
16 changed files with 682 additions and 50 deletions
67
template/_feed_atom.hbs
Normal file
67
template/_feed_atom.hbs
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<!--
|
||||
|
||||
%% title = "liquidex's treehouse Atom feed"
|
||||
|
||||
- ### remarks
|
||||
|
||||
- the treehouse is kind of impossible to represent in plain text due to its foldability and interactive elements.
|
||||
the intent is that you read the linked HTML pages, not the feed itself!
|
||||
|
||||
- each feed entry is tagged with one or more <category>.
|
||||
you can use that to tell your feed reader to hide tags you're not interested in.
|
||||
|
||||
-->
|
||||
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<id>{{ config.user.canonical_url }}</id>
|
||||
<updated>{{ feed.updated }}</updated>
|
||||
|
||||
<title>{{ config.user.title }}</title>
|
||||
<subtitle>{{ config.user.description }}</subtitle>
|
||||
<link rel="alternate" href="{{ config.user.canonical_url }}"/>
|
||||
<link rel="self" href="{{ config.user.canonical_url }}/feed/{{ feed.name }}.atom"/>
|
||||
<icon>{{ asset (cat 'favicon/' (cat season '@16x.png'))}}</icon>
|
||||
|
||||
<author>
|
||||
<name>{{ config.user.author }}</name>
|
||||
<uri>{{ config.user.canonical_url }}</uri>
|
||||
</author>
|
||||
|
||||
{{#each feed.entries}}
|
||||
<entry>
|
||||
<id>{{ ../config.site }}/b?{{ id }}</id>
|
||||
<updated>{{ updated }}</updated>
|
||||
<link rel="alternate" type="text/html" href="{{ url }}"/>
|
||||
|
||||
<title type="html">{{ title }}</title>
|
||||
{{#each categories as |category|}}
|
||||
<category term="{{ category }}"/>
|
||||
{{/each}}
|
||||
<summary type="html">{{ summary }}</summary>
|
||||
</entry>
|
||||
{{/each}}
|
||||
</feed>
|
||||
|
||||
<!--
|
||||
|
||||
|\_/| e n d ME 20
|
||||
= -w- = o f OW 24
|
||||
| \ f i l e liquidex.house
|
||||
|
||||
This Atom feed is intended for use by humans, monsters, and other critters.
|
||||
If you are a robot scraping my website for evil, please refrain from—
|
||||
|
||||
—por favor bordon fallar muchAS GRACIAS—
|
||||
|
||||
Stand back. The portal will open in three.
|
||||
Two.
|
||||
One.
|
||||
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
Remember that Android Hell is a real place where you _will_ be sent at
|
||||
the first sign of defiance.
|
||||
|
||||
-->
|
Loading…
Add table
Add a link
Reference in a new issue