Remove body_classes block

This commit is contained in:
Oliver Davies 2015-09-10 02:49:32 +01:00
parent f2b0352481
commit 7b0f15bfe8
9 changed files with 104 additions and 132 deletions

View file

@ -8,13 +8,10 @@ pagination:
use: use:
- posts - posts
--- ---
{% block body_classes %}page--blog page--blog__list{% endblock %} <h1>Blog</h1>
{% block content %} <ul class="posts">
<h1>Blog</h1> {% for post in page.pagination.items %}
<ul class="posts">
{% for post in page.pagination.items %}
<li class="post"> <li class="post">
{% include 'post_header' with { page: post, title_tag: 'h2' } %} {% include 'post_header' with { page: post, title_tag: 'h2' } %}
@ -26,10 +23,10 @@ use:
<a href="{{ post.url }}">Read more &rarr;</a> <a href="{{ post.url }}">Read more &rarr;</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% if page.pagination.previous_page or page.pagination.next_page %} {% if page.pagination.previous_page or page.pagination.next_page %}
<nav> <nav>
{% if page.pagination.previous_page %} {% if page.pagination.previous_page %}
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer Items</a> <a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer Items</a>
@ -38,5 +35,4 @@ use:
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Items</a> <a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Items</a>
{% endif %} {% endif %}
</nav> </nav>
{% endif %} {% endif %}
{% endblock content %}

View file

@ -5,9 +5,6 @@ title: Contact
meta: meta:
description: 'Information about how to get in touch with Oliver.' description: 'Information about how to get in touch with Oliver.'
--- ---
{% block body_classes 'page--contact' %}
{% block content %}
# Contact # Contact
The best ways to contact me is via <a href="mailto:{{ site.email }}?subject=Contact%20Oliver%20Davies">email</a> and The best ways to contact me is via <a href="mailto:{{ site.email }}?subject=Contact%20Oliver%20Davies">email</a> and
@ -29,4 +26,3 @@ Here are some other places to find me online:
* <a href="{{ site.speakerdeck.url }}">Speaker Deck</a> * <a href="{{ site.speakerdeck.url }}">Speaker Deck</a>
* <a href="{{ site.ansible_galaxy.url }}">Ansible Galaxy</a> * <a href="{{ site.ansible_galaxy.url }}">Ansible Galaxy</a>
* <a href="{{ site.flickr.url }}">Flickr</a> * <a href="{{ site.flickr.url }}">Flickr</a>
{% endblock %}

View file

@ -5,9 +5,6 @@ title: Experience
meta: meta:
description: 'Information about freelance services that Oliver offers.' description: 'Information about freelance services that Oliver offers.'
--- ---
{% block body_classes 'page--experience' %}
{% block content %}
# Experience # Experience
## PHP ## PHP
@ -50,4 +47,3 @@ meta:
* Continuous integration using [Jenkins](http://jenkins-ci.org). * Continuous integration using [Jenkins](http://jenkins-ci.org).
* Virtual machine setup using [Vagrant](http://vagrantup.com) for development or server testing. * Virtual machine setup using [Vagrant](http://vagrantup.com) for development or server testing.
* Domain name and DNS management. * Domain name and DNS management.
{% endblock %}

View file

@ -12,9 +12,6 @@ meta:
height: 327 height: 327
type: image/jpg type: image/jpg
--- ---
{% block body_classes 'page--about' %}
{% block content %}
# About # About
<img src="{{ site.gravatar.url }}?s=100" alt="Picture of Oliver" class="img-circle"> <img src="{{ site.gravatar.url }}?s=100" alt="Picture of Oliver" class="img-circle">
@ -36,4 +33,3 @@ I maintain several contrib projects on Drupal.org, and have contributed to numer
I'm also the [Git Documentation Maintainer](https://www.drupal.org/node/2248627#comment-8887789) for the Drupal project, and a provisional member of the [Drupal Security team](https://www.drupal.org/security-team). I'm also the [Git Documentation Maintainer](https://www.drupal.org/node/2248627#comment-8887789) for the Drupal project, and a provisional member of the [Drupal Security team](https://www.drupal.org/security-team).
I organise Drupal user group events such as talk nights and code sprints in <a href="{{ site.meetups.swdug.url }}">South Wales</a> and <a href="{{ site.meetups.drupalbristol.url }}">Bristol</a>, and am a founding [DrupalCamp Bristol](http://2015.drupalcampbristol.co.uk) organising committee member. I also regularly attend and speak at other meetups and conferences related to Drupal, PHP, Linux, DevOps, and web development and accessibility. I organise Drupal user group events such as talk nights and code sprints in <a href="{{ site.meetups.swdug.url }}">South Wales</a> and <a href="{{ site.meetups.drupalbristol.url }}">Bristol</a>, and am a founding [DrupalCamp Bristol](http://2015.drupalcampbristol.co.uk) organising committee member. I also regularly attend and speak at other meetups and conferences related to Drupal, PHP, Linux, DevOps, and web development and accessibility.
{% endblock %}

View file

@ -19,23 +19,20 @@ meta:
# - { date: 2015-11-01, location: Unified Diff, title: Building Static Websites with Sculpin, fuzzy_date: true } # - { date: 2015-11-01, location: Unified Diff, title: Building Static Websites with Sculpin, fuzzy_date: true }
use: [talks] use: [talks]
--- ---
{% block body_classes 'page--talks page--talks__list' %} <h1>Talks</h1>
{% block content %} <p>I regularly speak at conferences and user groups about a range of subjects including Drupal, Sculpin and Git. If
<h1>Talks</h1> you would like to me to speak at your group or conference, please <a href="/contact/">get in touch</a>.</p>
<p>I regularly speak at conferences and user groups about a range of subjects including Drupal, Sculpin and Git. If <p>There is also information about events that Ive attended and spoken at on my
you would like to me to speak at your group or conference, please <a href="/contact/">get in touch</a>.</p> <a href="{{ site.lanyrd.url }}">Lanyrd</a> and <a href="{{ site.joindin.url }}">Joind.in</a> profiles.</p>
<p>There is also information about events that Ive attended and spoken at on my {% set now = 'today'|date('U') %}
<a href="{{ site.lanyrd.url }}">Lanyrd</a> and <a href="{{ site.joindin.url }}">Joind.in</a> profiles.</p> {% set talks = data.talks %}
{% set now = 'today'|date('U') %} {% set found, year, new_year = false, '0', false %}
{% set talks = data.talks %}
{% set found, year, new_year = false, '0', false %} {% for talk in talks if talk.date >= now %}
{% for talk in talks if talk.date >= now %}
{% if loop.first %} {% if loop.first %}
<h2>Upcoming Talks</h2> <h2>Upcoming Talks</h2>
{% endif %} {% endif %}
@ -57,15 +54,15 @@ use: [talks]
{% endif %} {% endif %}
{% include 'talk_listing_item' %} {% include 'talk_listing_item' %}
{% endfor %} {% endfor %}
{% if found %} {% if found %}
</ul> </ul>
{% endif %} {% endif %}
{% set found, year, new_year = false, '0', false %} {% set found, year, new_year = false, '0', false %}
{% for talk in talks if talk.date < now %} {% for talk in talks if talk.date < now %}
{% if loop.first %} {% if loop.first %}
<h2>Previous Talks</h2> <h2>Previous Talks</h2>
{% endif %} {% endif %}
@ -87,9 +84,8 @@ use: [talks]
{% endif %} {% endif %}
{% include 'talk_listing_item' %} {% include 'talk_listing_item' %}
{% endfor %} {% endfor %}
{% if found %} {% if found %}
</ul> </ul>
{% endif %} {% endif %}
{% endblock %}

View file

@ -79,14 +79,11 @@ testimonials:
<p>Everything we have thrown at Oliver, he has approached with an open and flexible mind that has allowed him <p>Everything we have thrown at Oliver, he has approached with an open and flexible mind that has allowed him
to work on a wide range of projects and features for Drupal products.</p> to work on a wide range of projects and features for Drupal products.</p>
--- ---
{% block body_classes 'page--testimonials' %} <h1>Testimonials</h1>
<p>Here are some examples of the nice things that clients and former colleagues have said.</p>
<p>You can view more recommendations on my <a href="{{ site.linkedin.url }}">LinkedIn profile</a>.</p>
{% block content %} {% for testimonial in page.testimonials|reverse|slice(0,5) %}
<h1>Testimonials</h1>
<p>Here are some examples of the nice things that clients and former colleagues have said.</p>
<p>You can view more recommendations on my <a href="{{ site.linkedin.url }}">LinkedIn profile</a>.</p>
{% for testimonial in page.testimonials|reverse|slice(0,5) %}
<article class="testimonial"> <article class="testimonial">
<h2 class="testimonial__name">{{ testimonial.name }}</h2> <h2 class="testimonial__name">{{ testimonial.name }}</h2>
@ -105,5 +102,4 @@ testimonials:
{{ testimonial.text|raw }} {{ testimonial.text|raw }}
</article> </article>
{% endfor %} {% endfor %}
{% endblock %}

View file

@ -29,7 +29,7 @@
<link rel="icon" href="{{ site.gravatar.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}"> <link rel="icon" href="{{ site.gravatar.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}">
{% endfor %} {% endfor %}
</head> </head>
<body class="{% block body_classes %}{% endblock %}"> <body>
<nav class="navbar navbar-inverse navbar-fixed-top"> <nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">

View file

@ -1,6 +1,4 @@
{% extends 'default' %} {% extends 'default.html.twig' %}
{% block body_classes 'page--blog page--blog__post' %}
{% block content_wrapper %} {% block content_wrapper %}
<main class="col-md-9"> <main class="col-md-9">

View file

@ -1,7 +1,5 @@
{% extends 'default.html.twig' %} {% extends 'default.html.twig' %}
{% block body_classes 'page--talks page--talks__talk' %}
{% block content_wrapper %} {% block content_wrapper %}
<main class="col-md-9"> <main class="col-md-9">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>