Re-organise layouts
This commit is contained in:
parent
661a4c6c96
commit
d366b6d6d2
4 changed files with 42 additions and 37 deletions
43
source/_layouts/app.html.twig
Normal file
43
source/_layouts/app.html.twig
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{% macro htmlTitle(site, page) -%}
|
||||
{% if page.title is defined and page.url != '//' %}
|
||||
{{ page.title }} |
|
||||
{% endif %}
|
||||
{{ site.title }} - {{ site.subtitle }}
|
||||
{%- endmacro %}
|
||||
|
||||
{% import _self as helpers %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js text-sm" lang="en-GB">
|
||||
<head>
|
||||
<title>{{ helpers.htmlTitle(site, page) }}</title>
|
||||
{% include 'meta' %}
|
||||
|
||||
<link rel="stylesheet" href="/css/app.css">
|
||||
{% block stylesheets %}{% endblock %}
|
||||
|
||||
{% for size in site.apple_touch_icon_sizes %}
|
||||
<link rel="apple-touch-icon" href="{{ site.favicon.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}">
|
||||
{% endfor %}
|
||||
|
||||
{% for size in site.favicon_sizes %}
|
||||
<link rel="icon" href="{{ site.favicon.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}">
|
||||
{% endfor %}
|
||||
</head>
|
||||
<body class="font-sans leading-normal">
|
||||
<div id="app" v-cloak>
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{% if site.google_analytics_tracking_id %}
|
||||
<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','//www.google-analytics.com/analytics.js','ga'); ga('create', '{{ site.google_analytics_tracking_id }}', 'auto'); ga('send', 'pageview');</script>
|
||||
{% endif %}
|
||||
|
||||
{% if page.has_tweets %}
|
||||
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||||
{% endif %}
|
||||
|
||||
<script src="/js/all.js"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue