Compare commits

..

3 Commits

Author SHA1 Message Date
vilmibm 9514119b75 add ASS support 2024-05-19 23:24:56 +00:00
vilmibm 883f496d92 css fiddling 2024-05-19 22:41:36 +00:00
vilmibm 44c8e52f7f link rss feed 2024-05-19 22:21:10 +00:00
3 changed files with 38 additions and 4 deletions

2
feed.tmpl.ass 100644
View File

@ -0,0 +1,2 @@
# Actually Simple Syndication, see https://tilde.town/~dzwdz/ass

View File

@ -3,7 +3,9 @@
<head> <head>
<title>the web log of vilmibm</title> <title>the web log of vilmibm</title>
<meta charset="UTF-8"> <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/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> <style>
body { body {
background-color: #070e0f; background-color: #070e0f;
@ -19,9 +21,12 @@
text-align: center; text-align: center;
margin-top: 0; margin-top: 0;
} }
#feeds {
font-style: oblique;
text-align: center;
margin-top: 0;
}
.title { .title {
margin-right: 25%;
margin-left: 25%;
text-align: center; text-align: center;
border-top: 1px solid #ce77c5; border-top: 1px solid #ce77c5;
} }
@ -33,11 +38,22 @@
font-style: oblique; font-style: oblique;
} }
.post { .post {
margin-right: 25%;
margin-left: 25%;
text-align: justify; text-align: justify;
border-bottom: 1px solid #ce77c5; border-bottom: 1px solid #ce77c5;
} }
@media screen and (min-width: 600px) {
.post {
margin-right: 25%;
margin-left: 25%;
}
.title {
margin-right: 25%;
margin-left: 25%;
}
}
img {
max-width:100%;
}
a { a {
font-weight: bold; font-weight: bold;
color: #ce77c5; color: #ce77c5;
@ -61,3 +77,6 @@
<body> <body>
<h1>the web log of ~vilmibm</h1> <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="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.ass">ass feed</a>
</p>

13
make.sh
View File

@ -20,6 +20,9 @@ geminiIndex="${geminiPath}/index.gmi"
rssIndexTmpl=$srcDir/feed.tmpl.xml rssIndexTmpl=$srcDir/feed.tmpl.xml
rssIndex=$HOME/public_html/blog/feed.xml rssIndex=$HOME/public_html/blog/feed.xml
assIndexTmpl=$srcDir/feed.tmpl.ass
assIndex=$HOME/public_html/blog/feed.ass
# attempt compilation # attempt compilation
if [ ! -e "linkpost" ] if [ ! -e "linkpost" ]
then then
@ -40,8 +43,15 @@ then
cp $rssIndex "${rssIndex}.bak" cp $rssIndex "${rssIndex}.bak"
fi fi
# backup ASS feed
if [ -e "${assIndex}" ]
then
cp $assIndex "${assIndex}.bak"
fi
cp $htmlIndexTmpl $htmlIndex cp $htmlIndexTmpl $htmlIndex
cp $rssIndexTmpl $rssIndex cp $rssIndexTmpl $rssIndex
cp $assIndexTmpl $assIndex
# Remove old gopher and gemini posts # Remove old gopher and gemini posts
rm -f ${gopherPath}/* rm -f ${gopherPath}/*
@ -110,6 +120,9 @@ do
echo " <pubDate>${rfc822}</pubDate>" >> $rssIndex echo " <pubDate>${rfc822}</pubDate>" >> $rssIndex
echo " <description>${summary}</description>" >> $rssIndex echo " <description>${summary}</description>" >> $rssIndex
echo " </item>" >> $rssIndex echo " </item>" >> $rssIndex
# ASS
echo "$(date -d"$pubdate" +'%Y-%m-%d') ${httpLink} ${title}" >> $assIndex
fi fi
done done