add ASS support
parent
883f496d92
commit
9514119b75
|
@ -0,0 +1,2 @@
|
|||
# Actually Simple Syndication, see https://tilde.town/~dzwdz/ass
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="alternate" type="application/rss+xml" href="feed.xml" title="the web log of vilmibm">
|
||||
<link rel="alternate" type="application/ass" href="feed.ass" title="the web log of vilmibm">
|
||||
<style>
|
||||
body {
|
||||
background-color: #070e0f;
|
||||
|
@ -77,5 +78,5 @@
|
|||
<h1>the web log of ~vilmibm</h1>
|
||||
<p id="back">back to my <a href="https://tilde.town/~vilmibm">home page</a></p>
|
||||
<p id="feeds">
|
||||
<a href="feed.xml">rss feed</a>
|
||||
<a href="feed.xml">rss feed</a>, <a href="feed.ass">ass feed</a>
|
||||
</p>
|
||||
|
|
13
make.sh
13
make.sh
|
@ -20,6 +20,9 @@ geminiIndex="${geminiPath}/index.gmi"
|
|||
rssIndexTmpl=$srcDir/feed.tmpl.xml
|
||||
rssIndex=$HOME/public_html/blog/feed.xml
|
||||
|
||||
assIndexTmpl=$srcDir/feed.tmpl.ass
|
||||
assIndex=$HOME/public_html/blog/feed.ass
|
||||
|
||||
# attempt compilation
|
||||
if [ ! -e "linkpost" ]
|
||||
then
|
||||
|
@ -40,8 +43,15 @@ then
|
|||
cp $rssIndex "${rssIndex}.bak"
|
||||
fi
|
||||
|
||||
# backup ASS feed
|
||||
if [ -e "${assIndex}" ]
|
||||
then
|
||||
cp $assIndex "${assIndex}.bak"
|
||||
fi
|
||||
|
||||
cp $htmlIndexTmpl $htmlIndex
|
||||
cp $rssIndexTmpl $rssIndex
|
||||
cp $assIndexTmpl $assIndex
|
||||
|
||||
# Remove old gopher and gemini posts
|
||||
rm -f ${gopherPath}/*
|
||||
|
@ -110,6 +120,9 @@ do
|
|||
echo " <pubDate>${rfc822}</pubDate>" >> $rssIndex
|
||||
echo " <description>${summary}</description>" >> $rssIndex
|
||||
echo " </item>" >> $rssIndex
|
||||
|
||||
# ASS
|
||||
echo "$(date -d"$pubdate" +'%Y-%m-%d') ${httpLink} ${title}" >> $assIndex
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue