From 2babf3e23fe28094477c6855dad485587fc3a7c6 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 5 May 2023 16:08:18 -0700 Subject: [PATCH] feat: links feed --- src/_includes/feed-links.liquid | 22 +++++++++ src/assets/atom-feed-links.xsl | 80 +++++++++++++++++++++++++++++++++ src/assets/atom-feed.xsl | 6 +-- src/feeds/links.liquid | 23 ++++++++++ src/follow-feed.11ty.js | 1 + 5 files changed, 129 insertions(+), 3 deletions(-) create mode 100644 src/_includes/feed-links.liquid create mode 100644 src/assets/atom-feed-links.xsl create mode 100644 src/feeds/links.liquid diff --git a/src/_includes/feed-links.liquid b/src/_includes/feed-links.liquid new file mode 100644 index 00000000..1a9d1dc9 --- /dev/null +++ b/src/_includes/feed-links.liquid @@ -0,0 +1,22 @@ + + + + + {% block title %}All posts • Cory Dransfeldt{% endblock %} + + + + + + {% block update %} + {{ collections.entries | rssLastUpdatedDate }}{% endblock %} + + {{ site.url }}/{% block id %}posts/{% endblock %} + + + {{ site.author }} + {{ site.email }} + + {{ eleventy.generator }} + {% block entries %}{% endblock %} + \ No newline at end of file diff --git a/src/assets/atom-feed-links.xsl b/src/assets/atom-feed-links.xsl new file mode 100644 index 00000000..2a7c7ddd --- /dev/null +++ b/src/assets/atom-feed-links.xsl @@ -0,0 +1,80 @@ + + + + + + + + + + <xsl:value-of select="atom:feed/atom:title"/> + + + + + + + + + + +
+
+ +
+
+

+ + + + Feed preview • links +

+

Recently read and favorited links sourced from the Matter API.

+

+
+
    + +
+
+
+
+

This is a web feed, also known as an RSS or Atom feed.

+

Subscribe by copying the URL from the address bar into your newsreader.

+
+ Visit About Feeds to get started with newsreaders and subscribing. It's free. +
+
+
+ + +
+ +
  • + + + + + + +
  • +
    +
    diff --git a/src/assets/atom-feed.xsl b/src/assets/atom-feed.xsl index 3a24cfbc..3ec37e67 100644 --- a/src/assets/atom-feed.xsl +++ b/src/assets/atom-feed.xsl @@ -22,7 +22,7 @@ xmlns:atom="http://www.w3.org/2005/Atom"> - + @@ -63,7 +63,7 @@ xmlns:atom="http://www.w3.org/2005/Atom">

    This is a web feed, also known as an RSS or Atom feed.

    Subscribe by copying the URL from the address bar into your newsreader.

    - Visit About Feeds to get started with newsreaders and subscribing. It’s free. + Visit About Feeds to get started with newsreaders and subscribing. It's free. @@ -73,7 +73,7 @@ xmlns:atom="http://www.w3.org/2005/Atom">