This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
cardiffbjj.co.uk/source/_layouts/base.html.twig

25 lines
854 B
Twig

{% macro canonicalUrl(site, page) -%}
{{ site.url }}
{{- page.url != '//' ? page.url }}
{%- endmacro %}
{% import _self as helpers %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}{{ site.title }}{% endblock %}</title>
<link href="/dist/css/app.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,900" rel="stylesheet">
<link rel="canonical" href="{{ helpers.canonicalUrl(page, site) }}"/>
</head>
<body class="text-black bg-grey-lightest font-sans text-base">
<div id="app">
{% block body %}{% endblock %}
</div>
<script src="/dist/js/all.js"></script>
</body>
</html>