shite

Static site generator script
git clone _git@git.zakaria.org/shite.git
Log | Files | Refs | README

commit 72643b0c1ff3f78ab485b6c864020d88a106086a
parent 458e380b02e1b263cb7339c2ce1973ca1764cf34
Author: zak <e-zk@users.noreply.github.com>
Date:   Sat,  8 Oct 2022 15:17:50 +1000

Reformat footer

Diffstat:
Mshite | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/shite b/shite @@ -51,22 +51,22 @@ gen_foot() { post_bname="${post#*${site_root}}" post_url="${post_html#*${site_root}}" - printf '<footer>\n' - - if [ -n "$post_title" ]; then - printf '%s&nbsp;&sdot;&nbsp;' "$post_title" - fi + printf '<footer>\n<br><hr>\n' + #if [ -n "$post_title" ]; then + # printf '%s&nbsp;&sdot;&nbsp;' "$post_title" + #fi + # if [ -n "$post_date" ]; then - printf '%s&nbsp;&sdot;&nbsp;' "$post_date" + printf '<p>%s</p>\n' "$post_date" fi - printf '<a href="%s">Plaintext</a>' "${post_bname#*/${site_root}}" - + printf '<p>[&nbsp;<a href="%s">view plaintext</a>' "${post_bname#*/${site_root}}" if [ -n "$onion" ]; then - printf '&nbsp;&sdot;&nbsp;' - printf '<a href="%s%s" title="Tor">Onion</a>' "${onion}" "${post_url#*${site_root}}" + printf '&nbsp;|&nbsp;' + printf '<a href="%s%s">view on hidden service</a>' "${onion}" "${post_url#*${site_root}}" fi + printf '&nbsp;]</p>\n' cat "${site_root}/${html_dir}/footer.html"