Skip to content

Commit 1f4d3dd

Browse files
author
Bart
committed
Added support for images and made author field optional
One LOC per feature, hope you think it's worth it. http://imgur.com/YcBp29ql.png
1 parent 9ac5989 commit 1f4d3dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bb.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ create_html_page() {
438438
else
439439
echo "<div class=\"subtitle\">$(LC_ALL=$date_locale date +"$date_format" --date="$timestamp") &mdash; "
440440
fi
441-
echo "$author</div>"
441+
[[ -n $author ]] && echo " &mdash; $author"
442+
echo "</div>"
442443
echo '<!-- text begin -->' # This marks the text body, after the title, date...
443444
fi
444445
cat "$content" # Actual content
@@ -951,6 +952,7 @@ create_css() {
951952
#description{font-size:large;margin-bottom:12px;}
952953
h3{margin-top:42px;margin-bottom:8px;}
953954
h4{margin-left:24px;margin-right:24px;}
955+
img{max-width:100%;}
954956
#twitter{line-height:20px;vertical-align:top;text-align:right;font-style:italic;color:#333;margin-top:24px;font-size:14px;}' > blog.css
955957
fi
956958

0 commit comments

Comments
 (0)