7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-12-27 06:10:19 +00:00
web-ansol.org/themes/academic/layouts/_default/baseof.html

64 lines
2.6 KiB
HTML
Raw Normal View History

2020-06-11 11:46:16 +00:00
<!DOCTYPE html>
2021-11-09 20:15:13 +00:00
<html lang="{{ site.LanguageCode | default "en-us" }}">
{{ partial "site_head" . }}
2021-11-17 23:44:52 +00:00
<script type="text/javascript">
2021-11-17 23:49:59 +00:00
if (window.location.hostname == "www.ansol.org") {
2021-11-17 23:44:52 +00:00
window.location = window.location.href.replace("www.ansol.org", "ansol.org");
}
function showSearch() {
document.querySelector('body').classList.toggle('searching');
document.getElementById('search-query').focus();
return false;
}
function hideSearch() {
document.querySelector('body').classList.toggle('searching');
document.getElementById('search-query').blur();
return false;
}
document.addEventListener('keydown', function (e) {
if (e.which == 27) {
if (document.querySelector('body.searching')) {
hideSearch();
}
}
});
2021-11-17 23:44:52 +00:00
</script>
2021-11-09 20:15:13 +00:00
<body>
<nav class="main">
<div class="body-width">
2023-03-31 16:59:03 +00:00
<a class="menu" href="#" onclick="this.parentNode.parentNode.classList.toggle('menu--expanded'); return false;"><img src="{{ (resources.Get "images/menu.svg").Permalink }}" alt="Menu"></a>
2021-11-09 20:15:13 +00:00
<a href="{{ (site.GetPage "").Permalink }}"><img src="{{ (resources.Get "images/logo.svg").Permalink }}" alt="Associação Nacional para o Software Livre" /></a>
<ul class='sections'>
<li><a href="{{ (site.GetPage "Section" "noticias").Permalink }}">Notícias</a></li>
<li><a href="{{ (site.GetPage "Section" "iniciativas").Permalink }}">Iniciativas</a></li>
<li><a href="{{ (site.GetPage "politica").Permalink }}">Política</a></li>
<li><a href="{{ (site.GetPage "Section" "eventos").Permalink }}">Eventos</a></li>
<li><a href="{{ (site.GetPage "sobre").Permalink }}">Sobre</a></li>
<li><div><a class='cta-header' href="{{ (site.GetPage "inscricao").Permalink }}">Inscreve-te</a></div></li>
2021-11-09 20:15:13 +00:00
</ul>
<a class='nav-search' href="#" onclick="return showSearch();">Pesquisar</a>
2021-11-09 20:15:13 +00:00
</div>
</nav>
<main>
{{ block "main" . }}{{ end }}
</main>
2021-10-28 16:32:48 +00:00
2021-11-09 20:15:13 +00:00
{{ partial "search" . }}
{{ partial "site_js" . }}
2021-10-28 16:32:48 +00:00
2021-11-09 20:15:13 +00:00
<footer>
<div class="body-width">
<p>Copyright 2001 &mdash; {{ now.Year }} ANSOL</p>
2021-11-09 20:15:13 +00:00
<p>Associação Nacional para o Software Livre</p>
<p><a href="{{ (site.GetPage "contactos").Permalink }}">Contactos</a></p>
<p><a href="{{ (site.GetPage "orgaos-sociais").Permalink }}">Órgãos sociais</a></p>
<p><a href="https://gitlab.com/ansol/web-ansol.org">Código fonte</a></p>
<p><a href="{{ (site.GetPage "licenca").Permalink }}">Licenças e atribuições</a></p>
</div>
</footer>
</body>
2020-06-11 11:46:16 +00:00
</html>