Handle metadata correctly for the index page. Fix tabs into spaces.

This commit is contained in:
Solene Rapenne 2021-10-01 23:27:20 +02:00
parent 0127829df8
commit 6e2dd69679
2 changed files with 9 additions and 5 deletions

View File

@ -7,11 +7,11 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="alternate" type="application/rss+xml" href="https://webzine.puffy.cafe/atom.xml">
<meta property="og:title" content="OpenBSD webzine issue #__ISSUE__" />
<meta property="og:description" content="Webzine created by volunteers who are passionate about the OpenBSD project development." />
<meta property="og:url" content="https://webzine.puffy.cafe/issue-__ISSUE__.html" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_EN" />
<meta property="og:title" content="OpenBSD webzine __TITLE__" />
<meta property="og:description" content="Webzine created by volunteers who are passionate about the OpenBSD project development." />
<meta property="og:url" content="https://webzine.puffy.cafe/__FILENAME__" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_EN" />
<title>OpenBSD_WEBZINE_ISSUE #__ISSUE__</title>
<style>

View File

@ -46,8 +46,12 @@ then
# replace with issue number
issue="${1#issue-}"
sed -i "s/__ISSUE__/${issue}/g" $DESTFILENAME
sed -i "s/__TITLE__/issue #${issue}/g" $DESTFILENAME
sed -i "s/__FILENAME__/issue-${issue}.html/" $DESTFILENAME
else
sed -i "s/OpenBSD_WEBZINE_ISSUE #__ISSUE__/The OpenBSD Webzine/g" $DESTFILENAME
sed -i "s/__TITLE__/homepage/g" $DESTFILENAME
sed -i "s/__FILENAME__/index.html/" $DESTFILENAME
fi
# replace date