45 lines
1.9 KiB
HTML
45 lines
1.9 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>{% if page.homepage %}{% else %}{{ page.title }} - {% endif %}Minetest Modding Book</title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width">
|
|
<meta name="description" content="An easy guide to learn how to create mods for Minetest">
|
|
<meta name="keywords" content="Minetest, modding, book, tutorial, guide, easy">
|
|
<meta name="author" content="rubenwardy">
|
|
<style>body,html,nav{background:#333}nav,nav li,nav li a{display:block}body,html,main,nav li{margin:0;padding:0}main,nav{position:absolute;top:0}body,html{font-size:17px;color:#000}#container{width:100%;max-width:1100px;margin:auto;position:relative}nav{left:0;width:280px;list-style:none;color:#fff}nav li a{padding:5px;color:#ccc;text-decoration:none}main{left:280px;right:0}article{background:#fff;padding:0 20px 20px}</style>
|
|
</head>
|
|
<body>
|
|
{% assign pathsplit = page.dir | split: '/' %}
|
|
{% assign language = pathsplit[1] %}
|
|
|
|
{% if language == "en" %}
|
|
{% assign links = site.data.links_en %}
|
|
|
|
{% else %}
|
|
{% assign language = "en" %}
|
|
{% assign links = site.data.links_en %}
|
|
{% endif %}
|
|
|
|
<div id="container">
|
|
<nav>
|
|
{% for link in links %}
|
|
{% if link.hr %}
|
|
{% assign hr = true %}
|
|
{% else %}
|
|
<li><a href="{{ page.root }}{{ language }}/{{ link.link }}"
|
|
class="{% if page.title == link.title %}selected{% endif %}{% if hr %} hr {% endif %}">
|
|
{% if link.num %} {{ link.num }} - {% endif %}
|
|
{{ link.title }}</a></li>
|
|
{% assign hr = false %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
<li><a href="{{ page.root }}lua_api.html" class="hr">Lua Modding API Reference</a></li>
|
|
<li><a href="https://github.com/rubenwardy/minetest_modding_book/archive/examples.zip">Download Examples</a></li>
|
|
</nav>
|
|
|
|
<main>
|
|
<article {% if page.homepage %}class="homepage"{% endif %}>
|
|
{% if page.no_header %}{% else %}<h1>{{ page.title }}</h1>{% endif %}
|