From 0d316aac6c1104dbf2d235f9fa6a8b7e6f090479 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Sat, 31 Dec 2016 09:16:39 +0300 Subject: [PATCH] Add site config and default title --- app/config/sculpin_site.yml | 2 ++ source/_layouts/default.html.twig | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/config/sculpin_site.yml diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml new file mode 100644 index 0000000..4e7f2d2 --- /dev/null +++ b/app/config/sculpin_site.yml @@ -0,0 +1,2 @@ +--- +title: Антон Вахрушев diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index 44b126b..4caad80 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -5,7 +5,13 @@ - {{ title|default('Антон Вахрушев') }} + + {% if page.title is defined %} + {{ page.title }} - {{ page.title }} + {% else %} + {{ site.title }} + {% endif %} +