~ecs/ecs.d2evs.net

ecs.d2evs.net/feed.xml.w -rw-r--r-- 916 bytes
c21ce371Eyal Sawady oglaf.sh: initial commit 28 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% # Loosely based on https://git.sr.ht/~sircmpwn/drewdevault.com/tree/master/feed.xml
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>ecs's blog</title>
		<description>I do stuff, most of which does not involve writing blog posts.</description>
		<link>https://ecs.d2evs.net</link>
		<atom:link href="https://ecs.d2evs.net/feed.xml" rel="self" type="application/rss+xml" />
% for i in $(ls "$root/posts" | sort -rn | head -n10); do
%     emit '<item>'
%     emit "<title>$(./title.awk <"$root/posts/$i")</title>"
%     emit "<description>$(get_description "$root/posts/$i")</description>"
%     emit "<pubDate>$(get_date "$root/posts/$i")</pubDate>"
%     emit "<link>https://ecs.d2evs.net/posts/${i%\.w}</link>"
%     emit "<guid isPermaLink=\"true\">https://ecs.d2evs.net/posts/${i%\.w}</guid>"
%     emit '</item>'
% done
	</channel>
</rss>