Added a bit more formatting to generated post

This commit is contained in:
Tristan Ancelet 2023-09-05 21:35:22 -05:00
parent d663bb0af2
commit 322e3215f4

View File

@ -23,16 +23,20 @@ function generate_blog_post () {
%title $PAGE_TITLE %title $PAGE_TITLE
---------------------------
[[index.wiki|Index]]
---------------------------
last 5 posts
--------------------------- ---------------------------
` `
TITLES="[[index.wiki|Index]]" TITLES=""
for page in ${last_few_posts[@]}; do for page in ${last_few_posts[@]}; do
read JUNK TITLE <<< "$( grep '%title' $page )" read JUNK TITLE <<< "$( grep '%title' $page )"
TITLES="${TITLES} [[$page|$TITLE]]" TITLES="${TITLES}\n - [[$page|$TITLE]]"
done done
echo $TITLES echo $TITLES
` `
---------------------------
*Date:* `date +'%Y/%m/%d'` *Date:* `date +'%Y/%m/%d'`
*Author:* Tristan Ancelet *Author:* Tristan Ancelet