From de9ea2891c84699e24d5998497eeb3243330ab28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Mon, 25 Jul 2016 17:20:00 +0200 Subject: [PATCH] Add subtitle to basicpage template --- app/static/src/sass/global/_typography.scss | 2 +- app/templates/pages/basicpage.html | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/static/src/sass/global/_typography.scss b/app/static/src/sass/global/_typography.scss index 463ea3d7..6dcd0dd5 100755 --- a/app/static/src/sass/global/_typography.scss +++ b/app/static/src/sass/global/_typography.scss @@ -104,6 +104,6 @@ figure { @include font-size(l); @include line-height(1.25); @include typeface(serif); - @include margin-bottom(3); + @include margin-bottom(2); font-weight: weight(heavy); } diff --git a/app/templates/pages/basicpage.html b/app/templates/pages/basicpage.html index 83faf03b..e3f0fd60 100644 --- a/app/templates/pages/basicpage.html +++ b/app/templates/pages/basicpage.html @@ -29,6 +29,14 @@ {% block page_content %} + {% if page.basicpage.sub_title %} + {% editable page.basicpage.sub_title %} +
+ {{ page.basicpage.sub_title }} +
+ {% endeditable %} + {% endif %} + {% editable page.basicpage.content %} {{ page.basicpage.content|richtext_filters|safe }} {% endeditable %} -- 2.39.5