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.
oliverdavies.uk-old-sculpin/source/_layouts/base.html.twig

44 lines
1.7 KiB
Twig
Raw Normal View History

2018-10-06 11:19:52 +00:00
{% macro htmlTitle(site, page) -%}
{% if page.title is defined and page.url != '//' %}
{{ page.title }} |
{% endif %}
{{ site.title }} - {{ site.subtitle }}
{%- endmacro %}
{% import _self as helpers %}
2018-06-21 00:03:57 +00:00
<!DOCTYPE html>
2018-10-03 23:15:54 +00:00
<html class="no-js text-sm" lang="en-GB">
2018-06-21 00:03:57 +00:00
<head>
2018-10-06 11:19:52 +00:00
<title>{{ helpers.htmlTitle(site, page) }}</title>
2018-09-10 19:20:45 +00:00
{% include 'meta' %}
2018-06-21 00:03:57 +00:00
2018-10-27 19:05:16 +00:00
<link rel="stylesheet" href="/css/app.css">
2018-06-21 00:03:57 +00:00
{% 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>
2018-10-03 23:15:54 +00:00
<body class="font-sans leading-normal">
2018-09-05 20:32:11 +00:00
<div id="app" v-cloak>
2018-12-06 18:20:14 +00:00
{% block body %}{% endblock %}
2018-09-04 21:13:00 +00:00
</div>
2018-06-21 00:03:57 +00:00
{% 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 %}
2018-10-27 19:05:16 +00:00
<script src="/js/all.js"></script>
2018-06-21 00:03:57 +00:00
{% block scripts %}{% endblock %}
</body>
</html>