Compare commits
3 Commits
626b0c3219
...
9514119b75
Author | SHA1 | Date |
---|---|---|
vilmibm | 9514119b75 | |
vilmibm | 883f496d92 | |
vilmibm | 44c8e52f7f |
|
@ -0,0 +1,2 @@
|
|||
# Actually Simple Syndication, see https://tilde.town/~dzwdz/ass
|
||||
|
|
@ -3,7 +3,9 @@
|
|||
<head>
|
||||
<title>the web log of vilmibm</title>
|
||||
<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;
|
||||
|
@ -19,9 +21,12 @@
|
|||
text-align: center;
|
||||
margin-top: 0;
|
||||
}
|
||||
#feeds {
|
||||
font-style: oblique;
|
||||
text-align: center;
|
||||
margin-top: 0;
|
||||
}
|
||||
.title {
|
||||
margin-right: 25%;
|
||||
margin-left: 25%;
|
||||
text-align: center;
|
||||
border-top: 1px solid #ce77c5;
|
||||
}
|
||||
|
@ -33,11 +38,22 @@
|
|||
font-style: oblique;
|
||||
}
|
||||
.post {
|
||||
margin-right: 25%;
|
||||
margin-left: 25%;
|
||||
text-align: justify;
|
||||
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 {
|
||||
font-weight: bold;
|
||||
color: #ce77c5;
|
||||
|
@ -61,3 +77,6 @@
|
|||
<body>
|
||||
<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.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