summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-05-09 16:04:35 +0200
committerMarc Vertes <mvertes@free.fr>2023-05-09 16:04:35 +0200
commit5179912919beda1fd4e0d2f5d2eec6d11212429e (patch)
treecbd3ba8ccc39a020973ffd230add79637bd207b6
parent397f73d7d239df6db162a2a22dc2db0b794b865b (diff)
fix lang
-rwxr-xr-xbuild.sh14
-rw-r--r--index.html12
-rw-r--r--yaegi-internals/index.html11
3 files changed, 12 insertions, 25 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
diff --git a/index.html b/index.html
index da60891..b454068 100644
--- a/index.html
+++ b/index.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
-<title>Marc's Programming Notes</title>
<!-- generated by build.sh. DO NOT EDIT. -->
+<html en="en">
+<title>Marc's Programming Notes</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@@ -11,13 +12,7 @@
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>
<h1 id="marcs-programming-notes">Marc’s Programming Notes</h1>
@@ -37,3 +32,4 @@ data-cites="mvertes">@mvertes</span></a></li>
</ul>
<hr><small>Unless otherwise noted, posts are licensed under
<a href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.</small>
+</html>
diff --git a/yaegi-internals/index.html b/yaegi-internals/index.html
index 50fcca0..ef72bc0 100644
--- a/yaegi-internals/index.html
+++ b/yaegi-internals/index.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
-<title>Yaegi Internals</title>
<!-- generated by build.sh. DO NOT EDIT. -->
+<html en="en">
+<title>Yaegi Internals</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@@ -11,13 +12,7 @@
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>
<a href="..">Marc's Programming Notes</a><hr>