Standardise on include format

This commit is contained in:
Oliver Davies 2016-09-29 12:43:17 +01:00
parent c5e5ae90d5
commit 188a8d044f
7 changed files with 24 additions and 23 deletions

View file

@ -1,7 +1,7 @@
<footer class="container">
<p class="copyright">&copy; 2010-{{ 'now'|date('Y') }} {{ site.title }}. Powered by <a href="https://sculpin.io">Sculpin</a>.</p>
{% include('meetups') %}
{% include 'meetups' %}
</footer>
<script src="{{ site.url }}/assets/js/site.js"></script>

View file

@ -1,5 +1,5 @@
<head>
{% include('title') %}
{% include 'title' %}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -10,7 +10,7 @@
{% endif %}
{% if page.meta.og %}
{{ include('og', { og: page.meta.og }) }}
{% include 'og' with { og: page.meta.og } %}
{% endif %}
<link rel="stylesheet" href="{{ site.url }}/assets/css/site.css">

View file

@ -1,9 +1,9 @@
{% block sidebar_wrapper %}
<div class="col-md-3">
{% block sidebar %}
{{ include('badges') }}
{{ include('availability') }}
{{ include('posts/latest') }}
{% include 'badges' %}
{% include 'availability' %}
{% include 'posts/latest' %}
{% endblock %}
</div>
{% endblock %}

View file

@ -1,8 +1,9 @@
<!DOCTYPE html>
<html class="no-js" lang="en-GB">
{{ include('head') }}
{% include 'head' %}
<body class="{{ page.blocks.body_classes }}">
{{ include('nav') }}
{% include 'nav' %}
<div class="container">
<div class="row">
@ -14,10 +15,10 @@
{% block content_bottom %}{% endblock %}
</main>
{{ include('sidebar') }}
{% include 'sidebar' %}
</div>{# .row #}
</div>{# .container #}
{{ include('footer') }}
{% include 'footer' %}
</body>
</html>

View file

@ -1,13 +1,13 @@
{% extends 'default' %}
{% block content_wrapper %}
{{ include('post/header') }}
{% include 'post/header' %}
{% block content %}{% endblock %}
{{ include('post/feedback') }}
{{ include('post/related') }}
{{ include('post/tags') }}
{{ include('post/about-author') }}
{{ include('post/pager') }}
{% include 'post/feedback' %}
{% include 'post/related' %}
{% include 'post/tags' %}
{% include 'post/about-author' %}
{% include 'post/pager' %}
{% endblock %}

View file

@ -3,11 +3,11 @@
{% block body_classes 'page--project' %}
{% block content_wrapper %}
{{ include('project/image') }}
{% include 'project/image' %}
{% block content %}{% endblock %}
{{ include('project/website') }}
{{ include('project/skills') }}
{{ include('project/company') }}
{% include 'project/website' %}
{% include 'project/skills' %}
{% include 'project/company' %}
{% endblock %}

View file

@ -7,7 +7,7 @@
{% block content_wrapper %}
{% block content %}{% endblock %}
{{ include('talk/event') }}
{{ include('talk/slides') }}
{{ include('talk/video') }}
{% include 'talk/event' %}
{% include 'talk/slides' %}
{% include 'talk/video' %}
{% endblock %}