From 45be574a6a3dc8aadadc5574d7b42fa33e6c0d61 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Jun 2021 08:00:00 +0100 Subject: [PATCH] Add work company name and URL --- app/config/sculpin_site.yml | 3 +++ source/_layouts/post.html.twig | 5 ++++- source/_layouts/talk.html.twig | 5 ++++- source/_pages/index.md | 2 +- source/_partials/about-author.html.twig | 4 ++-- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index 2f35f4a07..112e34423 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -63,6 +63,9 @@ twitter: url: 'https://twitter.com/%twitter.name%' work: + company: + name: Transport for Wales + url: https://trc.cymru role: Lead Software Developer youtube: diff --git a/source/_layouts/post.html.twig b/source/_layouts/post.html.twig index 44ab386b0..62d7651c6 100644 --- a/source/_layouts/post.html.twig +++ b/source/_layouts/post.html.twig @@ -14,6 +14,9 @@ - {% include 'about-author' %} + {% include 'about-author' with { + avatar: site.avatar, + work: site.work, + } only %} {% endblock %} diff --git a/source/_layouts/talk.html.twig b/source/_layouts/talk.html.twig index 92239fa68..fa9d2d34c 100644 --- a/source/_layouts/talk.html.twig +++ b/source/_layouts/talk.html.twig @@ -20,6 +20,9 @@ } only %} - {% include 'about-author' %} + {% include 'about-author' with { + avatar: site.avatar, + work: site.work, + } only %} {% endblock %} diff --git a/source/_pages/index.md b/source/_pages/index.md index 1db4a3017..7c2111d1c 100644 --- a/source/_pages/index.md +++ b/source/_pages/index.md @@ -7,7 +7,7 @@ is_front: true
Picture of Oliver
-Hi, I'm Oliver Davies (aka opdavies). I’m a Lead Software Developer at Transport for Wales and a part-time freelance Web Developer and System Administrator, based in Wales, UK. +Hi, I'm Oliver Davies (aka opdavies). I’m a {{ site.work.role }} at {{ site.work.company.name }} and a part-time freelance Web Developer and System Administrator, based in Wales, UK. I’ve been a Developer since 2007 and specialise in using Drupal, Symfony and Vue.js. I use Ansible for server provisioning and application deployments. diff --git a/source/_partials/about-author.html.twig b/source/_partials/about-author.html.twig index 29728108f..2d2a96e5f 100644 --- a/source/_partials/about-author.html.twig +++ b/source/_partials/about-author.html.twig @@ -3,13 +3,13 @@
- Picture of Oliver + Picture of Oliver

Oliver Davies is a PHP Developer and Linux Systems Administrator based in the UK. - He is a Lead Software Developer at Transport for Wales and a part-time freelancer specialising in Drupal and Symfony application development. + He is a {{ work.role }} at {{ work.company.name }} and a part-time freelancer specialising in Drupal and Symfony application development.