website/templates/index.html

34 lines
1.4 KiB
HTML
Raw Normal View History

2020-03-29 17:26:12 +02:00
{% import "widgets.html" as widgets %}
{% if section %}{% set lang = section.lang %}{% elif page %}{% set lang = page.lang %}{% else %}{% set lang = false %}{% endif %}
<!DOCTYPE html>
<html class="no-js">
<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">
<link rel="stylesheet" href="{{ get_url(path="github-markdown.css") }}" type="text/css">
</head>
<body>
<header>
{{ widgets::menu(content="_common/menus/main.md") }}
<aside style="display: none">
<h1>{{ config.extra.title }}</h1>
</aside>
{% set header = get_page(path="_common/header.md") %}
{{ header.content | markdown | safe }}
</header>
<main class="markdown-body">
{% 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>
</footer>
</body>
</html>