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/default.html.twig

107 lines
5 KiB
Twig
Raw Normal View History

2015-08-09 00:34:20 +00:00
<!DOCTYPE html>
2016-02-03 13:27:49 +00:00
<!--[if lte IE 8]><html lang="{{ site.locale }}" class="ie ie8 lt9 lte8 lte7"> <![endif]-->
<!--[if IE 9]><html lang="{{ site.locale }}" class="ie ie9 lte9"> <![endif]-->
<!--[if gt IE 9]><html lang="{{ site.locale }}"><![endif]-->
<!--[if !IE]><!--><html lang="{{ site.locale }}"><!--<![endif]-->
2015-08-20 21:17:31 +00:00
<head>
2015-09-27 11:01:49 +00:00
{% include('title') %}
2015-08-20 21:17:31 +00:00
{% if page.meta.description %}
<meta name="description" content="{{ page.meta.description|e('html') }}">
{% endif %}
{% if page.meta.og %}
2015-09-27 11:01:49 +00:00
{{ include('og', { og: page.meta.og }) }}
2015-08-20 21:17:31 +00:00
{% endif %}
2015-09-03 21:55:07 +00:00
<meta lang="{{ site.html_lang }}" charset="utf-8">
2015-08-20 21:17:31 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
2015-09-12 16:57:33 +00:00
2016-02-03 19:24:47 +00:00
<link rel="stylesheet" href="{{ site.url }}/assets/css/vendor.css">
<link rel="stylesheet" href="{{ site.url }}/assets/css/site.css">
2015-10-09 20:10:15 +00:00
{% block styles %}{% endblock %}
2015-08-20 21:17:31 +00:00
{% for size in site.apple_touch_icon_sizes %}
<link rel="apple-touch-icon" href="{{ site.gravatar.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}">
{% endfor %}
{% for size in site.favicon_sizes %}
<link rel="icon" href="{{ site.gravatar.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}">
{% endfor %}
</head>
2015-09-27 11:01:49 +00:00
<body class="{{ page.blocks.body_classes }}">
<nav class="navbar navbar-inverse navbar-fixed-top">
2015-08-20 21:17:31 +00:00
<div class="container">
<div class="navbar-header">
2015-08-20 22:47:52 +00:00
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
2015-08-20 21:17:31 +00:00
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2015-08-31 19:04:21 +00:00
<a class="navbar-brand" href="{{ site.url }}/">{{ site.title }}</a>
2015-08-20 21:17:31 +00:00
</div>
<div id="navbar" class="collapse navbar-collapse" role="navigation">
2015-09-09 21:08:44 +00:00
<ul class="nav navbar-nav">
2015-09-13 16:10:27 +00:00
{% for name, item in site.main_menu %}
<li{% if page.nav == name %} class="active"{% endif %}>
<a href="{{ item.href }}">{{ item.title }}</a>
</li>
2015-08-20 21:17:31 +00:00
{% endfor %}
</ul>
</div>{# .nav-collapse #}
</div>
</nav>
2015-08-09 00:34:20 +00:00
2015-08-20 20:56:18 +00:00
<div class="container">
<div class="row">
{% block content_wrapper %}
2015-08-20 23:18:47 +00:00
<main class="col-md-9">
2015-11-27 21:20:46 +00:00
{% block content_top %}{% endblock %}
2015-09-27 11:01:49 +00:00
{% block content %}{% endblock %}
2015-11-27 21:20:46 +00:00
{% block content_bottom %}{% endblock %}
2015-08-20 20:56:18 +00:00
</main>
2015-09-27 11:01:49 +00:00
{% endblock %}
2015-08-09 00:34:20 +00:00
2015-08-20 21:22:05 +00:00
{% block sidebar_wrapper %}
2015-08-20 23:18:47 +00:00
<div class="col-md-3">
2015-08-20 21:22:05 +00:00
{% block sidebar %}
2015-12-24 08:11:55 +00:00
<div class="panel panel--badges">
<a class="panel--badges--badge__da-member" href="https://assoc.drupal.org/membership" title="Im a Drupal Association member.">
2016-01-11 00:40:53 +00:00
<img src="{{ site.images_url }}/assets/images/da-individual-member.png" alt="Drupal Association Individual Member">
2015-08-20 21:22:05 +00:00
</a>
2015-12-24 08:11:55 +00:00
<a href="https://www.drupal.org/8">
2016-01-11 00:40:53 +00:00
<img alt="I built Drupal 8 with hand holding a wrench on blue background" src="{{ site.images_url }}/assets/images/drupal-8.jpg"/>
2015-08-31 19:53:09 +00:00
</a>
2015-09-12 19:42:18 +00:00
</div>
2015-08-31 19:53:09 +00:00
2015-09-27 11:01:49 +00:00
{% include('availability') %}
{% endblock %}
2015-08-20 21:22:05 +00:00
</div>
2015-09-27 11:01:49 +00:00
{% endblock %}
2015-08-20 20:56:18 +00:00
</div>{# .row #}
</div>{# .container #}
2015-08-09 00:34:20 +00:00
2015-08-20 21:17:31 +00:00
<footer class="container">
2016-01-01 10:30:34 +00:00
<p class="copyright">&copy; 2010-{{ 'now'|date('Y') }} {{ site.title }}. Powered by <a href="https://sculpin.io">Sculpin</a>.</p>
2015-08-20 21:17:31 +00:00
2015-09-27 11:01:49 +00:00
{% include('meetups') %}
2015-08-20 21:17:31 +00:00
</footer>
2016-02-03 19:24:47 +00:00
<script src="{{ site.url }}/assets/js/vendor.js"></script>
2015-08-20 21:17:31 +00:00
2015-09-27 11:01:49 +00:00
{% block scripts %}{% endblock %}
2015-08-20 21:17:31 +00:00
2015-09-12 10:26:44 +00:00
{% if page.tweets %}
2015-08-20 21:17:31 +00:00
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %}
{% if site.google_analytics_tracking_id %}
2016-01-11 02:28:43 +00:00
<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>
2015-08-20 21:17:31 +00:00
{% endif %}
2015-08-20 20:56:18 +00:00
</body>
2015-08-09 00:34:20 +00:00
</html>