forked from solene/openbsd-webzine
Update stuff, lazy commit message, not interesting
This commit is contained in:
parent
8b05e196d8
commit
86c1441ea7
|
@ -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
|
||||
|
|
|
@ -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 |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
Disallow:
|
||||
Crawl-delay: 2
|
||||
Sitemap: https://webzine.puffy.cafe/sitemap.gz
|
|
@ -0,0 +1 @@
|
|||
PUBLISHED_DATE="Wed Sep 29 16:25:28 UTC 2021"
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue