sbs

A Simple Blogging System.
git clone https://git.sr.ht/~jbauer/sbs
Log | Files | Refs | README | LICENSE

commit 62358adeb6e115fce983eb2ed311090bf30390ea
parent 912365a1aba202f6fc6ad1d11c7bc18cbb5de772
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 14 Feb 2022 23:45:43 -0500

Remove extra slash from filepath for blog articles

Diffstat:
Msbs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbs b/sbs @@ -91,7 +91,7 @@ elif [ "$1" = "genfeed" ]; then done for file in $(sort -rn "$tmp" | cut -d' ' -f2); do fileName=$(basename "$file" .md).html - subDir=$(dirname "$file" | sed "s/^content\///") + subDir=$(dirname "$file" | sed "s/^content\/?//") title=$(lowdown -X title "$file") author=$(lowdown -X author "$file")