From 7ab0d011f2bc10cbf4b9246022da91e6cb326e5c Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Mon, 23 May 2022 22:25:13 +0200 Subject: [PATCH] Change text on index page --- generate-blog.bash | 4 ++-- index/index.html | 34 +++++++++++++++++++++++----------- index/last_checksum.txt | 2 +- index/last_edit_date.txt | 2 +- 4 files changed, 27 insertions(+), 15 deletions(-) diff --git a/generate-blog.bash b/generate-blog.bash index 52f2493..f29c37e 100755 --- a/generate-blog.bash +++ b/generate-blog.bash @@ -229,16 +229,16 @@ while read -r post_html_path; do # Use the first 5 lines after the title as post excerpt. excerpt="$(tail -n +2 <<<"$text" | head -n 5)" || exit $? + read -rd '' post_html < "$post_html_path" || true # Escape just the article element for use in the RSS feed article description. # This way the entire article can be read from an RSS reader. - article_html="$({ head -n -1 | tail -n +2 | escape-html; } < "$post_html_path")" + article_html="$(escape-html <<<"$post_html")" # Escape the post html file name to safely use it in the generated html. href="$(escape-html <<<"$post_html_path")" || exit $? post_dir="$(dirname "$post_html_path")" || exit $? post_publish_dir="$publish_dir/posts/$(basename "$post_dir")" || exit $? - read -rd '' post_html < "$post_html_path" || true publish-html "$publish_dir" "$post_dir" "$post_publish_dir" "$post_html" "$title" || exit $? diff --git a/index/index.html b/index/index.html index 802e368..4517e7e 100644 --- a/index/index.html +++ b/index/index.html @@ -1,8 +1,12 @@

Hugo's Homepage

- Hello and welcome to my personal homepage! I'll add some info about my - projects to this page soon. In the mean time, maybe take a look at - my blog + Hello and welcome to my personal homepage! A little bit about myself: My name + is Hugo. I am a software developer from the Netherlands and mainly like to work + with golang, PHP, elisp, BASH and web technologies (javascript/html etc). I am + interested in infrastructure, open source, decentralized technologies, linux + and shell scripting. I am also a big proponent of not using javascript wen you + don't need it, so this website is entirely functional without having javascript + enabled!

@@ -19,14 +23,15 @@

My Projects

-