trunk
vilmibm 2022-05-30 18:36:12 -05:00
parent d615e91131
commit 7693542dc7
2 changed files with 17 additions and 6 deletions

View File

@ -13,20 +13,29 @@
text-align: center; text-align: center;
margin-bottom: 0; margin-bottom: 0;
} }
.title {
margin-bottom: 0;
}
#back { #back {
font-style: oblique; font-style: oblique;
text-align: center; text-align: center;
margin-top: 0; margin-top: 0;
} }
.title {
margin-right: 25%;
margin-left: 25%;
text-align: center;
border-top: 1px solid #ce77c5;
}
.title h2 {
margin-bottom: 0;
}
.pubdate { .pubdate {
font-size: 80%;
font-style: oblique; font-style: oblique;
} }
.post { .post {
margin-left: .5em; margin-right: 25%;
margin-right: 40%; margin-left: 25%;
text-align: justify;
border-bottom: 1px solid #ce77c5;
} }
a { a {
font-weight: bold; font-weight: bold;

View File

@ -58,8 +58,10 @@ do
echo "warning: missing at least one of: pubdate, slug, title in ${p}" echo "warning: missing at least one of: pubdate, slug, title in ${p}"
else else
# HTML # HTML
echo "<h2 class=\"title\">${title}</h2>" >> $htmlIndex echo "<div class=\"title\">" >> $htmlIndex
echo "<h2>${title}</h2>" >> $htmlIndex
echo "<a class=\"pubdate\" name=\"${slug}\" href=\"https://tilde.town/~vilmibm/blog#${slug}\">${pubdate}</a>" >> $htmlIndex echo "<a class=\"pubdate\" name=\"${slug}\" href=\"https://tilde.town/~vilmibm/blog#${slug}\">${pubdate}</a>" >> $htmlIndex
echo "</div>" >> $htmlIndex
echo "<div class=\"post\">" >> $htmlIndex echo "<div class=\"post\">" >> $htmlIndex
grep -v "pubdate:" $p | grep -v "title:" | grep -v "slug:" | $lp --mode "html" | pandoc -fmarkdown -thtml >> $htmlIndex grep -v "pubdate:" $p | grep -v "title:" | grep -v "slug:" | $lp --mode "html" | pandoc -fmarkdown -thtml >> $htmlIndex
echo "</div>" >> $htmlIndex echo "</div>" >> $htmlIndex