diff options
| author | Marc Vertes <mvertes@free.fr> | 2023-05-09 16:04:35 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2023-05-09 16:04:35 +0200 |
| commit | 5179912919beda1fd4e0d2f5d2eec6d11212429e (patch) | |
| tree | cbd3ba8ccc39a020973ffd230add79637bd207b6 /build.sh | |
| parent | 397f73d7d239df6db162a2a22dc2db0b794b865b (diff) | |
fix lang
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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 |
