2020-03-29 17:26:12 +02:00
|
|
|
{% import "widgets.html" as widgets %}
|
2020-03-29 19:54:15 +02:00
|
|
|
{% set lang = section.lang | default(value=page.lang) %}{% if lang == "en" %}{% set lang = false %}{% endif %}
|
2020-03-29 17:26:12 +02:00
|
|
|
<!DOCTYPE html>
|
2020-03-29 19:16:45 +02:00
|
|
|
<html class="no-js" lang="{{ lang | default(value="en")}}">
|
2020-03-29 17:26:12 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf8">
|
|
|
|
<title>{{ config.extra.title }}</title>
|
|
|
|
<link rel="alternate" type="application/rss+xml" href="{{ get_url(path="rss.xml") }}">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="stylesheet" href="{{ get_url(path="style.css") }}" type="text/css">
|
2020-03-29 19:16:45 +02:00
|
|
|
<link rel="stylesheet" href="{{ get_url(path="water.css") }}" type="text/css">
|
2020-03-29 17:26:12 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
{% set header = get_page(path="_common/header.md") %}
|
|
|
|
{{ header.content | markdown | safe }}
|
2020-03-29 19:54:15 +02:00
|
|
|
{% if lang %}{{ widgets::menu(content="_common/menu." ~ lang ~ ".md") }}
|
|
|
|
{% else %}{{ widgets::menu(content="_common/menu.md") }}
|
|
|
|
{% endif %}
|
2020-03-29 17:26:12 +02:00
|
|
|
</header>
|
2020-03-29 19:16:45 +02:00
|
|
|
<main>
|
2020-03-29 17:26:12 +02:00
|
|
|
{% block main %}
|
|
|
|
{#{% set home = get_section(path="_index.md").content %}#}
|
|
|
|
{% set home = load_data(url="https://raw.githubusercontent.com/KaneRoot/dnsmanager/master/readme.markdown") %}
|
|
|
|
{{ home | markdown | safe }}
|
|
|
|
{% endblock %}
|
|
|
|
</main>
|
|
|
|
<footer>
|
2020-03-29 19:16:45 +02:00
|
|
|
{% if config.extra.forge %}
|
|
|
|
<aside class="source">
|
2020-03-29 21:15:57 +02:00
|
|
|
{% if lang %}{% set translated = trans(key="source", lang=lang) %}
|
|
|
|
{% else %}{% set translated = trans(key="source") %}{% endif %}
|
2020-03-29 19:16:45 +02:00
|
|
|
{% if section %}
|
2020-03-29 21:15:57 +02:00
|
|
|
<a href="{{ config.extra.forge.browse }}content/{{ section.path }}_index.md">{{ translated }}</a>
|
2020-03-29 19:16:45 +02:00
|
|
|
{% else %}
|
2020-03-29 21:15:57 +02:00
|
|
|
<a href="{{ config.extra.forge.browse }}content/{{ page.path }}index.md">{{ translated }}</a>
|
2020-03-29 19:16:45 +02:00
|
|
|
{% endif %}
|
|
|
|
</aside>
|
|
|
|
{% endif %}
|
2020-03-29 17:26:12 +02:00
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|