minetest_modding_book/_includes/header.html

45 lines
1.9 KiB
HTML
Raw Normal View History

2014-12-11 11:56:37 +03:00
<!doctype html>
<html>
<head>
2018-01-13 05:21:18 +03:00
<title>{% if page.homepage %}{% else %}{{ page.title }} - {% endif %}Minetest Modding Book</title>
2015-02-09 12:01:40 +03:00
<meta charset="UTF-8">
2015-02-06 22:16:14 +03:00
<meta name="viewport" content="width=device-width">
2015-02-09 11:59:21 +03:00
<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">
2018-01-13 05:21:18 +03:00
<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>
2014-12-11 11:56:37 +03:00
</head>
<body>
2017-08-26 18:40:30 +03:00
{% 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 %}
2017-08-27 21:13:56 +03:00
<div id="container">
2018-01-13 05:21:18 +03:00
<nav>
2017-08-27 21:13:56 +03:00
{% 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 %}
2017-08-26 18:40:30 +03:00
2017-08-27 21:13:56 +03:00
<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>
2018-01-13 05:21:18 +03:00
</nav>
2017-08-26 18:40:30 +03:00
2018-01-13 05:21:18 +03:00
<main>
<article {% if page.homepage %}class="homepage"{% endif %}>
{% if page.no_header %}{% else %}<h1>{{ page.title }}</h1>{% endif %}