pedf
/
fakulta-online
Archived
1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

62 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
<link rel="stylesheet" href="/style.css" type="text/css">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
</head>
<body{% if section.permalink and section.permalink == config.base_url %} class="index"{% endif %}>
<nav id="nav">
<header>
<div class="menu" onclick="togglevisible('#nav')">
Menu
<div class="menuicon">
<div></div><div></div><div></div>
</div>
</div>
</header>
<div class="list">
{% set section = get_section(path="_index.md") %}
{% if section.pages %}
<ul>
{% for page in section.pages %}
<li><a href="{{ page.permalink }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
<div class="background"></div>
</nav>
<header>
<a href="{{ config.base_url }}" id="logo"></a>
<a href="{{ config.base_url }}"><h1>{{ config.title }}</h1></a>
<div class="menu" onclick="togglevisible('#nav')">
Menu
<div class="menuicon">
<div></div><div></div><div></div>
</div>
</div>
</header>
<main>
{% block content %}
<section>
<h2>{{ config.title }}</h2>
{{ section.content | safe }}
</section>
<aside>
{% for page in section.pages %}
{% if page.extra.indexnav %}
<a href="{{page.permalink}}">{{ page.title }}</a>
{% endif %}
{% endfor %}
</aside>
{% endblock %}
</main>
</body>
<script>
function togglevisible(id){document.querySelector(id).classList.toggle("visible")}
</script>
</html>