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"
print-post-html-bottom "$pubdate" "$last_edit_date" >> "$index_file"
fi
if [[ -d "$source_dir/assets" ]]; then
cp -rv "$source_dir/assets" "$publish_dir/"
fi
}
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
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
seemed like a perfect occasion to write a little bash script, so I did. You
can find the script <a href="../../generate-blog.bash">here (raw)</a> and
<a href="../../generate-blog.bash.html">here (pretty)</a>. What it basically
does is read in a file called posts.txt that has html filenames in it,
separated by newlines. Using those filenames and the contents of the files it
then generates a HTML page (called <a href="../../blog.html">blog.html</a>)
and an RSS feed (called <a href="../../feed.xml">feed.xml</a>).
seemed like a perfect occasion to write a little bash script, so I did. You can
find the script
<a href="assets/generate-blog.bash.html">here</a>. What it basically does is
read in a file called posts.txt that has html filenames in it, separated by
newlines. Using those filenames and the contents of the files it then generates
a HTML page (called <a href="../../blog.html">blog.html</a>) and an RSS feed
(called <a href="../../feed.xml">feed.xml</a>).
</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
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
I'm currently using can be found <a href="scan-to-mailpile.bash.html">here
(pretty)</a> and <a href="scan-to-mailpile.bash">here (raw)</a>, but I
I'm currently using can be found <a href="assets/scan-to-mailpile.bash.html">here
(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
not a polished user experience 🤓.
</p>

Loading…
Cancel
Save