From 8f5163e6bff9edcc5d502e7c783ef5a181cef220 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 31 Jan 2018 01:05:43 +0000 Subject: [PATCH] Update head title --- app/config/sculpin_site.yml | 4 ++-- source/_includes/head.html.twig | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index 6056b7bb..dffaee49 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -1,5 +1,5 @@ -title: 'Oliver Davies' -subtitle: 'Web Developer, System Administrator - PHP, Drupal, Symfony, Linux' +title: Oliver Davies +subtitle: Full Stack Web Developer (Drupal, Symfony, Laravel, Linux) description: 'Oliver Davies, Drupal Developer' default_date_format: 'jS F, Y' fuzzy_date_format: F Y diff --git a/source/_includes/head.html.twig b/source/_includes/head.html.twig index 53e46671..c95afa0c 100644 --- a/source/_includes/head.html.twig +++ b/source/_includes/head.html.twig @@ -1,5 +1,10 @@ - {% if page.url == '/.' %}{{ site.subtitle }} | {{ site.title }}{% else %}{{ page.title }} | {{ site.title }}{% endif %} + + {% if page.title is defined and page.url != '/.' %} + {{ page.title }} | + {% endif %} + {{ site.title }} - {{ site.subtitle }} + @@ -11,8 +16,9 @@ {% include 'og' with { og: page.meta.og } %} - - {% block stylesheets '' %} + {% block stylesheets %} + + {% endblock %} {% for size in site.apple_touch_icon_sizes %}