diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e69de29b..00000000 diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index 52bdd2fb..46399b49 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -1,4 +1,5 @@ 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. url: http://localhost:8000 +twitter_url: http://twitter.com/opdavies +linkedin_url: http://uk.linkedin.com/in/opdavies \ No newline at end of file diff --git a/source/_posts/2015-04-03-minimum-core-version.md b/source/_posts/2015-04-03-minimum-core-version.md index 99672681..0b5efbdd 100644 --- a/source/_posts/2015-04-03-minimum-core-version.md +++ b/source/_posts/2015-04-03-minimum-core-version.md @@ -5,9 +5,14 @@ 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). diff --git a/source/_projects/accessible-bristol.md b/source/_projects/accessible-bristol.md index 43b76c6c..c113b636 100644 --- a/source/_projects/accessible-bristol.md +++ b/source/_projects/accessible-bristol.md @@ -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) @@ -15,4 +17,4 @@ tags: * [Override Node Options](https://www.drupal.org/project/override_node_options) * [User relationships](https://www.drupal.org/project/user_relationships) * [Views](https://www.drupal.org/project/views) -* [Workbench Moderation](https://www.drupal.org/project/workbench_moderation) \ No newline at end of file +* [Workbench Moderation](https://www.drupal.org/project/workbench_moderation) diff --git a/source/assets/images/oliver.jpg b/source/assets/images/oliver.jpg new file mode 100644 index 00000000..4b3e0319 Binary files /dev/null and b/source/assets/images/oliver.jpg differ diff --git a/source/index.md b/source/index.md index af2de10a..3cf1aa83 100644 --- a/source/index.md +++ b/source/index.md @@ -1,12 +1,19 @@ --- 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 diff --git a/source/robots.txt b/source/robots.txt new file mode 100644 index 00000000..6d6f57e5 --- /dev/null +++ b/source/robots.txt @@ -0,0 +1,8 @@ +--- +permalink: none +--- +User-agent: * +Disallow: /_projects/ +Disallow: /_testimonials/ + +Sitemap: {{ site.url }}/sitemap.xml \ No newline at end of file diff --git a/source/sitemap.xml b/source/sitemap.xml new file mode 100644 index 00000000..5b5a6f80 --- /dev/null +++ b/source/sitemap.xml @@ -0,0 +1,40 @@ +--- +permalink: sitemap.xml +use: + - posts +--- + + + + {{ site.url }} + {{ site.calculated_date | date('Y-m-d') }} + daily + 0.8 + + + {% set pages = { 0: 'accessibility', 1: 'blog', 2: 'company-information', 3: 'contact', 4: 'services', 5: 'talks', 6: 'work' } %} + {% for page in pages %} + + {{ site.url }}/{{ page }} + {{ site.calculated_date | date('Y-m-d') }} + monthly + 0.6 + + {% endfor %} + + + {{ site.url }}/blog + {{ site.calculated_date | date('Y-m-d') }} + monthly + 0.8 + + + {% for post in data.posts %} + + {{ site.url }}{{ post.url }} + {{ post.date|date('c') }} + weekly + 1.0 + + {% endfor %} + \ No newline at end of file diff --git a/source/talks.html.twig b/source/talks.html.twig index bfbeafa8..5dd8e4d5 100644 --- a/source/talks.html.twig +++ b/source/talks.html.twig @@ -10,27 +10,60 @@ talks: - date: 2012-09-05 location: unified.diff description: So, what is this Drupal thing? - an introduction to Drupal. + tags: + - user-group + - drupal - date: 2013-07-10 location: South Wales Drupal User Group description: An overview of the Drupal LDAP module and how I customised it for a client project. + tags: + - user-group + - drupal + - ldap - date: 2014-03-01 location: DrupalCamp London description: Never Commit to Master: An Introduction to Git Flow. + tags: + - conference + - drupalcamp + - git + - git-flow - date: 2014-07-02 location: Drupal Bristol User Group description: drush make drupalbristol: An introduction to Drush and Drush Make. + tags: + - user-group + - drush + - drush-make - date: 2014-08-09 location: South Wales Drupal User Group description: An impromptu talk about the Drupal Association and I've done there since joining the team. + tags: + - user-group + - drupal-association - date: 2015-01-18 location: DrupalCamp Brighton description: Drupal.org in 2015: What's coming next? + tags: + - conference + - drupalcamp + - drupalorg + - drupal-association - date: 2015-02-28 location: DrupalCamp London description: Drupal.org in 2015: What's coming next? + tags: + - conference + - drupalcamp + - drupalorg + - drupal-association - date: 2015-04-08 location: PHPSW description: Drupal 8 (lightning talk) + tags: + - user-group + - drupal + - drupal-8 ---

Talks

diff --git a/source/themes/opdavies/opdavies/_layouts/default.html.twig b/source/themes/opdavies/opdavies/_layouts/default.html.twig index 4d687280..1c9ba444 100644 --- a/source/themes/opdavies/opdavies/_layouts/default.html.twig +++ b/source/themes/opdavies/opdavies/_layouts/default.html.twig @@ -7,9 +7,9 @@ {% if page.meta.description %} {% endif %} + {% if page.meta.og %}{% include "og" with {og: page.meta.og} %}{% endif %} - {% if (page.front == true) and (site.subtitle) %}{{ site.subtitle }}{% else %}{{ page.title }}{% endif %} | {{ site.title }} - + {% include 'title' %} {% block styles %}{% endblock %} diff --git a/source/themes/opdavies/opdavies/_partials/navbar.html.twig b/source/themes/opdavies/opdavies/_partials/navbar.html.twig index 0077764a..46ca84a4 100644 --- a/source/themes/opdavies/opdavies/_partials/navbar.html.twig +++ b/source/themes/opdavies/opdavies/_partials/navbar.html.twig @@ -12,11 +12,9 @@ {# .nav-collapse #} diff --git a/source/themes/opdavies/opdavies/_partials/og.html.twig b/source/themes/opdavies/opdavies/_partials/og.html.twig new file mode 100644 index 00000000..f9e81e60 --- /dev/null +++ b/source/themes/opdavies/opdavies/_partials/og.html.twig @@ -0,0 +1,37 @@ +{% if og.title %} + +{% endif %} + +{% if og.description %} + +{% endif %} + +{% if og.type %} + +{% endif %} + +{% if og.image and og.image.url %} + + {% if og.image.type %} + + {% endif %} + {% if og.image.width %} + + {% endif %} + {% if og.image.height %} + + {% endif %} +{% endif %} + +{% if og.title %} + {% if og.image %} + + + + {% else %} + + {% endif %} + + + +{% endif %} \ No newline at end of file diff --git a/source/themes/opdavies/opdavies/_partials/title.html.twig b/source/themes/opdavies/opdavies/_partials/title.html.twig new file mode 100644 index 00000000..3ddec683 --- /dev/null +++ b/source/themes/opdavies/opdavies/_partials/title.html.twig @@ -0,0 +1,14 @@ +{% set separator = '|' %} +{% spaceless %} + {% if page.full_title %} + {{ page.full_title }} + {% elseif page.title and site.title %} + {{ page.title }} {{ separator }} {{ site.title }} + {% elseif site.title %} + {% if site.subtitle %} + {{ site.subtitle }} {{ separator }} {{ site.title }} + {% else %} + {{ site.title }} + {% endif %} + {% endif %} +{% endspaceless %} \ No newline at end of file