From 17ab0654b913757142db7b6bfba055e5725e1ccd Mon Sep 17 00:00:00 2001 From: rany Date: Sun, 30 Aug 2020 01:01:57 -0300 Subject: [PATCH 1/3] html5 --- bb.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/bb.sh b/bb.sh index 99f3b75..f7ba81d 100755 --- a/bb.sh +++ b/bb.sh @@ -273,15 +273,15 @@ edit() { twitter_card() { [[ -z $global_twitter_username ]] && return - echo "" - echo "" - echo "" # Twitter truncates at 70 char + echo "" + echo "" + echo "" # Twitter truncates at 70 char description=$(grep -v "^

$template_tags_line_header" "$1" | sed -e 's/<[^>]*>//g' | head -c 250 | tr '\n' ' ' | sed "s/\"/'/g") - echo "" + echo "" image=$(sed -n 's/.*" + echo "" } # Adds the code needed by the twitter button @@ -826,7 +826,7 @@ make_rss() { echo "$global_descriptionen" echo "$pubdate" echo "$pubdate" - echo "" + echo "" n=0 while IFS='' read -r i; do @@ -912,15 +912,15 @@ create_includes() { if [[ -f $header_file ]]; then cp "$header_file" .header.html else { - echo '' - echo '' - echo '' - echo '' - printf '\n' "${css_include[@]}" + echo '' + echo '' + echo '' + echo '' + printf '\n' "${css_include[@]}" if [[ -z $global_feedburner ]]; then - echo "" + echo "" else - echo "" + echo "" fi } > ".header.html" fi @@ -929,7 +929,7 @@ create_includes() { else { protected_mail=${global_email//@/@} protected_mail=${protected_mail//./.} - echo "

$global_license $global_author$protected_mail
" + echo "
$global_license $global_author$protected_mail
" echo 'generated with bashblog, a single bash script to easily create blogs like this one
' } >> ".footer.html" fi -- 2.34.1 From 402ec201cf545bc912270bb09bb2c67c3ba65049 Mon Sep 17 00:00:00 2001 From: rany Date: Sun, 30 Aug 2020 01:05:01 -0300 Subject: [PATCH 2/3] add lang tag --- bb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index f7ba81d..0dc5d2d 100755 --- a/bb.sh +++ b/bb.sh @@ -913,7 +913,7 @@ create_includes() { if [[ -f $header_file ]]; then cp "$header_file" .header.html else { echo '' - echo '' + echo '' echo '' echo '' printf '\n' "${css_include[@]}" -- 2.34.1 From b92931519a0108739675f410e62941c2eb4531d6 Mon Sep 17 00:00:00 2001 From: rany Date: Sun, 30 Aug 2020 01:11:21 -0300 Subject: [PATCH 3/3] fix charset to be 100% html5. Now it should be matching dknight's pull --- bb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index 0dc5d2d..f4b58d1 100755 --- a/bb.sh +++ b/bb.sh @@ -914,7 +914,7 @@ create_includes() { else { echo '' echo '' - echo '' + echo '' echo '' printf '\n' "${css_include[@]}" if [[ -z $global_feedburner ]]; then -- 2.34.1