From b1858ac38ffb54b30beeb0c8f66748c530559ee1 Mon Sep 17 00:00:00 2001 From: joelchrono12 Date: Fri, 14 Jan 2022 20:03:47 -0600 Subject: [PATCH] removed .html at end of posts urls This patch removes the ugly urls that were generated previously, now you can generate nice urls that don't end with the fileformat, so it looks kinda nice! --- blop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blop b/blop index d55f229..523393b 100755 --- a/blop +++ b/blop @@ -20,7 +20,7 @@ max_posts="10" # number of posts to list on the blog index, posts beyond this wi group_by_date=false # whether to group the main listing on the blog's index by dates date_format="%B %-d, %Y" short_date_format="%B, %Y" # format for date grouping in the archive and optionally on the index (see group_by_date above) -listing_format="./\"> by on " # rejig this and/or remove elements to taste. You may need to change delimeter when sed is used on this later if any of the fields contain slashes +listing_format="/\"> by on " # rejig this and/or remove elements to taste. You may need to change delimeter when sed is used on this later if any of the fields contain slashes ####################### @@ -147,7 +147,7 @@ for file in $(ls -t1 "$blogdir/markdown/"*.md); do archivelist="$archivelist
  • $listitem
  • \n" old_short_date=$short_date - sed -e "//r $temp/post" -e '//d' -e "s//$author/g" -e "s//$date/g" -e "s//$title/g" "$blogdir/post_template.html" > "$blogdir/posts/$title_nospaces.html" + sed -e "//r $temp/post" -e '//d' -e "s//$author/g" -e "s//$date/g" -e "s//$title/g" "$blogdir/post_template.html" > "$blogdir/posts/$title_nospaces/index.html" # prepare rss echo -e "\n$title\n$url/posts/$title_nospaces/\n$rssdate\n\n\n" >> $temp/rss done