This commit is contained in:
Oliver Davies 2015-04-19 21:19:02 +01:00
commit 71fe366450
112 changed files with 701 additions and 600 deletions

View file

View file

@ -1,5 +1,5 @@
opdavies.github.io
==================
oliverdavies.co.uk-source
=========================
The source code for [my personal website and blog](http://www.oliverdavies.co.uk), built with [Sculpin](http://sculpin.io).

View file

@ -6,9 +6,6 @@ sculpin:
- '**/config.rb'
- '**/Gemfile*'
sculpin_content_types:
clients:
permalink: clients/:slug_title/
enabled: false
posts:
permalink: blog/:slug_title/
taxonomies:

View file

@ -1,4 +1,14 @@
title: Oliver Davies
subtitle: Drupal & Linux Specialist
description: Personal website and blog of Oliver Davies, a Drupal Developer and Systems Administrator based in the UK.
description: Oliver Davies, Drupal Developer
url: http://localhost:8000
author: Oliver Davies
email: oliver@oliverdavies.co.uk
twitter: http://twitter.com/opdavies
twitter_name: opdavies
linkedin: http://uk.linkedin.com/in/opdavies
drupalorg: https://www.drupal.org/user/381388
drupalorg_nice: https://www.drupal.org/u/opdavies
github: http://github.com/opdavies
irc: opdavies

View file

@ -1,24 +0,0 @@
#!/bin/bash
set -x
ENV='prod'
REPO='git@github.com:opdavies/opdavies.github.io.git'
BRANCH='master'
BUILD_DIR='./gh-pages-deployment/'
rm -rf ./output_${ENV}
sculpin generate --env=${ENV}
LOG=$(git log --oneline -n 1)
rm -rf ${BUILD_DIR}
git clone ${REPO} ${BUILD_DIR}
pushd ${BUILD_DIR}
git checkout -B ${BRANCH}
rsync --quiet --archive --filter="P .git*" --delete ../output_${ENV}/ ./
git add -A .
git commit -m "${LOG}"
git push origin ${BRANCH} --force
popd

View file

@ -1,14 +0,0 @@
---
layout: default
title: Page Not Found
permalink: /404.html
---
{% block content_wrapper %}
<div class="col-md-12">
{% block content %}
<h1>Page Not Found</h1>
{% endblock %}
</div> {# .col.md-12 #}
{% endblock %}
{% block sidebar %}{% endblock %}

8
source/404.md Normal file
View file

@ -0,0 +1,8 @@
---
layout: default
title: Page Not Found
permalink: /404.html
---
# Page Not Found
Please [contact me](/contact) and let me know.

View file

@ -1 +0,0 @@
www.oliverdavies.co.uk

View file

@ -2,8 +2,6 @@
title:
description:
nav: blog
use:
- posts
tags:
-
---

View file

@ -1,14 +1,12 @@
---
title: Style Drupal 6's Taxonomy Lists with PHP, CSS and jQuery
nav: blog
use:
- posts
slug: style-drupal-6s-taxonomy-lists-php-css-and-jquery
tags:
- Taxonomy
- Drupal Planet
- Drupal 6
- Drupal Theming
- drupal-6
- drupal-planet
- drupal-theming
- taxonomy
---
Whilst developing this, and other Drupal websites for clients, I decided that I wanted to categorise content using the taxonomy system. However, I wasn't happy with the way that Drupal displayed the terms lists by default, and I started comparing this to other websites that I look at.

View file

@ -1,15 +1,14 @@
---
title: Using ImageCache and ImageCrop for my Portfolio
nav: blog
use:
- posts
slug: using-imagecache-and-imagecrop-my-portfolio
tags:
- Drupal 6
- CCK
- ImageCache
- ImageField
- ImageCrop
- drupal
- drupal-6
- cck
- imagecache
- imagecrop
- imagefield
---
Whilst working on my own portfolio/testimonial website, I decided to have a portfolio page displaying the name of each site and a thumbnail image. For this Blog post, I'll be using a site called [Popcorn Strips](http://popcornstrips.com) which I built for a friend earlier this year as an example.

View file

@ -1,14 +1,12 @@
---
title: Conditional Email Addresses in a Webform
nav: blog
use:
- posts
slug: conditional-email-addresses-webform
tags:
- Drupal Planet
- Drupal 6
- Conditional Email
- Webform
- drupal-planet
- drupal-6
- conditional-email
- webform
---
I created a new Webform to serve as a simple Contact form, but left the main configuration until after I created the form components. I added 'Name', 'Email', 'Subject' and 'Message' fields, as well as a 'Category' select list. Below 'Options', I entered each of my desired options in the following format:

View file

@ -1,15 +1,13 @@
---
title: Quickly Create Zen Subthemes Using Zenophile
nav: blog
use:
- posts
tags:
- Drupal Planet
- Drupal 6
- Drupal Modules
- Drupal Theming
- Zen
- Zenophile
- drupal-planet
- drupal-6
- drupal-modules
- drupal-theming
- zen
- zenophile
---
If you use the [Zen](http://drupal.org/project/zen) theme, then you should also be using the [Zenophile](http://drupal.org/project/zenophile) module!

View file

@ -1,14 +1,13 @@
---
title: Create a Slideshow of Multiple Images Using Fancy Slide
nav: blog
use:
- posts
slug: create-slideshow-multiple-images-using-fancy-slide
tags:
- Drupal Planet
- Drupal 6
- Fancy Slide
- Slideshow
- drupal-planet
- drupal
- drupal-6
- fancy-slide
- slideshow
---
Whilst updating my About page, I thought about creating a slideshow of several images instead of just the one static image. When I looking on Drupal.org, the only slideshow modules were to create slideshows of images that were attached to different nodes - not multiple images attached to one node. Then, I found the [Fancy Slide](http://drupal.org/project/fancy_slide) module. It's a jQuery Slideshow module with features that include integration with the [CCK](http://drupal.org/project/cck), [ImageCache](http://drupal.org/project/imagecache) and [Nodequeue](http://drupal.org/project/nodequeue) modules.

View file

@ -1,16 +1,15 @@
---
title: Quickly Import Multiples Images Using the Imagefield_Import Module
nav: blog
use:
- posts
slug: quickly-import-multiples-images-using-imagefieldimport-module
tags:
- Drupal Planet
- ImageField Import
- Drupal 6
- Photo Gallery
- CCK
- ImageField
- drupal-planet
- imagefield-import
- drupal
- drupal-6
- photo-gallery
- cck
- imagefield
---
**Thanks to Bob at [Mustardseed Media](http://mustardseedmedia.com) for [tweeting](http://twitter.com/mustardseedinc/status/14713096905) about this module. It's undoubtedly saved me hours of work today alone!**

View file

@ -1,13 +1,11 @@
---
title: Improve JPG Quality in Imagecache and ImageAPI
nav: blog
use:
- posts
slug: improve-jpg-quality-imagecache-and-imageapi
tags:
- Drupal Planet
- Drupal 6
- ImageCache
- drupal-planet
- drupal-6
- imagecache
---
Whilst uploading images for my Projects and Testimonials sections, I noticed that the Imagecache-scaled images weren't as high a quality the originals on my Mac. I did some searching online and found out that, by default, Drupal resamples uploaded jpgs to 75% of their original quality.

View file

@ -1,14 +1,13 @@
---
title: Create a Block of Social Media Icons using CCK, Views and Nodequeue
nav: blog
use:
- posts
slug: create-block-social-media-icons-using-cck-views-and-nodequeue
tags:
- Drupal Planet
- Drupal 6
- Views
- Nodequeue
- drupal-planet
- drupal-6
- drupal
- views
- nodequeue
- oliverdavies.co.uk
---
I recently decided that I wanted to have a block displayed in a sidebar on my site containing icons and links to my social media profiles - [Twitter](http://twitter.com/opdavies), [Facebook](http://facebook.com/opdavies) etc. I tried the [Follow](http://drupal.org/project/follow) module, but it lacked the option to add extra networks such my [Drupal.org](http://drupal.org/user/381388) account, and my [RSS feed](http://oliverdavies.co.uk/rss.xml). I started to create my own version, and then found [this Blog post](http://www.hankpalan.com/blog/drupal-themes/add-your-social-connections-drupal-icons) by Hank Palan.

View file

@ -1,13 +1,11 @@
---
title: 10 Useful Drupal 6 Modules
nav: blog
use:
- posts
tags:
- Drupal Planet
- Drupal 6
- Modules
- Drupal Modules
- drupal-planet
- drupal-6
- drupal
- drupal-modules
---
Aside from the obvious candidates such as Views, CCK etc, here are a list of 10 contributed modules that I currently use on each Drupal project.

View file

@ -1,20 +1,18 @@
---
title: Create a Flickr Photo Gallery Using Feeds, CCK and Views
nav: blog
use:
- posts
slug: create-flickr-photo-gallery-using-feeds-cck-and-views
tags:
- Drupal Planet
- Drupal 6
- Photo Gallery
- Views
- CCK
- ImageCache
- Feeds
- FileField
- Flickr
- ImageField
- drupal-planet
- drupal-6
- photo-gallery
- views
- cck
- imagecache
- feeds
- filefield
- flickr
- imagefield
---
In this tutorial, I'll show you how to create a photo gallery which uses photos imported from [Flickr](http://www.flickr.com).

View file

@ -1,16 +1,15 @@
---
title: Change the Content Type of Multiple Nodes Using SQL
nav: blog
use:
- posts
slug: change-content-type-multiple-nodes-using-sql
tags:
- Drupal Planet
- Drupal 6
- SQL
- Sequel Pro
- Database
- Content Types
- drupal-planet
- drupal-6
- drupal
- sql
- sequel-pro
- database
- content-types
---
In this post, I will be changing values within my Drupal 6 site's database to quickly change the content type of multiple nodes. I will be using a test development site with the core Blog module installed, and converting Blog posts to a custom content type called 'News article'.

View file

@ -1,15 +1,13 @@
---
title: Create Virtual Hosts on Mac OS X Using VirtualHostX
nav: blog
use:
- posts
slug: create-virtual-hosts-mac-os-x-using-virtualhostx
tags:
- Drupal Planet
- Drupal 6
- MAMP
- Virtual Hosts
- VirtualHostX
- drupal-planet
- drupal-6
- mamp
- virtual-hosts
- virtualhostx
---
This isn't a Drupal related topic per se, but it is a walk-through of one of the applications that I use whilst doing Drupal development work. I assume, like most Mac OS X users, I use [MAMP](http://www.mamp.info/en/index.html) to run Apache, MySQL and PHP locally whilst developing. I also use virtual hosts in Apache to create local .dev domains which are as close as possible to the actual live domains. For example, if I was developing a site called mysite.com, my local development version would be mysite.dev.

View file

@ -1,16 +1,14 @@
---
title: Add a Taxonomy Term to Multiple Nodes Using SQL
nav: blog
use:
- posts
slug: add-taxonomy-term-multiple-nodes-using-sql
tags:
- Taxonomy
- Drupal Planet
- Drupal 6
- SQL
- Sequel Pro
- Database
- taxonomy
- drupal-planet
- drupal-6
- sql
- sequal-pro
- database
---
**Update:** This can also be done using the [Views Bulk Operations](http://drupal.org/project/views_bulk_operations) module.

View file

@ -1,15 +1,12 @@
---
title: Review of the Teleport Module
nav: blog
use:
- posts
slug: review-teleport-module
tags:
- Drupal Planet
- Drupal 6
- Modules
- Drupal Modules
- Teleport
- drupal-planet
- drupal-6
- drupal-modules
- teleport
---
As a heavily-reliant [Quicksilver](http://en.wikipedia.org/wiki/Quicksilver_%28software%29) user on my MacBook Pro, I was glad when I found the [Teleport](http://drupal.org/project/teleport) module for [Drupal](http://drupal.org) *(due to Elliott Rothman's [tweet](http://twitter.com/elliotttt/status/18044234238))*.

View file

@ -1,16 +1,13 @@
---
title: Review of the Admin:hover Module
nav: blog
use:
- posts
slug: review-adminhover-module
tags:
- Drupal Planet
- Drupal 6
- Modules
- Drupal Modules
- Admin:hover
- Administration
- drupal-planet
- drupal-6
- drupal-modules
- admin:hover
- administration
---
Sorry for the lack of Blog posts lately, but [my new job](http://horseandcountry.tv) that I started a few weeks ago has certainly been keeping me busy! I've got a few more posts that I'm preparing content for, and I'll hopefully be back into my weekly-post routine before too long!

View file

@ -1,19 +1,17 @@
---
title: Create a Better Photo Gallery in Drupal - Part 1
nav: blog
use:
- posts
slug: create-better-photo-gallery-drupal-part-1
tags:
- Drupal Planet
- Drupal 6
- Photo Gallery
- SQL
- Views
- Sequel Pro
- CCK
- Views Attach
- Drupal
- drupal-planet
- drupal-6
- photo-gallery
- sql
- views
- sequel-pro
- cck
- views-attach
- drupal
---
Recently, I converted a client's static HTML website, along with their Coppermine Photo Gallery, into a Drupal-powered website.

View file

@ -1,16 +1,13 @@
---
title: Create a Better Photo Gallery in Drupal - Part 2
nav: blog
use:
- posts
slug: create-better-photo-gallery-drupal-part-2
tags:
- Drupal Planet
- Drupal 6
- Photo Gallery
- SQL
- Sequel Pro
- UNIX Timestamp
- drupal-planet
- drupal-6
- photo-gallery
- sql
- sequel-pro
---
At the end of my last post, I'd finished creating the first part of the new photo gallery, but I wanted to change the dates of the published photos to reflect the ones on the client's original website.

View file

@ -1,15 +1,13 @@
---
title: Review of the Image Caption Module
nav: blog
use:
- posts
slug: review-image-caption-module
tags:
- Drupal Planet
- Drupal 6
- Modules
- ImageField
- Image Caption
- drupal-planet
- drupal
- drupal-6
- imagefield
- image-caption
---
Up until as recent as last week, whenever I added an image into one of my Blog posts, I was manually adding the caption below each image and styling it accordingly. That was until I installed the [Image Caption](http://drupal.org/project/image_caption) module.

View file

@ -1,13 +1,12 @@
---
title: The Inaugural Meetup for the South Wales Drupal User Group
nav: blog
use:
- posts
slug: south-wales-drupal-user-group
tags:
- Drupal
- Drupal Planet
- SWDUG
- drupal
- drupal-planet
- swdug
- meetups
---
If you do Drupal, and you're in the area, come and join us for the first South Wales Drupal User Group Meetup!

View file

@ -1,14 +1,12 @@
---
title: How to Create and Apply Patches
nav: blog
use:
- posts
slug: create-and-apply-patches
tags:
- Drupal Planet
- Drupal 6
- Modules
- Patch
- drupal-planet
- drupal-6
- modules
- patches
---
Earlier this year, I posted a solution to [an issue](http://drupal.org/node/753898) on the Drupal.org issue queue. Originally, I just posted the code back onto the issue, but have now created a patch that can easily be applied to any Drupal 6 installation. Here is a run-through of the process of creating and applying a patch. In this case, I made changes to the `user_pass_validate()` function that's found within `modules/user/user.pages.inc`.

View file

@ -1,9 +1,9 @@
---
title: Create a Better Photo Gallery in Drupal - Part 3
nav: blog
use:
- posts
slug: create-better-photo-gallery-drupal-part-3
tags:
- drupal
---
The next part of the new gallery that I want to implement is to group the galleries by their respective categories. The first step is to edit my original photo_gallery view and add an additional display.

View file

@ -1,9 +1,9 @@
---
title: Create a Better Photo Gallery in Drupal - Part 2.1
nav: blog
use:
- posts
slug: create-better-photo-gallery-drupal-part-21
tags:
- drupal
---
Today, I realised that I hadn't published the code that I used to create the total figures of galleries and photos at the top of the gallery (I said at the end of [Part 2](/blog/create-better-photo-gallery-drupal-part-2 "Create a Better Photo Gallery in Drupal - Part 2") that I'd include it in [Part 3](/blog/create-better-photo-gallery-drupal-part-3 "Create a Better Photo Gallery in Drupal - Part 3"), but I forgot). So, here it is:

View file

@ -1,16 +1,14 @@
---
title: Use Regular Expressions to Search and Replace in Coda or TextMate
nav: blog
use:
- posts
slug: use-regular-expressions-search-and-replace-coda-or-textmate
tags:
- Taxonomy
- Sequel Pro
- Database
- Coda
- Regular Expression
- TextMate
- taxonomy
- sequel-pro
- database
- coda
- regular-expression
- textmate
---
As in [the original post](/blog/add-taxonomy-term-multiple-nodes-using-sql "Quickly adding a taxonomy term to multiple nodes using SQL"), I'd generated a list of node ID values, and needed to add structure the SQL update statment formatted in a certain way. However, I changed my inital query slightly to out put the same nid value twice.

View file

@ -1,13 +1,11 @@
---
title: Easily Embed TypeKit Fonts into your Drupal Website
nav: blog
use:
- posts
slug: easily-embed-typekit-fonts-your-drupal-website
tags:
- Drupal Planet
- Drupal 6
- TypeKit
- drupal-planet
- drupal-6
- typekit
---
To begin with, you will need to [register for a TypeKit account](https://typekit.com/plans) - there is a free version if you just want to try it out.

View file

@ -1,9 +1,9 @@
---
title: Display the Number of Facebook fans in PHP
nav: blog
use:
- posts
slug: display-number-facebook-fans-php
tags:
- php
---
Replace the $page_id value with your Page ID number (unless you want to show the number of fans for this site).You can find your Page ID by logging into your Facebook account, going to 'Adverts and Pages', clicking 'Edit page', and looking at the URL.

View file

@ -1,11 +1,9 @@
---
title: Proctor & Stevenson
nav: blog
use:
- posts
slug: proctor-stevenson
tags:
- Personal
- personal
---
2 weeks ago, I handed in my notice of resignation to [Horse & Country TV](http://horseandcountry.tv)because I've been offered a new role at [Proctor & Stevenson](http://proctors.co.uk) - a Marketing Design and Communications agency in Bristol.

View file

@ -1,9 +1,10 @@
---
title: Proctors Hosting the next Drupal Meetup
nav: blog
use:
- posts
slug: proctors-hosting-next-drupal-meetup
tags:
- meetups
- drupal-bristol
---
My employer, [Proctor & Stevenson](http://www.proctors.co.uk), are going to be hosting the next Bristol & South West Drupal meetup on the 25th May at our offices.

View file

@ -1,12 +1,9 @@
---
title: Imagefield Import Archive
nav: blog
use:
- posts
tags:
- Drupal Planet
- ImageField Import
- Module Development
- drupal-planet
- imagefield-import
---
I've finally uploaded my first module onto Drupal.org!

View file

@ -1,17 +1,15 @@
---
title: Create Multigroups in Drupal 7 using Field Collections
nav: blog
use:
- posts
slug: create-multigroups-drupal-7-using-field-collections
tags:
- Drupal 7
- Drupal Planet
- CCK
- Fields
- Field Collection
- Entity API
- Multigroup
- drupal-7
- drupal-planet
- cck
- fields
- field-collection
- entity-api
- multigroup
---
One of my favourite things lately in Drupal 6 has been CCK 3, and more specifically, the Content Multigroups sub-module. Basically this allows you to create a fieldset of various CCK fields, and then repeat that multiple times. For example, I use it on this site whist creating invoices for clients. I have a fieldset called 'Line Item', containing 'Description', 'Quantity' and 'Price' fields. With a standard fieldset, I could only have one instance of each field - however, using a multigroup, I can create multiple groups of line items which I then use within the invoice.

View file

@ -1,13 +1,11 @@
---
title: How to Install and Configure Subversion (SVN) Server on Ubuntu
nav: blog
use:
- posts
slug: install-and-configure-subversion-svn-server-ubuntu
tags:
- SVN
- Ubuntu
- Version control
- svn
- ubuntu
- version-control
---
Recently, I needed to set up a Subversion (SVN) server on a Ubuntu Linux server. This post is going to outline the steps taken, and the commands used, to install and configure the service.

View file

@ -1,8 +1,6 @@
---
title: Site Upgraded to Drupal 7
nav: blog
use:
- posts
slug: site-upgraded-drupal-7
---
As the vast majority of the Drupal websites that I currently work on are built on Drupal 7, I thought that it was time that I upgraded this site. Following the [core upgrade process](http://drupal.org/node/570162) and the [CCK migration process](http://drupal.org/node/1144136), everything was upgraded smoothly without any issues.

View file

@ -1,12 +1,10 @@
---
title: How to use Authorized Keys to Create a Passwordless SSH Connection
nav: blog
use:
- posts
slug: use-authorized-keys-create-passwordless-ssh-connection
tags:
- Linux
- SSH
- linux
- ssh
---
If you're accessing Linux servers or automating tasks between servers, rather than having to enter your user password every time, you can also use SSH public key authentication. This is a simple process that involves creating a local key and storing it within the *authorized_keys* file on the remote server.

View file

@ -1,16 +1,14 @@
---
title: Create an Omega Subtheme with LESS CSS Preprocessor using Omega Tools and Drush
nav: blog
use:
- posts
slug: create-omega-subtheme-less-css-preprocessor-using-omega-tools-and-drush
tags:
- Drupal 7
- Omega
- Theming
- LESS
- Drupal Planet
- Drupal
- drupal-7
- omega
- theming
- less
- drupal-planet
- drupal
---
In this tutorial I'll be showing how to create an [Omega](http://drupal.org/project/omega) subtheme using the [Omega Tools](http://drupal.org/project/omega_tools) module, and have it working with the [LESS CSS preprocessor](http://lesscss.org).

View file

@ -1,13 +1,11 @@
---
title: Installing Nagios on CentOS
nav: blog
use:
- posts
slug: installing-nagios-centos
tags:
- Nagios
- CentOS
- Linux
- nagios
- centos
- linux
---
A great post details that details the steps needed to install [Nagios](http://nagios.org) - a popular open source system and network monitoring software application - on CentOS.

View file

@ -1,13 +1,12 @@
---
title: Adding Custom Theme Templates in Drupal 7
nav: blog
use:
- posts
description: >
Today, I had a situation where I was displaying a list of teasers for news article nodes. The article content type had several different fields assigned to it, including main and thumbnail images. In this case, I wanted to have different output and fields displayed when a teaser was displayed compared to when a complete node was displayed.
slug: adding-custom-theme-templates-drupal-7
tags:
- Drupal Planet
- drupal-planet
- drupal
---
Today, I had a situation where I was displaying a list of teasers for news article nodes. The article content type had several different fields assigned to it, including main and thumbnail images. In this case, I wanted to have different output and fields displayed when a teaser was displayed compared to when a complete node was displayed.

View file

@ -1,13 +1,11 @@
---
title: Prevent Apache from displaying text files within a web browser
nav: blog
use:
- posts
slug: prevent-apache-displaying-text-files-within-web-browser
tags:
- Apache
- Code
- Drupal
- apache
- code
- drupal
---
When you download [Drupal](http://drupal.org), there are several text files that are placed in the root of your installation. You don't want or need these to be visible to anyone attempting to view them in a browser - especially CHANGELOG.txt as that includes the exact version of Drupal you are running and could therefore have security implications. Rather than delete these files or change the file permissions manually for each file, I can add the following lines into my VirtualHost configuration:

View file

@ -1,12 +1,10 @@
---
title: Checkout a specific revision from SVN from the command line
nav: blog
use:
- posts
slug: checkout-specific-revision-svn-command-line
tags:
- SVN
- Version control
- svn
- version-control
---
If you're checking out the repository for the first time:

View file

@ -1,17 +1,15 @@
---
title: How to add a date popup calendar onto a custom form
nav: blog
use:
- posts
slug: add-date-popup-calendar-custom-form
tags:
- Forms
- Form API
- Date
- Calendar
- Drupal 7
- Drupal Planet
- Drupal
- forms
- form-api
- date
- calendar
- drupal-7
- drupal-planet
- drupal
---
First, I need to download the [Date](http://drupal.org/project/date "Date module on Drupal.org") module, and make my module dependent on date_popup by adding the following line into my module's .info file.

View file

@ -1,14 +1,12 @@
---
title: Forward one domain to another using mod_rewrite and .htaccess
nav: blog
use:
- posts
slug: forward-one-domain-another-using-modrewrite-and-htaccess
tags:
- .htaccess
- Code
- Drupal
- Apache
- code
- drupal
- apache
- mod_rewrite
---
Within the mod_rewrite section of your .htaccess file, add the following lines:

View file

@ -1,14 +1,12 @@
---
title: Writing a .info file for a Drupal 7 theme
nav: blog
use:
- posts
slug: writing-info-file-drupal-7-theme
tags:
- Theming
- Drupal Theming
- Drupal
- Code
- theming
- drupal-theming
- drupal
- code
---
~~~
name = My Theme

View file

@ -1,15 +1,13 @@
---
title: Dividing Drupal's process and preprocess functions into separate files
nav: blog
use:
- posts
description: If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code. Following the example of the Omega theme, I've started separating my process and preprocess functions into their own files.
slug: dividing-drupals-process-and-preprocess-functions-separate-files
tags:
- Drupal
- Code
- Theming
- Preprocessing
- drupal
- code
- theming
- preprocessing
---
If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code. Following the example of the [Omega theme](http://drupal.org/project/omega "The Omega theme on Drupal.org"), I've started separating my process and preprocess functions into their own files. For example, mytheme_preprocess_node can be placed within a preprocess/node.inc file, and mytheme_process_page can be placed within process/page.inc.

View file

@ -1,16 +1,14 @@
---
title: My new Drupal modules
nav: blog
use:
- posts
description: After a busy few days, I've released two new contrib Drupal modules.
tags:
- Drupal
- Drupal Modules
- Drupal 6
- Drupal 7
- Drupal Planet
- Accessibility
- drupal
- drupal-modules
- drupal-6
- drupal-7
- drupal-planet
- accessibility
---
After a busy few days, I've released two new contrib Drupal modules:

View file

@ -1,14 +1,12 @@
---
title: Install and Configure the Nomensa Accessible Media Player in Drupal
nav: blog
use:
- posts
slug: install-nomensa-media-player-drupal
tags:
- Accessibility
- Drupal
- Drupal Planet
- Nomensa
- accessibility
- drupal
- drupal-planet
- nomensa
---
*The official documentation for this module is now located at <https://www.drupal.org/node/2383447>. This post was accurate at the time of writing, whereas the documentation page will be kept up to date with any future changes.*

View file

@ -1,16 +1,14 @@
---
title: Writing an Article for Linux Journal
nav: blog
use:
- posts
description: I'm absolutely delighted to announce that I'm going to be writing an article for Linux Journal magazine's upcoming Drupal special.
slug: writing-article-linux-journal
tags:
- Drupal
- Distributions
- Installation Profiles
- Writing
- Linux Journal
- drupal
- distributions
- installation-profiles
- writing
- linux-journal
---
I'm absolutely delighted to announce that I'm going to be writing an article for [Linux Journal](http://www.linuxjournal.com) magazine's upcoming Drupal special. The article is going to be entitled "Speeding Up Your Drupal Development Using Installation Profiles and Distributions" and will be mentioning existing distributions available on Drupal.org, but mainly focussing on the steps needed to create your own custom distribution. Needless to say, I'm quite excited about it!

View file

@ -1,16 +1,14 @@
---
title: Display a Custom Menu in a Drupal 7 Theme Template File
nav: blog
use:
- posts
description: For reference, this is the code needed to display a menu in a Drupal 7 template file.
slug: display-custom-menu-drupal-7-theme-template-file
tags:
- Drupal
- Drupal 7
- Drupal Planet
- PHP
- ARIA
- drupal
- drupal-7
- drupal-planet
- php
- aria
---
For reference, this is the code needed to display a menu in a Drupal 7 template file, including the navigation ARIA role.

View file

@ -1,10 +1,10 @@
---
title: Reflections on speaking at UnifiedDiff
nav: blog
use:
- posts
description: Yesterday evening I went to and spoke at the <a href="http://www.unifieddiff.co.uk" title="UnifiedDiff">UnifiedDiff meetup</a> in Cardiff, having offered previously to do a presentation providing an introduction to Drupal.
slug: reflections-speaking-unifieddiff
tags:
- talks
---
Yesterday evening I went along and spoke at the [UnifiedDiff meetup](http://www.unifieddiff.co.uk) in Cardiff, having offered previously to do a presentation providing an introduction to Drupal.

View file

@ -1,11 +1,9 @@
---
title: My Sublime Text 2 settings
nav: blog
use:
- posts
description: <a href="http://www.sublimetext.com/2" title="Sublime Text 2">Sublime Text 2</a> has been my text editor of choice for the past few months, and I use it at home, in work, and on any virtual machines that I run. So rather than having to manually re-enter my settings each time, I thought that I'd document them here for future reference.
tags:
- Sublime Text
- sublime-text
---
[Sublime Text 2](http://www.sublimetext.com/2) has been my text editor of choice for the past few months, and I use it at home, in work, and on any virtual machines that I run. So rather than having to manually re-enter my settings each time, I thought that I'd document them here for future reference. These preferences ensure that the code is compliant with [Drupal coding standards](http://drupal.org/coding-standards "Drupal coding standards on Drupal.org") - using two spaces instead of a tab, no trailing whitespace, blank line at the end of a file etc.

View file

@ -1,13 +1,11 @@
---
title: Accessible Bristol site launched
nav: blog
use:
- posts
description: I'm happy to report that the Accessible Bristol was launched this week, on Drupal 7.
tags:
- Accessibility
- Accessible Bristol
- Nomensa
- accessibility
- accessible-bristol
- nomensa
---
I'm happy to report that the [Accessible Bristol](http://www.accessiblebristol.org.uk) website was launched this week, on Drupal 7. The site's been developed over the past few months, and uses the [User Relationships](http://drupal.org/project/user_relationships) and [Privatemsg](http://drupal.org/project/privatemsg) modules to provide a community-based platform where people with an interest in accessibility can register and network with each other.

View file

@ -1,13 +1,11 @@
---
title: Open Sublime Text 2 from the Mac OS X Command Line
nav: blog
use:
- posts
slug: open-sublime-text-2-mac-os-x-command-line
tags:
- Sublime Text
- Mac OS X
- Terminal
- sublime-text
- mac-os-x
- terminal
---
Paste the following code into the Mac OS X Terminal, assuming that you've installed Sublime Text 2 into the /Applications folder.

View file

@ -1,19 +1,16 @@
---
title: How to use SASS and Compass in Drupal 7 using Sassy
nav: blog
use:
- posts
slug: use-sass-and-compass-drupal-7-using-sassy
tags:
- Compass
- CSS
- Drupal
- Drupal 7
- Drupal Planet
- LESS
- Preprocessing
- SASS
- SCSS
- compass
- css
- drupal
- drupal-7
- drupal-planet
- less
- preprocessing
- sass
---
I've recently started using [SASS](http://sass-lang.com) rather than LESS to do my CSS preprocessing - namely due to its integration with [Compass](http://compass-style.org) and it's built-in CSS3 mixins. There are three modules that provide the ability to use SASS within Drupal:

View file

@ -1,16 +1,14 @@
---
title: Checking if a user is logged into Drupal (the right way)
nav: blog
use:
- posts
description: How to check if a user is logged into Drupal by using the user_is_logged_in() and user_is_anonymous() functions.
slug: checking-if-user-logged-drupal-right-way
tags:
- Drupal
- Drupal 6
- Drupal 7
- Drupal Planet
- PHP
- drupal
- drupal-6
- drupal-7
- drupal-planet
- php
---
I see this regularly when working on Drupal sites when someone wants to check whether the current user is logged in to Drupal (authenticated) or not (anonymous):

View file

@ -1,14 +1,12 @@
---
title: Creating and using custom tokens in Drupal 7
nav: blog
use:
- posts
slug: creating-and-using-custom-tokens-drupal-7
tags:
- Drupal
- Drupal Planet
- Drupal 7
- Tokens
- drupal
- drupal-planet
- drupal-7
- tokens
---
This post outlines the steps required to create your own custom tokens in Drupal.

View file

@ -1,13 +1,11 @@
---
title: The Quickest way to Install Sublime Text 2 in Ubuntu
nav: blog
use:
- posts
slug: quickest-way-install-sublime-text-2-ubuntu
tags:
- Linux
- Sublime Text
- Ubuntu
- linux
- sublime-text
- ubuntu
---
After reading numerous blog posts about how to install [Sublime Text 2](http://www.sublimetext.com/2 "Sublime Text 2") in [Ubuntu](http://www.ubuntu.com/2 "Ubuntu"), this is definitely the quickest way! Just paste the following lines into your Terminal:

View file

@ -1,13 +1,11 @@
---
title: Leaving Nomensa, Joining Precedent
nav: blog
use:
- posts
description: Yesterday was my last day working at Nomensa. Next week, I'll be starting as a Senior Developer at Precedent.
tags:
- Nomensa
- Precedent
- Personal
- nomensa
- precedent
- personal
---
Yesterday was my last day working at [Nomensa](http://www.nomensa.com "Nomensa"). Next week, I'll be starting as a Senior Developer at [Precedent](http://www.precedent.co.uk "Precedent").

View file

@ -1,15 +1,13 @@
---
title: Display Git Branch or Tag Names in your Bash Prompt
nav: blog
use:
- posts
description: Whilst watching Drupalize.me's recent Introduction to Git series, I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt. Here's how to do it.
slug: display-git-branch-or-tag-names-your-bash-prompt
tags:
- Drupal
- Drupal Planet
- Git
- Terminal
- drupal
- drupal-planet
- git
- terminal
---
Whilst watching [Drupalize.me](http://drupalize.me "Drupalize.me")'s recent [Introduction to Git series](http://drupalize.me/series/introduction-git-series "Introduction to Git on Drupalize.me"), I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt.

View file

@ -1,15 +1,13 @@
---
title: Some useful links for using SimpleTest in Drupal
nav: blog
use:
- posts
slug: some-useful-links-using-simpletest-drupal
tags:
- SimpleTest
- TDD
- Test Driven Development
- Drupal Planet
- Drupal
- simpletest
- tdd
- test-driven-development
- drupal-planet
- drupal
---
Here are some useful links that I've found when researching about unit testing in Drupal using SimpleTest:

View file

@ -1,15 +1,13 @@
---
title: Creating Local and Staging sites with Drupal's Domain Module Enabled
nav: blog
use:
- posts
slug: creating-local-and-staging-sites-drupals-domain-module-enabled
tags:
- Drupal
- Drupal Planet
- Databases
- Domain
- Table Prefixing
- drupal
- drupal-planet
- databases
- domain
- table-prefixing
---
The [Domain Access project](https://drupal.org/project/domain "The Domain Access project on Drupal.org") is a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database. The issue is that the domains are stored within the database so these are copied across when the data is migrated between environments, whereas the domains are obviously going to change.

View file

@ -1,12 +1,10 @@
---
title: Going to DrupalCon
nav: blog
use:
- posts
slug: going-drupalcon
tags:
- DrupalCon
- Precedent
- drupalcon
- precedent
---
[Precedent](http://www.precedent.co.uk) are sending myself and two of our other Drupal Developers to [Drupalcon Prague](http://prague2013.drupal.org).

View file

@ -1,15 +1,13 @@
---
title: Create a Zen Sub-theme Using Drush
nav: blog
use:
- posts
description: How to quickly create a Zen sub-theme using Drush.
tags:
- Drupal
- Drupal Planet
- Drush
- Zen
- Theming
- drupal
- drupal-planet
- drush
- zen
- theming
---
First, download the [Zen](https://drupal.org/project/zen "The Zen theme") theme if you haven't already done so.

View file

@ -1,12 +1,10 @@
---
title: Don't Bootstrap Drupal, Use Drush
nav: blog
use:
- posts
tags:
- Drush
- Drupal Planet
- PHP
- drush
- drupal-planet
- php
---
There are times when doing Drupal development when you need to run a custom PHP script, maybe moving data from one field to another, that doesn't warrant the time and effort to create a custom module. In this scenario, it would be quicker to write a .php script and bootstrap Drupal to gain access to functions like `node_load()` and `db_query()`.

View file

@ -1,11 +1,9 @@
---
title: Useful Vagrant Commands
nav: blog
use:
- posts
description: Here are the basic commands that you need to adminster a virtual machine using <a href="http://vagrantup.com" title="The Vagrant Home page">Vagrant</a>.
tags:
- Vagrant
- vagrant
---
[Vagrant](http://www.vagrantup.com "About Vagrant") is a tool for managing virtual machines within [VirtualBox](https://www.virtualbox.org) from the command line. Here are some useful commands to know when using Vagrant:

View file

@ -1,12 +1,10 @@
---
title: Quickly Apply Patches Using Git and curl or wget
nav: blog
use:
- posts
description: How to quickly download a patch file and apply it to a Git repository in one line
tags:
- Git
- Drupal Planet
- git
- drupal-planet
---
Testing a patch file is usually a two-step process. First you download the patch file from the source, and then you run a separate command to apply it.

View file

@ -1,14 +1,12 @@
---
title: Download Different Versions of Drupal with Drush
nav: blog
use:
- posts
description: How to download different versions of Drupal core using Drush.
slug: download-different-versions-drupal-drush
tags:
- Drupal
- Drupal Planet
- Drush
- drupal
- drupal-planet
- drush
---
If you use [Drush](https://raw.github.com/drush-ops/drush/master/README.md "About Drush"), it's likely that you've used the `drush pm-download` (or `drush dl` for short) command to start a new project. This command downloads projects from Drupal.org, but if you don't specify a project or type "drush dl drupal", the command will download the current stable version of Drupal core. Currently, this will be Drupal 7 with that being the current stable version of core at the time of writing this post.

View file

@ -1,10 +1,8 @@
---
title: Some Useful Git Aliases
nav: blog
use:
- posts
tags:
- Git
- git
---
Here are some bash aliases that I use and find helpful for quickly writing Git and Git Flow commands. These should be placed within your `~/.bashrc` or `~/.bash_profile` file:

View file

@ -1,14 +1,12 @@
---
title: DrupalCamp London 2014
nav: blog
use:
- posts
description: It's all booked, I'm going to be attending DrupalCamp London.
tags:
- Drupal
- DrupalCamp London
- Git
- Git Flow
- drupal
- drupalcamp-london
- git
- git-flow
---
It's all booked, I'm going to be attending [DrupalCamp London](http://2014.drupalcamplondon.co.uk).

View file

@ -1,15 +1,13 @@
---
title: DrupalCamp London: What is Git Flow?
nav: blog
use:
- posts
description: Slides and notes from my talk, "What is Git Flow?", that I presented at DrupalCamp London 2014.
slug: what-git-flow
tags:
- Git
- Git Flow
- DrupalCamp London
- Talks
- git
- git-flow
- drupalcamp-london
- talks
tweets: true
---
Here are my slides from my "What is Git Flow?" session at [DrupalCamp London](http://2014.drupalcamplondon.co.uk).

View file

@ -1,11 +1,9 @@
---
title: Drupal Association
nav: blog
use:
- posts
tags:
- Drupal
- Personal
- drupal
- personal
---
Today was my last day working at [Precedent](http://www.precedent.com). Next week, I'll be starting my [new job](https://assoc.drupal.org/node/18923 "Drupal.org Developer") at the [Drupal Association](http://assoc.drupal.org) working on Drupal's home - [Drupal.org](http://www.drupal.org).

View file

@ -1,11 +1,9 @@
---
title: Thanks
nav: blog
use:
- posts
tags:
- Drupal
- Drupal Association
- Personal
- drupal
- drupal-association
- personal
---
This is just a quick post to thank everyone for their comments and congratulations after my previous post about [joining the Drupal Association](/blog/drupal-association). Im looking forward to my first day in the job tomorrow.

View file

@ -1,14 +1,12 @@
---
title: git format-patch is your Friend
nav: blog
use:
- posts
slug: git-format-patch
tags:
- Patches
- Drupal
- Drupal Planet
- Git
- patches
- drupal
- drupal-planet
- git
---
## The Problem

View file

@ -1,14 +1,12 @@
---
title: drush make drupalbristol
nav: blog
use:
- posts
tags:
- Drupal
- Drush
- Drush Make
- Drupal Bristol
- Talks
- drupal
- drush
- drush-make
- drupal-bristol
- talks
---
Here are my slides from this month's talk night at the [Drupal Bristol user group](https://groups.drupal.org/bristol-and-west-uk).

View file

@ -1,16 +1,18 @@
---
title: How to fix Vagrant Loading the Wrong Virtual Machine
nav: blog
use:
- posts
slug: fix-vagrant-loading-wrong-virtual-machine
tags:
- Vagrant
- VirtualBox
- vagrant
- virtualbox
meta:
description: How to fix it when Vagrant loads the wrong virtual machine.
---
A few times recently, I've had instances where Vagrant seems to have forgotten which virtual machine it's supposed to load, probably due to renaming a project directory or the .vagrant directory being moved accidentally. Here are the steps that I took to fix this and point Vagrant back at the correct VM.
A few times recently, I've had instances where Vagrant seems to have forgotten which virtual machine it's supposed to load, probably due to renaming a project directory or the .vagrant directory being moved accidentally.
* Stop the machine from running using the `$ vagrant halt` command.
* Use the `$ VBoxManage list vms` command to view a list of the virtual machines on your system. Note the ID of the correct VM that should be loading. For example, `"foo_default_1405481857614_74478" {e492bfc3-cac2-4cde-a396-e81e37e421e2}`. The number within the curly brackets is the ID of the virtual machine.
* Within the .vagrant directory in your project (it is hidden by default), update the ID within the machines/default/virtualbox/id file.
* Start the new VM with `$ vagrant up`.
Here are the steps that I took to fix this and point Vagrant back at the correct VM.
1. Stop the machine from running using the `$ vagrant halt` command.
2. Use the `$ VBoxManage list vms` command to view a list of the virtual machines on your system. Note the ID of the correct VM that should be loading. For example, `"foo_default_1405481857614_74478" {e492bfc3-cac2-4cde-a396-e81e37e421e2}`. The number within the curly brackets is the ID of the virtual machine.
3. Within the .vagrant directory in your project (it is hidden by default), update the ID within the machines/default/virtualbox/id file.
4. Start the new VM with `$ vagrant up`.

View file

@ -1,14 +1,12 @@
---
title: Updating Features and Adding Components Using Drush
nav: blog
use:
- posts
slug: updating-features-and-adding-components-using-drush
tags:
- Drupal
- Drupal Planet
- Drush
- Features
- drupal
- drupal-planet
- drush
- features
---
If you use the [Features module](http://drupal.org/project/features) to manage your Drupal configuration, it can be time consuming to update features through the UI, especially if you are working on a remote server and need to keep downloading and uploading files.

View file

@ -1,15 +1,13 @@
---
title: Include CSS Fonts by Using a SASS each Loop
nav: blog
use:
- posts
description: How to use an SASS each loop to easily add multiple fonts to your CSS.
slug: include-css-fonts-using-sass-each-loop
tags:
- Compass
- Drupal Planet
- Fonts
- SASS
- compass
- drupal-planet
- fonts
- sass
---
Using a file structure similar to this, organise your font files into directories, using the the font name for both the directory name and for the file names.

View file

@ -1,12 +1,10 @@
---
title: Using Remote Files when Developing Locally with Stage File Proxy Module
nav: blog
use:
- posts
tags:
- Drupal
- Drupal Planet
- Servers
- drupal
- drupal-planet
- servers
---
Download the [Stage File Proxy](https://www.drupal.org/project/stage_file_proxy) module from Drupal.org and enable it on your site.

View file

@ -1,13 +1,11 @@
---
title: Include environment-specific settings files on Pantheon
nav: blog
use:
- posts
slug: pantheon-settings-files
tags:
- Drupal
- Drupal Planet
- Pantheon
- drupal
- drupal-planet
- pantheon
- settings.php
---
I was recently doing some work on a site hosted on [Pantheon](http://getpantheon.com) and came across an issue, for which part of the suggested fix was to ensure that the `$base_url` variable was explicitly defined within settings.php (this is also best practice on all Drupal sites).

View file

@ -1,15 +1,13 @@
---
title: Include a Local Drupal Settings file for Environment Configuration and Overrides
nav: blog
use:
- posts
slug: include-local-drupal-settings-file-environment-configuration-and-overrides
tags:
- Drupal
- Drupal 6
- Drupal 7
- Drupal 8
- Drupal Planet
- drupal
- drupal-6
- drupal-7
- drupal-8
- drupal-planet
- settings.php
---
At the bottom of settings.php, add the following code:

View file

@ -1,14 +1,12 @@
---
title: Configuring the Reroute Email Module
nav: blog
use:
- posts
tags:
- Drupal
- Drupal 6
- Drupal 7
- Drupal Planet
- Email
- drupal
- drupal-6
- drupal-7
- drupal-planet
- email
draft: true
---
[Reroute Email](https://www.drupal.org/project/reroute_email) module uses `hook_mail_alter()` to prevent emails from being sent to users from non-production sites. It allows you to enter one or more email addresses that will receive the emails instead of delivering them to the original user.

View file

@ -2,15 +2,12 @@
title: 2014
description: A look back at 2014.
nav: blog
use:
- posts
tags:
- Drupal Association
- DrupalCamp London
- Personal
- drupal-association
- drupalcamp-london
- personal
tweets: true
---
A lot happened in 2014. Here are some of the main things that I'd like to highlight:
## Joined the Drupal Association

View file

@ -2,14 +2,17 @@
title: How to Define a Minimum Drupal Core Version
description: How to define a minimum Drupal core version for your module or theme.
nav: blog
use:
- posts
tags:
- Drupal
- Drupal 7
- Drupal Planet
- drupal
- drupal-7
- drupal-planet
meta:
og:
title: 'How to Define a Minimum Drupal Core Version'
description: 'How to define a minimum Drupal core version for your module or theme.'
type: article
---
This week, my first code patch was [committed to Drupal core](https://www.drupal.org/node/2394517#comment-9773143). The patch adds the `user_has_role()` function to theu user module, to simplify the way to check whether a user in Drupal has been assigned a specific role. This is something that I normally write a custom function for each project, but it's now available in Drupal core as of [7.36](https://www.drupal.org/drupal-7.36-release-notes).
This week, my first code patch was [committed to Drupal core](https://www.drupal.org/node/2394517#comment-9773143). The patch adds the `user_has_role()` function to the user module, to simplify the way to check whether a user in Drupal has been assigned a specific role. This is something that I normally write a custom function for each project, but it's now available in Drupal core as of [7.36](https://www.drupal.org/drupal-7.36-release-notes).
But what if someone is using a core version less than 7.36 and tries using the function? The site would return an error because that function wouldn't exist.

View file

@ -1,11 +1,13 @@
---
title: Accessible Bristol
website: http://www.accessiblebristol.org
link: http://www.accessiblebristol.org
featured: true
tags:
- Drupal 7
- drupal
- drupal-7
- accessibility
---
## Modules used
* [Features](https://www.drupal.org/project/features)

View file

@ -7,4 +7,4 @@ nav: accessibility
I have made as much effort as possible to make this website accessible to all users.
If you have any suggestions to improve the site, please [contact me](contact).
If you have any suggestions to improve the site, please [contact me](/contact).

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -5,20 +5,10 @@ nav: blog
use:
- posts
---
{% block content_wrapper %}
<div class="col-md-12">
{% block content %}
<h1>Blog</h1>
<h1>Blog</h1>
{% if data.posts %}
<ul>
<ul>
{% for post in data.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
</div> {# .col.md-12 #}
{% endblock %}
{% block sidebar %}{% endblock %}
</ul>

View file

@ -0,0 +1,14 @@
---
layout: default
title: Tags
nav: blog
use:
- posts_tags
---
<h2>Tags</h2>
<ul>
{% for tag,posts in data.posts_tags %}
<li><a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}">{{ tag }}</a></li>
{% endfor %}
</ul>

View file

@ -0,0 +1,23 @@
---
layout: default
title: Tag Archive
nav: blog
generator:
- posts_tag_index
---
{% block head_meta %}
<link rel="alternate" type="application/atom+xml" href="{{ site.url }}/blog/tags/{{ page.tag|url_encode(true) }}.xml" title="{{ site.title }} '{{ page.tag }}' tag feed" />
<meta name="robots" content="noindex, follow">
{% endblock %}
{% block title %}{{ page.title }} "{{ page.tag }}"{% endblock %}
{% block content %}
<h2>"{{ page.tag }}"</h2>
<ul>
{% for post in page.tag_posts %}
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}

23
source/blog/tags/tag.xml Normal file
View file

@ -0,0 +1,23 @@
---
generator: [posts_tag_index]
---
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }}</title>
<link>{{ site.url }}</link>
<language>en</language>
{% if site.description %}<description>{{ site.description|raw }}</description>{% endif %}
<atom:link href="{{ site.url }}{{ page.url }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{{ site.calculated_date|date('r') }}</lastBuildDate>
{% for post in page.tag_posts|slice(0, 10) %}
<item>
<title>{{ post.title }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
<pubDate>{{ post.date|date('r') }}</pubDate>
<description>{{ post.description|raw }}</description>
</item>
{% endfor %}
</channel>
</rss>

View file

@ -2,23 +2,32 @@
layout: default
title: Contact
nav: contact
use:
- posts
meta:
description: 'Information about how to get in touch with Oliver.'
---
# Contact
If you find any issues or want to suggest any improvements to the site, you can [create an issue](https://github.com/opdavies/oliverdavies.co.uk/issues/new) on GitHub. If you want to suggest an improvement to a blog post, please feel free to fork the repository and submit a pull request.
The best way to contact me is via [email](mailto:oliver+contact@oliverdavies.co.uk?subject=Contact%20Oliver%20Davies).
Email
: [oliver@oliverdavies.co.uk](mailto:oliver+contact@oliverdavies.co.uk?subject=Contact%20Oliver%20Davies)
If you have a support or feature request for one of the Drupal projects that I maintain, please create an issue in the appropriate issue queue on [Drupal.org](https://www.drupal.org).
IRC (Freenode)
: opdavies
If you want to report an issue or want to suggest any improvements to the site, you can do so on [GitHub](https://github.com/opdavies/opdavies.github.io/issues/new). I'm happy to receive [pull requests](https://help.github.com/articles/using-pull-requests) if you want to suggest a change to piece of content.
Twitter
: [@opdavies](http://twitter.com/opdavies)
## Elsewhere
Drupal.org
: [https://www.drupal.org/u/opdavies](https://www.drupal.org/u/opdavies "Olivers profile on Drupal.org")
Here are the best places to contact me online:
* IRC ({{ site.irc }}) - I'm usually in #drupal-uk on Freenode, among others.
* <a href="{{ site.twitter }}">Twitter</a> (@{{ site.twitter_name }})
* <a href="{{ site.drupalorg_nice }}">Drupal.org</a>
* <a href="{{ site.linkedin }}">LinkedIn</a>
## Meetups
Here are the user group meetups that I attend regularly. If you're in the area, feel free to pop along and say hi!
* [SWDUG](http://www.swdug.co.uk) (South Wales Drupal user group)
* [Drupal Bristol](https://groups.drupal.org/bristol-and-west-uk)
* [PHPSW](http://www.phpsw.org.uk)
* [SWLUG](http://www.swlug.org) (South Wales Linux user group)
* [Accessible Bristol](http://www.accessiblebristol.org.uk)

View file

@ -1,10 +0,0 @@
/* TEAM */
Developer: Oliver Davies
Site: http://www.oliverdavies.co.uk
Twitter: @opdavies
Location: Wales, UK
/* SITE */
Doctype: HTML5
Software: PhpStorm, Sublime Text
Technologies: Sculpin, PHP, SASS/Compass, HTML5

View file

@ -1,19 +1,27 @@
---
layout: default
title: About Oliver
nav: about
front: true
use:
- posts
meta:
description: 'The personal website and blog of Oliver Davies, a Drupal Developer and Systems Administrator from Wales, UK.'
og:
title: 'Oliver Davies - Drupal Developer'
description: 'The personal website and blog of Oliver Davies, a Drupal Developer and Systems Administrator from Wales, UK.'
type: website
image:
url: http://www.oliverdavies.co.uk/assets/images/oliver.jpg
width: 327
height: 327
type: image/jpg
---
# About
Hi, I'm Oliver Davies - a [Drupal](https://www.drupal.org/about) Developer and Systems Administrator based in Wales. I work for the [Drupal Association](https://assoc.drupal.org/about) Engineering team, working on Drupal.org, it's sub-sites and infrastructure, as well as providing part-time freelance services.
<img src="/assets/images/oliver-small.jpg" class="img-circle">
I'm an active member of the Drupal and PHP communities - organising and [speaking](/talks/) at user groups and conferences, mentoring at DrupalCons, and contributing code to core and various contrib modules and themes. I'm the Git Documentation Maintainer for the Drupal project and a provisional member of the [Drupal Security team](https://www.drupal.org/security-team).
Oliver Davies is a senior level Web Developer and Systems Administrator based in the UK, who was been working online since 2007. Specialising in PHP and open source technologies, Oliver architects and develops websites using [Drupal](https://www.drupal.org) - a powerful content management framework - and [Sculpin](http://sculpin.io) - a static site generator written in PHP.
I also have experience of building websites using static site generators, namely [Sculpin](http://sculpin.io) and [Jekyll](http://jekyllrb.com).
Oliver currently works for the [Drupal Association](https://assoc.drupal.org) and also provides freelance consultancy services for Drupal websites and Linux servers.
I have active social media profiles on [Twitter](https://twitter.com/opdavies) and [LinkedIn](https://www.linkedin.com/in/opdavies), and you can view my code on [Drupal.org](https://www.drupal.org/user/381388/track/code) and [GitHub](https://www.github.com/opdavies?tab=activity).
In his spare time, Oliver contributes to Drupal core and maintains several contrib modules on Drupal.org, is the Git Documentation Maintainer for the Drupal project, and is a provisional member of the [Drupal Security team](https://www.drupal.org/security-team). He attends, organises and [talks](/talks) at user groups, and volunteers and mentors at conferences. He also is a 2nd Degree Black Belt in Tae Kwon-Do and a Brazilian Jiu-Jitsu practitioner.
Oliver has active social media profiles on <a href="{{ site.twitter }}">Twitter</a> and <a href="{{ site.linkedin }}">LinkedIn</a>, and you can view his code on
<a href="{{ site.drupalorg }}/track/code">Drupal.org</a> and <a href="{{ site.github }}?tab=activity">GitHub</a>.

9
source/robots.txt Normal file
View file

@ -0,0 +1,9 @@
---
permalink: none
---
User-agent: *
Disallow: /_projects/
Disallow: /_testimonials/
Disallow: /404.html
Sitemap: {{ site.url }}/sitemap.xml

Some files were not shown because too many files have changed in this diff Show more