Edit base and home templates
This commit is contained in:
parent
6b0eaaaa22
commit
797abd2dea
8 changed files with 120 additions and 22 deletions
74
site/templates/base.twig
Normal file
74
site/templates/base.twig
Normal file
|
@ -0,0 +1,74 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
|
||||
{# {{ snippet('metadata') }}
|
||||
{{ snippet('favicon') }} #}
|
||||
|
||||
{# <script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
_paq.push(['disableCookies']);
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//matomo.paulnicoue.com/";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '2']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script> #}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ asset('assets/css/style.min.css') }}">
|
||||
{% endblock %}
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{% block header %}
|
||||
<header>
|
||||
|
||||
<div class="header-bar">
|
||||
<nav class="header-bar__nav" aria-label="Menu">
|
||||
{% if site.homepage.exhibitions is not empty %}
|
||||
<ul class="header-bar__nav-menu">
|
||||
{% for exhibition in site.homePage.exhibitions.toStructure %}
|
||||
<li class="header-bar__nav-item">
|
||||
{% if exhibition.external_link.toBool == false %}
|
||||
<a href="{{ exhibition.url }}" target="iframe">{{ exhibition.url }}</a>
|
||||
{% elseif exhibition.external_link.toBool == true %}
|
||||
<a href="{{ exhibition.url }}" target="_blank">{{ exhibition.url }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<footer>
|
||||
|
||||
<div class="footer-bar">
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ asset('assets/js/app.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue