From 0c2c0dca7c488486d6ffd33d911940b5a3810466 Mon Sep 17 00:00:00 2001 From: Aleksei Shpakovskii Date: Mon, 24 Feb 2014 20:46:54 +0100 Subject: [PATCH] Use relative URLs for links between pages Since the blog is just a folder, and all entries are just files, we don't have to use $global_url when linking between them. --- bb.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bb.sh b/bb.sh index 24fcb74..e6e34ad 100755 --- a/bb.sh +++ b/bb.sh @@ -368,7 +368,7 @@ create_html_page() { # one blog entry if [[ "$index" == "no" ]]; then echo '' >> "$filename" # marks the beginning of the whole post - echo '

' >> "$filename" + echo '

' >> "$filename" # remove possible

's on the title because of markdown conversion echo "$(echo "$title" | sed 's/<\/*p>//g')" >> "$filename" echo '

' >> "$filename" @@ -534,14 +534,14 @@ all_posts() { echo -n "." # Title title="$(awk '/

/, /<\/a><\/h3>/{if (!/

/ && !/<\/a><\/h3>/) print}' $i)" - echo -n '
  • '$title' —' >> "$contentfile" + echo -n '
  • '$title' —' >> "$contentfile" # Date date="$(LC_ALL=$date_locale date -r "$i" +"$date_format")" echo " $date
  • " >> "$contentfile" done echo "" echo "" >> "$contentfile" - echo '' >> "$contentfile" + echo '' >> "$contentfile" create_html_page "$contentfile" "$archive_index.tmp" yes "$global_title — All posts" mv "$archive_index.tmp" "$archive_index"