X-Bashblog

This commit is contained in:
Aoi Koizumi (古泉 あおい) 2021-06-20 22:47:43 -03:00
parent 8d09a113ee
commit 60e4b78ca5
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,7 @@
bashblog
x-bashblog - a fork of bashblog adapted to xhtml-1.1
========
readme for the original project is below this line
========
A single Bash script to create blogs.

8
bb.sh
View File

@ -939,9 +939,9 @@ create_includes() {
if [[ -f $header_file ]]; then cp "$header_file" .header.html
else {
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
echo '<html xmlns="http://www.w3.org/1999/xhtml"><head>'
echo '<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />'
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'
echo '<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"><head>'
echo '<meta http-equiv="Content-type" content="application/xhtml+xml;charset=UTF-8" />'
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0" />'
printf '<link rel="stylesheet" href="%s" type="text/css" />\n' "${css_include[@]}"
if [[ -z $global_feedburner ]]; then
@ -957,7 +957,7 @@ create_includes() {
protected_mail=${global_email//@/&#64;}
protected_mail=${protected_mail//./&#46;}
echo "<div id=\"footer\">$global_license <a href=\"$global_author_url\">$global_author</a> &mdash; <a href=\"mailto:$protected_mail\">$protected_mail</a><br/>"
echo 'Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>'
echo 'Generated with <a href="https://tildegit.org/novaburst-dev/bashblog">X-bashblog</a> (fork of bashblog), a single bash script to easily create blogs like this one</div>'
} >> ".footer.html"
fi
}