commit 4b7f3350dd1c633c224b35435511ce76f173b12f
parent 3c7c584603040db6bcbe13f513c9474e61d969ae
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Wed, 29 Jul 2020 14:24:22 +0200

Create blogroll OMPL file

Diffstat:
Mcontent/blogroll.md | 5++++-
Acontent/blogroll_ompl.md | 5+++++
Alayouts/blogroll_ompl/single.html | 13+++++++++++++
3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/content/blogroll.md b/content/blogroll.md @@ -2,6 +2,9 @@ title: Blogroll type: page --- -Blogs I have found interesting, alphabetically sorted. +Blogs I have found interesting, alphabetically sorted. You can easily import all +the blogs to your feed reader using [this OMPL file][ompl]. {{< blogroll >}} + +[ompl]: </blogroll/blogroll.ompl> "Blogroll's OMPL file" diff --git a/content/blogroll_ompl.md b/content/blogroll_ompl.md @@ -0,0 +1,5 @@ +--- +title: Blogroll OMPL +type: blogroll_ompl +url: /blogroll/blogroll.ompl +--- diff --git a/layouts/blogroll_ompl/single.html b/layouts/blogroll_ompl/single.html @@ -0,0 +1,13 @@ +{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }} +<opml version="1.0"> + <head> + <title>Oscar Benedito's Blogroll</title> + </head> + <body> + <outline text="Blogroll"> + {{- range sort $.Site.Data.blogroll "name" }} + <outline type="rss" text="{{ .name }}" xmlUrl="{{ .feed }}"{{ with .url }} htmlUrl="{{ . }}"{{ end }}/> + {{- end }} + </outline> + </body> +</opml>