Add body classes for other pages

This commit is contained in:
Oliver Davies 2015-06-18 17:50:37 +01:00
parent 17d9e6a2cb
commit daf1241237
6 changed files with 24 additions and 7 deletions

View file

@ -1,13 +1,15 @@
--- ---
layout: default layout: default
title: Blog title: Blog
body_class: page--blog
generator: pagination generator: pagination
pagination: pagination:
max_per_page: 5 max_per_page: 5
use: use:
- posts - posts
--- ---
{% block body_classes %}page--blog page--blog__list{% endblock %}
{% block content %}
<h1>Blog</h1> <h1>Blog</h1>
{% for post in page.pagination.items %} {% for post in page.pagination.items %}
@ -30,3 +32,4 @@ use:
{% endif %} {% endif %}
</nav> </nav>
{% endif %} {% endif %}
{% endblock %}

View file

@ -1,10 +1,12 @@
--- ---
layout: default layout: default
title: Contact title: Contact
body_class: page--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{% endblock %}
{% block content %}
# Contact # Contact
The best ways to contact me is via <a href="mailto:{{ site.email }}?subject=Contact%20Oliver%20Davies">email</a> and <a href="{{ site.twitter.url }}">Twitter</a>. The best ways to contact me is via <a href="mailto:{{ site.email }}?subject=Contact%20Oliver%20Davies">email</a> and <a href="{{ site.twitter.url }}">Twitter</a>.
@ -21,3 +23,4 @@ Here are the best places to contact me online:
* <a href="{{ site.linkedin.url }}">LinkedIn</a> * <a href="{{ site.linkedin.url }}">LinkedIn</a>
I also have profiles on <a href="{{ site.lanyrd.url }}">Lanyrd</a> and <a href="{{ site.joindin.url }}">Joind.in</a>. I also have profiles on <a href="{{ site.lanyrd.url }}">Lanyrd</a> and <a href="{{ site.joindin.url }}">Joind.in</a>.
{% endblock %}

View file

@ -1,6 +1,5 @@
--- ---
layout: default layout: default
body_class: page--about
meta: meta:
description: 'The personal website and blog of Oliver Davies, a Drupal Developer and System Administrator from Wales, UK.' description: 'The personal website and blog of Oliver Davies, a Drupal Developer and System Administrator from Wales, UK.'
og: og:
@ -13,6 +12,9 @@ meta:
height: 327 height: 327
type: image/jpg type: image/jpg
--- ---
{% block body_classes %}page--about{% endblock %}
{% block content %}
# About # About
<img src="{{ site.gravatar.url }}?s=85" alt="Picture of Oliver" class="img-circle"> <img src="{{ site.gravatar.url }}?s=85" alt="Picture of Oliver" class="img-circle">
@ -26,3 +28,4 @@ I'm contributor to <a href="http://cgit.drupalcode.org/drupal/log/?h=7.x&qt=grep
I'm also the Git Documentation Maintainer 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 for the Drupal project, and a provisional member of the [Drupal Security team](https://www.drupal.org/security-team).
You can follow me on <a href="{{ site.twitter.url }}">Twitter</a> and <a href="{{ site.linkedin.url }}">LinkedIn</a>, and you can view my code on <a href="{{ site.drupalorg.url }}/track/code">Drupal.org</a> and <a href="{{ site.github.url }}?tab=activity">GitHub</a>. You can follow me on <a href="{{ site.twitter.url }}">Twitter</a> and <a href="{{ site.linkedin.url }}">LinkedIn</a>, and you can view my code on <a href="{{ site.drupalorg.url }}/track/code">Drupal.org</a> and <a href="{{ site.github.url }}?tab=activity">GitHub</a>.
{% endblock %}

View file

@ -1,10 +1,12 @@
--- ---
layout: default layout: default
title: Services title: Services
body_class: page--services
meta: meta:
description: 'Information about freelance services that Oliver offers.' description: 'Information about freelance services that Oliver offers.'
--- ---
{% block body_classes %}page--services{% endblock %}
{% block content %}
# Services # Services
## Drupal ## Drupal
@ -26,4 +28,4 @@ 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

@ -1,12 +1,14 @@
--- ---
layout: default layout: default
title: Talks title: Talks
body_class: page--talks
meta: meta:
description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups' description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups'
use: use:
- talks - talks
--- ---
{% block body_classes %}page--talks{% endblock %}
{% block content %}
<h1>Talks</h1> <h1>Talks</h1>
<p>I regularly speak at conferences and user groups about a range of subjects relating to Drupal, PHP and web development. If 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 relating to Drupal, PHP and web development. If you would like to me to speak at your group or conference, please <a href="/contact/">get in touch</a>.</p>
@ -41,3 +43,4 @@ use:
{% if found %} {% if found %}
</dl> </dl>
{% endif %} {% endif %}
{% endblock %}

View file

@ -1,10 +1,12 @@
--- ---
layout: default layout: default
title: Work title: Work
body_class: page--work
meta: meta:
description: "Information about Oliver's current work." description: "Information about Oliver's current work."
--- ---
{% block body_classes %}page--work{% endblock %}
{% block content %}
# Work # Work
## Drupal Association ## Drupal Association
@ -30,3 +32,4 @@ Some of the tasks that I've worked on so far:
In my spare time, I provide remote freelance consultancy services for Drupal websites and Linux servers. In my spare time, I provide remote freelance consultancy services for Drupal websites and Linux servers.
Services include Drupal site architecture, builds, upgrades and maintenance, custom module development and theming, Linux server administration and configuration management using [Puppet](http://puppetlabs.com) and [Ansible](http://www.ansible.com), and [Jenkins](http://jenkins-ci.org) continuous integration setup and configuration. Services include Drupal site architecture, builds, upgrades and maintenance, custom module development and theming, Linux server administration and configuration management using [Puppet](http://puppetlabs.com) and [Ansible](http://www.ansible.com), and [Jenkins](http://jenkins-ci.org) continuous integration setup and configuration.
{% endblock %}