Add "continue reading" link to blog page

master
Hugo Thunnissen 4 years ago
parent 70f99db710
commit 4b5036724b

@ -45,6 +45,6 @@
Engineering student from the Netherlands. Software development is a huge part
of my life, I write a lot of (weird) programs to scratch my own itch and most
software I create is open_source by default. I also run a one-man company that
provides some IT services on the side.</p></div><hr>
provides some IT services on the side. ... <a href="./posts/introduction/index.html">Continue reading</a></p></div><hr>
</body>
</html>

@ -91,10 +91,11 @@ blog_html="$here/blog.html"
# Escape the post html file name to safely use it in the generated html.
href="$(escape-html <<<"$post_html")" || exit $?
printf '<div><a href="%s"><h2>%s</h2></a><p>%s</p></div><hr>\n' \
printf '<div><a href="%s"><h2>%s</h2></a><p>%s ... <a href="%s">Continue reading</a></p></div><hr>\n' \
"$href" \
"$title" \
"$excerpt"
"$excerpt" \
"$href"
done < "$posts_file"
echo ' </body>

Loading…
Cancel
Save