Update stuff, lazy commit message, not interesting

This commit is contained in:
Solene Rapenne 2021-09-29 18:59:03 +02:00
parent 8b05e196d8
commit 86c1441ea7
10 changed files with 27 additions and 2 deletions

View File

@ -1,8 +1,9 @@
TEMPDIR=/tmp/openbsd-webzine/
generate-site:
generate-site: clean
ls | grep issue- | sort -n | xargs tools/make_issue.sh
tools/make_issue.sh _index ../public/index.html
cp -fr _static/* ../public/
tools/sitemap.sh webzine.puffy.cafe ../public/ > ../public/sitemap.xml
gzip -9 -c ../public/sitemap.xml > ../public/sitemap.gz
tools/atom.sh webzine.puffy.cafe > ../public/atom.xml
@ -17,9 +18,14 @@ test:
tools/make_issue.sh current ${TEMPDIR}/current-issue.html
xdg-open ${TEMPDIR}/current-issue.html
# only difference with generate-site is make_issue.sh -t
testsite: clean
ls | grep issue- | sort -n | xargs tools/make_issue.sh -t
tools/make_issue.sh _index ../public/index.html
cp -fr _static/* ../public/
tools/sitemap.sh webzine.puffy.cafe ../public/ > ../public/sitemap.xml
gzip -9 -c ../public/sitemap.xml > ../public/sitemap.gz
tools/atom.sh webzine.puffy.cafe > ../public/atom.xml
mkdir -p ${TEMPDIR}
cp -fr ../public ${TEMPDIR}/
xdg-open ${TEMPDIR}/public/index.html

View File

@ -0,0 +1 @@

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
issues/_static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

13
issues/_static/humans.txt Normal file
View File

@ -0,0 +1,13 @@
/* SITE */
Site name : OpenBSD Webzine
Site url : https://webzine.puffy.cafe
Built with (CMS) : coffee, tea and love
Created on : 2021
Language : English
Hosted by : prx's house
/* AUTHORS */
See contributors on https://tildegit.org/solene/openbsd-webzine
/* LINKS */
Follow (ATOM) : https://webzine.puffy.cafe/atom.xml

View File

@ -0,0 +1,4 @@
User-agent: *
Disallow:
Crawl-delay: 2
Sitemap: https://webzine.puffy.cafe/sitemap.gz

View File

@ -0,0 +1 @@
PUBLISHED_DATE="Wed Sep 29 16:25:28 UTC 2021"

View File

@ -27,7 +27,7 @@ ls $DIR/*.html 2>&1 >/dev/null || die "no html file in $DIR"
. ./${DIR}/metadata.sh
if [ "$(stat -f '%i' $DIR)" -eq "$CURINODE" ]
if [ "$testsite" -eq 0 ] && [ "$(stat -f '%i' $DIR)" -eq "$CURINODE" ]
then
DEST=dev
else