ungleich-staticcms/templates/layout.html

48 lines
1.5 KiB
HTML
Raw Normal View History

<!doctype html>
2019-09-24 15:30:33 +00:00
<head>
<!-- Google analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-62285904-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<meta charset="utf-8">
<link rel="stylesheet" href="{{ '/u/static/style.css'|url }}">
<title>{% block title %}Welcome to {% endblock %} | ungleich.ch</title>
2019-11-18 13:00:53 +00:00
<link rel="shortcut icon" href="{{ '/u/image/favicon.ico'|url }}" type="image/x-icon">
2019-09-24 15:30:33 +00:00
</head>
<body>
<header>
2019-09-24 14:35:06 +00:00
<h1>{{ self.title() }}</h1>
<nav>
<ul class="nav navbar-nav">
<li{% if this._path == '/' %} class="active"{% endif
2019-09-24 15:30:33 +00:00
%}><a href="{{ '/'|url }}">ungleich.ch</a></li>
{% for href, title in [
2019-09-24 15:30:33 +00:00
['/u/blog', 'the new ungleich blog'],
2019-10-08 15:35:22 +00:00
['/blog', 'the old ungleich blog'],
] %}
<li{% if this.is_child_of(href) %} class="active"{% endif
%}><a href="{{ href|url }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>
</header>
<div class="page">
{% block body %}{% endblock %}
</div>
<footer>
2019-10-08 15:35:22 +00:00
&copy; Copyright by <a href="https://ungleich.ch">ungleich</a>.
</footer>
</body>