From 08638373c8da5acdc49f0f3dd2b26e418ef331a4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 20 Mar 2015 11:27:02 +0000 Subject: [PATCH] Added front page meta description --- app/config/sculpin_site.yml | 3 ++- source/index.md | 1 + source/themes/opdavies/opdavies/_layouts/default.html.twig | 5 ++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index 12d34879..52bdd2fb 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -1,3 +1,4 @@ title: Oliver Davies -description: Drupal & Linux Specialist +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 diff --git a/source/index.md b/source/index.md index 0d456684..1388582d 100644 --- a/source/index.md +++ b/source/index.md @@ -2,6 +2,7 @@ layout: default title: About Oliver nav: about +front: true --- # About diff --git a/source/themes/opdavies/opdavies/_layouts/default.html.twig b/source/themes/opdavies/opdavies/_layouts/default.html.twig index 40a17e69..3032fae2 100644 --- a/source/themes/opdavies/opdavies/_layouts/default.html.twig +++ b/source/themes/opdavies/opdavies/_layouts/default.html.twig @@ -2,10 +2,9 @@ - - {% if (page.url == '/') and (site.description) %}{{ site.description }}{% else %}{{ page.title }}{% endif %} | {{ site.title }} - + + {% if (page.front == true) and (site.subtitle) %}{{ site.subtitle }}{% else %}{{ page.title }}{% endif %} | {{ site.title }}