minetest_modding_book/_includes/header.html

43 lines
1.4 KiB
HTML
Raw Normal View History

2014-12-11 11:56:37 +03:00
<!doctype html>
<html>
<head>
2015-02-04 11:50:51 +03:00
<title>{% if page.title != "Introduction" %}{{ 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">
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">
<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 %}
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>
</ul>
2017-08-26 18:40:30 +03:00
2017-08-27 21:13:56 +03:00
<div id="page">
<h1>{{ page.title }}</h1>