Consistent includes

This commit is contained in:
Oliver Davies 2018-06-21 01:12:16 +01:00
parent f08bf1e056
commit 5b036deaaf
4 changed files with 12 additions and 12 deletions

View file

@ -2,19 +2,19 @@
<h2 class="mb-2">Things that I organise</h2> <h2 class="mb-2">Things that I organise</h2>
<ul class="list-reset inline-flex"> <ul class="list-reset inline-flex">
{% include 'meetup.html.twig' with { {% include 'meetup' with {
name: 'Drupal Bristol', name: 'Drupal Bristol',
logo: 'drupal-bristol.jpeg', logo: 'drupal-bristol.jpeg',
url: 'http://www.drupalbristol.org.uk', url: 'http://www.drupalbristol.org.uk',
} %} } %}
{% include 'meetup.html.twig' with { {% include 'meetup' with {
name: 'DrupalCamp Bristol', name: 'DrupalCamp Bristol',
logo: 'drupalcamp-bristol.png', logo: 'drupalcamp-bristol.png',
url: 'http://www.drupalcampbristol.co.uk', url: 'http://www.drupalcampbristol.co.uk',
} %} } %}
{% include 'meetup.html.twig' with { {% include 'meetup' with {
name: 'PHPSW', name: 'PHPSW',
logo: 'phpsw.jpeg', logo: 'phpsw.jpeg',
url: 'http://phpsw.uk', url: 'http://phpsw.uk',

View file

@ -16,31 +16,31 @@
</div> </div>
<nav class="hidden block w-full -mx-4 sm:w-2/3 lg:w-3/4 sm:flex sm:flex-wrap sm:justify-end" role="navigation"> <nav class="hidden block w-full -mx-4 sm:w-2/3 lg:w-3/4 sm:flex sm:flex-wrap sm:justify-end" role="navigation">
{% include 'nav-item.html.twig' with { {% include 'nav-item' with {
title: 'About', title: 'About',
href: '/', href: '/',
pattern: '^/.$', pattern: '^/.$',
} %} } %}
{% include 'nav-item.html.twig' with { {% include 'nav-item' with {
title: 'Talks', title: 'Talks',
href: '/talks', href: '/talks',
pattern: '^/talks/?', pattern: '^/talks/?',
} %} } %}
{% include 'nav-item.html.twig' with { {% include 'nav-item' with {
title: 'Blog', title: 'Blog',
href: '/blog', href: '/blog',
pattern: '^/blog/?', pattern: '^/blog/?',
} %} } %}
{% include 'nav-item.html.twig' with { {% include 'nav-item' with {
title: 'Book', title: 'Book',
href: '/test-driven-drupal', href: '/test-driven-drupal',
pattern: '^/test-driven-drupal/?$', pattern: '^/test-driven-drupal/?$',
} %} } %}
{% include 'nav-item.html.twig' with { {% include 'nav-item' with {
title: 'Contact', title: 'Contact',
href: '/contact', href: '/contact',
pattern: '^/contact/?', pattern: '^/contact/?',

View file

@ -53,7 +53,7 @@ use: [posts]
{% endfor %} {% endfor %}
</ul> </ul>
{% include 'post-pager.html.twig' %} {% include 'post-pager' %}
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}

View file

@ -147,7 +147,7 @@ projects:
<div class="mb-4"> <div class="mb-4">
<h2>Drupal</h2> <h2>Drupal</h2>
{% include 'opensource/projects.html.twig' with { {% include 'opensource/projects' with {
projects: page.projects.drupal projects: page.projects.drupal
} %} } %}
</div> </div>
@ -155,7 +155,7 @@ projects:
<div class="mb-4"> <div class="mb-4">
<h2>Sculpin</h2> <h2>Sculpin</h2>
{% include 'opensource/projects.html.twig' with { {% include 'opensource/projects' with {
projects: page.projects.sculpin projects: page.projects.sculpin
} %} } %}
</div> </div>
@ -163,7 +163,7 @@ projects:
<div> <div>
<h2>PHP</h2> <h2>PHP</h2>
{% include 'opensource/projects.html.twig' with { {% include 'opensource/projects' with {
projects: page.projects.php projects: page.projects.php
} %} } %}
</div> </div>