Files
radioanton/index.twig
T
2023-06-21 11:29:56 +02:00

143 lines
7.2 KiB
Twig

<!DOCTYPE html>
<html class="no-js">
<head>
<!-- Beispiel für Variable aus _meta.md mit Filter: {{ pages["_meta"].meta.headerbg|url }} -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
{% if meta.description %}
<meta name="description" content="{{ meta.description|striptags }}" />
{% endif %}
{% if meta.robots %}
<meta name="robots" content="{{ meta.robots }}" />
{% endif %}
{% if current_page %}
<link rel="canonical" href="{{ current_page.url }}" />
{% endif %}
<!-- Favicon-->
<link rel="apple-touch-icon" sizes="180x180" href="{{ theme_url }}/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ theme_url }}/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ theme_url }}/assets/favicon-16x16.png">
<link rel="manifest" href="{{ theme_url }}/assets/site.webmanifest">
<!-- Bootstrap icons-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="{{ theme_url }}/css/styles.css" rel="stylesheet" />
<!-- link rel="stylesheet" href="{{ theme_url }}/css/style.css" type="text/css" / -->
<link rel="stylesheet" href="{{ theme_url }}/css/contrailone.css" type="text/css" />
<link rel="stylesheet" href="{{ theme_url }}/css/roboto.css" type="text/css" />
<link rel="stylesheet" href="{{ theme_url }}/css/droidsans.css" type="text/css" />
<style>
.nav-link { font-family: 'Roboto'; font-size: 16px; }
</style>
</head>
<body>
<!-- Responsive navbar-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container px-5">
<a class="navbar-brand" href="#!"><img src="{{ theme_url }}/assets/radioanton-logo-transparent.png" height="50" class="d-inline-block align-top" alt="Radio Anton"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item"><a class="nav-link active" aria-current="page" href="#!">Radio</a></li>
<li class="nav-item"><a class="nav-link" href="#!">Podcast</a></li>
<li class="nav-item"><a class="nav-link" href="#!">Über uns</a></li>
<li class="nav-item"><a class="nav-link" href="#!">Kontakt</a></li>
</ul>
</div>
</div>
</nav>
<div id="header" role="banner" style="background-image: url('{{ pages["_meta"].meta.headerbg|url }}'); background-position: center; background-repeat: no-repeat; background-size: cover;">
<div class="container">
<!--a id="nav-toggle" title="Toggle Menu" role="button" aria-controls="nav" aria-expanded="false" tabindex="1">
<span class="icon-menu" aria-hidden="true"></span>
<span class="sr-only">Toggle Menu</span>
</a-->
{% if pages["_meta"].meta.logo %}
<div id="logo" aria-hidden="true">
<a href="{{ "index"|link }}">
<img src="{{ pages["_meta"].meta.logo|url }}" alt="" />
</a>
</div>
{% endif %}
<div id="title"{{ pages["_meta"].meta.tagline ? ' class="tagline"' }}>
<a href="{{ "index"|link }}">
<h1>{{ site_title }}</h1>
{{ pages["_meta"].meta.tagline|markdown }}
</a>
</div>
<div id="nav_anton" style="margin: 2ex; padding: 2ex; font-weight: bold;">
&nbsp;&nbsp;&nbsp;<a style="font-family: 'Contrail One'; font-size:120%; color: darkblue;" href="https://www.nodebucket.de/index.php/apps/cms_pico/pico/anton">Podcast</a><br/>
&nbsp;&nbsp;&nbsp;<a style="font-family: 'Contrail One'; font-size:120%; color: darkblue;" href="https://www.nodebucket.de/index.php/apps/cms_pico/pico/anton/reportagen">Reportagen</a><br />
&nbsp;&nbsp;&nbsp;<a style="font-family: 'Contrail One'; font-size:120%; color: darkblue;" href="https://www.sportschau.de/">Sport</a><br />
&nbsp;&nbsp;&nbsp;<a style="font-family: 'Contrail One'; font-size:120%; color: darkblue;" href="https://www.nodebucket.de/index.php/apps/cms_pico/pico/anton/quatsch">Quatsch</a>
</div>
<!--div id="nav" role="navigation" tabindex="-1">
<a href="reportagen">Reportagen</a>
<ul>
{% for page in pages(depthOffset=-1) if page.title and not page.hidden %}
<li{% if page.id == current_page.id %} class="active"{% endif %}>
<a href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
</div-->
</div>
</div>
<div id="main" role="main">
<div class="container">
{{ content }}
</div>
</div>
<div id="footer">
<div class="container">
<div class="social">
{% for social in pages["_meta"].meta.social %}
<a href="{{ social.url }}" title="{{ social.title }}" role="button">
<span class="icon-{{ social.icon }}" aria-hidden="true"></span>
<span class="sr-only">{{ social.title }}</span>
</a>
{% endfor %}
</div>
<!--p>
<a href="http://picocms.org/">Pico</a> was made by <a href="http://gilbert.pellegrom.me">Gilbert Pellegrom</a>
and is maintained by <a href="https://github.com/picocms/Pico/graphs/contributors">The Pico Community</a>.
Released under the <a href="https://github.com/picocms/Pico/blob/master/LICENSE.md">MIT license</a>.
</p-->
</div>
</div>
<script src="{{ theme_url }}/js/modernizr-3.3.1-custom.min.js" type="text/javascript"></script>
<script src="{{ theme_url }}/js/utils.js" type="text/javascript"></script>
<script src="{{ theme_url }}/js/pico.js" type="text/javascript"></script>
<script>
// When the user scrolls down 80px from the top of the document, resize the navbar's padding and the logo's font size
// https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_navbar_shrink_scroll
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) {
document.getElementById("navbar").style.padding = "30px 10px";
document.getElementById("logo").style.fontSize = "25px";
} else {
document.getElementById("navbar").style.padding = "80px 10px";
document.getElementById("logo").style.fontSize = "35px";
}
}
</script>
</body>
</html>