Add "assets" dir for accompanying assets of a HTML page and update blog posts

master
Hugo Thunnissen 2 years ago
parent 27b42c2810
commit de7479d861

@ -201,6 +201,10 @@ publish-html() {
printf '%s\n' "$contents" >> "$index_file" printf '%s\n' "$contents" >> "$index_file"
print-post-html-bottom "$pubdate" "$last_edit_date" >> "$index_file" print-post-html-bottom "$pubdate" "$last_edit_date" >> "$index_file"
fi fi
if [[ -d "$source_dir/assets" ]]; then
cp -rv "$source_dir/assets" "$publish_dir/"
fi
} }
publish_dir="$here/publish" publish_dir="$here/publish"

@ -144,13 +144,13 @@
the RSS feed for the blog. I don't mind typing HTML pages, but typing out a the RSS feed for the blog. I don't mind typing HTML pages, but typing out a
page and an RSS feed containing excerpts/titles from other files gets old soon page and an RSS feed containing excerpts/titles from other files gets old soon
and I'd be bound to forget updating its content every once in a while. This and I'd be bound to forget updating its content every once in a while. This
seemed like a perfect occasion to write a little bash script, so I did. You seemed like a perfect occasion to write a little bash script, so I did. You can
can find the script <a href="../../generate-blog.bash">here (raw)</a> and find the script
<a href="../../generate-blog.bash.html">here (pretty)</a>. What it basically <a href="assets/generate-blog.bash.html">here</a>. What it basically does is
does is read in a file called posts.txt that has html filenames in it, read in a file called posts.txt that has html filenames in it, separated by
separated by newlines. Using those filenames and the contents of the files it newlines. Using those filenames and the contents of the files it then generates
then generates a HTML page (called <a href="../../blog.html">blog.html</a>) a HTML page (called <a href="../../blog.html">blog.html</a>) and an RSS feed
and an RSS feed (called <a href="../../feed.xml">feed.xml</a>). (called <a href="../../feed.xml">feed.xml</a>).
</p> </p>
<p> <p>

@ -1 +1 @@
699691065 7458 3051568591 7396

@ -74,8 +74,8 @@
anyone is interested in an actual program that does the same thing and anyone is interested in an actual program that does the same thing and
doesn't require you to setup postfix, let me know! I might consider doesn't require you to setup postfix, let me know! I might consider
authoring one if it's useful to more people than just myself. The script authoring one if it's useful to more people than just myself. The script
I'm currently using can be found <a href="scan-to-mailpile.bash.html">here I'm currently using can be found <a href="assets/scan-to-mailpile.bash.html">here
(pretty)</a> and <a href="scan-to-mailpile.bash">here (raw)</a>, but I (pretty)</a> and <a href="assets/scan-to-mailpile.bash">here (raw)</a>, but I
don't recommend using it if you don't fully understand its contents, it's don't recommend using it if you don't fully understand its contents, it's
not a polished user experience 🤓. not a polished user experience 🤓.
</p> </p>

Loading…
Cancel
Save