shite

git clone _git@git.zakaria.org/shite.git
Log | Files | Refs | README

commit f6173f1a1264df15e4cb8437b928d42d0b6a6ae7
parent e3b33edc63583900d9e46b87f10c999db87fe4c6
Author: zakaria <e-zk@users.noreply.github.com>
Date:   Mon, 29 Nov 2021 17:00:55 +1000

Fix plaintext/markdown url with incorrect path on non-blog posts

Diffstat:
Mshite | 12+-----------
1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/shite b/shite @@ -61,7 +61,7 @@ gen_foot() { printf '%s&nbsp;&sdot;&nbsp;' "$post_date" fi - printf '<a href="%s">Plaintext</a>' ".${post_bname#*/${post_dir}}" + printf '<a href="%s">Plaintext</a>' "${post_bname#*/${site_root}}" if [ -n "$onion" ]; then printf '&nbsp;&sdot;&nbsp;' @@ -132,19 +132,9 @@ gen_post() { # md -> html lowdown -Thtml < "$post" - # if a post date/title is given, add it to the end in an .info para - #printf '<p class="info">' - # [ -n "$post_title" ] && printf '%s' "$post_title" - # # shellcheck disable=SC2154 - # [ -n "$post_date" ] && printf ' &bullet; %s' "$post_date" - #printf '</p>\n' - printf '</main>\n' - gen_foot "$post" "$post_title" "$post_date" - printf '</body>\n' - printf '</html>\n' unset post_date