minetest_modding_book/_includes/header.html

44 lines
1.8 KiB
HTML

<!doctype html>
<html>
<head>
<title>{% if page.title != "Introduction" %}{{ 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>#navbar,#page{position:absolute;top:0}#navbar,#navbar li{margin:0;padding:0;display:block}body,html{background:#333;font-family:Arial,sans-serif}#container{width:100%;max-width:1100px;margin:auto;position:relative}#page{background:#fff;margin:0;padding:0 20px 20px;left:250px;right:0}#navbar{left:0;width:250px;list-style:none;background:#333;color:#fff}#navbar li a{display:block;padding:5px;color:#ccc;text-decoration:none;cursor:pointer}</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">
<ul id="navbar">
{% 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>
</ul>
<div id="page">
<h1>{{ page.title }}</h1>