Special handle for the index title
This commit is contained in:
parent
09d5434927
commit
21570bc0e8
|
@ -41,9 +41,14 @@ fi
|
|||
|
||||
cat _common/header $DIR/*html _common/footer > $DESTFILENAME
|
||||
|
||||
# replace with issue number
|
||||
issue="${1#issue-}"
|
||||
sed -i "s/__ISSUE__/${issue}/g" $DESTFILENAME
|
||||
if ! [ "$DIR" = "_index" ]
|
||||
then
|
||||
# replace with issue number
|
||||
issue="${1#issue-}"
|
||||
sed -i "s/__ISSUE__/${issue}/g" $DESTFILENAME
|
||||
else
|
||||
sed -i "s/OpenBSD_WEBZINE_ISSUE #__ISSUE__/The OpenBSD Webzine/g" $DESTFILENAME
|
||||
fi
|
||||
|
||||
# replace date
|
||||
sed -i "s/__DATE__/${PUBLISHED_DATE}/" $DESTFILENAME
|
||||
|
|
Loading…
Reference in New Issue