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
This commit is contained in:
parent
9ac5989932
commit
1f4d3dd2bf
1 changed files with 3 additions and 1 deletions
4
bb.sh
4
bb.sh
|
@ -438,7 +438,8 @@ create_html_page() {
|
|||
else
|
||||
echo "<div class=\"subtitle\">$(LC_ALL=$date_locale date +"$date_format" --date="$timestamp") — "
|
||||
fi
|
||||
echo "$author</div>"
|
||||
[[ -n $author ]] && echo " — $author"
|
||||
echo "</div>"
|
||||
echo '<!-- text begin -->' # This marks the text body, after the title, date...
|
||||
fi
|
||||
cat "$content" # Actual content
|
||||
|
@ -951,6 +952,7 @@ create_css() {
|
|||
#description{font-size:large;margin-bottom:12px;}
|
||||
h3{margin-top:42px;margin-bottom:8px;}
|
||||
h4{margin-left:24px;margin-right:24px;}
|
||||
img{max-width:100%;}
|
||||
#twitter{line-height:20px;vertical-align:top;text-align:right;font-style:italic;color:#333;margin-top:24px;font-size:14px;}' > blog.css
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue