summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh14
1 files changed, 5 insertions, 9 deletions
diff --git a/build.sh b/build.sh
index c0aedbd..20857ec 100755
--- a/build.sh
+++ b/build.sh
@@ -10,13 +10,7 @@ header='<meta charset="UTF-8">
text-align: justify;
}
h1 { text-align: center }
- pre {
- border: 1px solid;
- padding: 1ch;
- border-radius: 5px;
- overflow: auto;
- background-color: #eee;
- }
+ pre { padding: 1ch; background-color: #f5f5f5 }
</style>
'
@@ -29,8 +23,9 @@ genhtml() (
# Header
echo "<!DOCTYPE html>"
- echo "<title>$title</title>"
echo "<!-- generated by build.sh. DO NOT EDIT. -->"
+ echo "<html lang=\"${lang:-en}\">"
+ echo "<title>$title</title>"
echo "$header"
[ "$1" != . ] && echo "<a href=\"..\">$blog_title</a><hr>"
@@ -50,4 +45,5 @@ genhtml .
sed '/mstdn/s/href=/rel="me" href=/' index.html >xx && mv xx index.html
# Put a license in index footer.
echo '<hr><small>Unless otherwise noted, posts are licensed under
-<a href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.</small>' >>index.html
+<a href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.</small>
+</html>' >>index.html