diff options
author | 53hornet <atc@53hor.net> | 2021-07-28 10:58:58 -0400 |
---|---|---|
committer | 53hornet <atc@53hor.net> | 2021-07-28 10:58:58 -0400 |
commit | bfaccc32571df8a02f69518d8864244efba3b5b5 (patch) | |
tree | cc71a44054af00e73d0db2a1c79c347db3f31327 /cgi-bin/rss.sh | |
parent | dd75b4a341925e4ba3408b018941241d4317dd9f (diff) | |
download | 53hor-bfaccc32571df8a02f69518d8864244efba3b5b5.tar.xz 53hor-bfaccc32571df8a02f69518d8864244efba3b5b5.zip |
php site, templating and partials, faster index generation
Diffstat (limited to 'cgi-bin/rss.sh')
-rwxr-xr-x | cgi-bin/rss.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/cgi-bin/rss.sh b/cgi-bin/rss.sh deleted file mode 100755 index 6987745..0000000 --- a/cgi-bin/rss.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -# Generates an RSS feed from all posts. - -cat << EOH -content-type: application/xml - -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE xml> -<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> - <channel> - <title>53hornet's Feed</title> - <link>https://www.53hor.net</link> - <atom:link href="https://www.53hor.net/rss.xml" rel="self" type="application/rss+xml" /> - <description>The World Wide Web pages of Adam Carpenter</description> - <image> - <url>https://www.53hor.net/includes/logo_diag.png</url> - <title>53hornet's Feed</title> - <link>https://www.53hor.net</link> - </image> -EOH - -grep '<h1>' posts/*\ - | sort -r\ - | sed -e 's#h1#title#g' -e 's#:#</link>#' -e 's#$#</item>#' -e 's#^#<item><link>https://www.53hor.net/#' - -echo '</channel></rss>' - |