-
- {% for link in links %}
- {% assign idsplit = link.id | split: '/' %}
- {% assign section = idsplit[2] %}
-
-
- {% if section != "index" %}{{ num }} - {% endif %}
- {{ link.title }}
-
-
+ {% assign last_section = section %}
+ {% assign num = num | plus:1 %}
+ {% endfor %}
- {% assign last_section = section %}
- {% assign num = num | plus:1 %}
- {% endfor %}
+ Lua Modding API Reference
+ Download Examples
+
-
Lua Modding API Reference
-
Download Examples
-
+
+
+
+
+ {{ language }}
+
-
-
- {% if page.no_header %}{% else %}{{ page.title }} {% endif %}
- {{ content }}
-
+ {% if page.no_header %}{% else %}{{ page.title }} {% endif %}
+ {{ content }}
+
+ {% for link in links %}
+ {% if link.title == page.title %}
+ {% unless forloop.first %}
+ {% assign prev = tmpprev %}
+ {% endunless %}
+ {% unless forloop.last %}
+ {% assign next = links[forloop.index] %}
+ {% endunless %}
+ {% endif %}
+ {% assign tmpprev = link %}
+ {% endfor %}
- {% for link in links %}
- {% if link.title == page.title %}
- {% unless forloop.first %}
- {% assign prev = tmpprev %}
- {% endunless %}
- {% unless forloop.last %}
- {% assign next = links[forloop.index] %}
- {% endunless %}
- {% endif %}
- {% assign tmpprev = link %}
- {% endfor %}
+
-
-
-
- © 2014-20 |
- Helpful? Consider
- donating
- to support my work.
-
-
-
-
-
-
-
+
+ © 2014-20
+ {% if language == "en" %}
+ | Helpful? Consider
+ donating
+ to support my work.
+ {% endif %}
+
+
diff --git a/_sass/_main.scss b/_sass/_main.scss
index a01248b..d800709 100644
--- a/_sass/_main.scss
+++ b/_sass/_main.scss
@@ -83,6 +83,24 @@ article {
// text-align: justify;
}
+.language-switcher {
+ display: flex;
+ align-items: center;
+ float: right;
+ color: black;
+ text-decoration: none;
+ padding-top: 0.3rem;
+
+ img, span {
+ display: inline-block;
+ }
+
+ img {
+ height: 1.2em;
+ padding-right: 0.3em;
+ }
+}
+
footer {
margin: 0 0 20px 0;
padding: 1em 1.5em;
diff --git a/languages.html b/languages.html
new file mode 100644
index 0000000..949b052
--- /dev/null
+++ b/languages.html
@@ -0,0 +1,24 @@
+---
+title: Languages
+layout: base
+root: .
+---
+
+
+
+ Minetest Modding Book
+
+ Choose a Language
+
+
+
+
+
+
+
diff --git a/static/languages.svg b/static/languages.svg
new file mode 100644
index 0000000..88d3bc6
--- /dev/null
+++ b/static/languages.svg
@@ -0,0 +1 @@
+
\ No newline at end of file