Had to fix an issue in the blog post generation function. Was providing absolute path instead of relative

This commit is contained in:
Tristan Ancelet 2023-09-06 12:37:28 -05:00
parent 267d0dc4d1
commit 5800bce352
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<hr />
<p>
<a href="index.html">Index</a> <a href="home/tristan/Blog/blog/hello-world.html">Hello World</a>
<a href="index.html">Index</a> <a href="hello-world.html">Hello World</a>
<hr />
</p>

View File

@ -33,7 +33,7 @@ last 5 posts
TITLES=""
for page in ${last_few_posts[@]}; do
read JUNK TITLE <<< "$( grep '%title' $page )"
TITLES="${TITLES}\n - [[$page|$TITLE]]"
TITLES="${TITLES}\n - [[$(basename page)|$TITLE]]"
done
echo $TITLES
`