From: Jérémy Fabre Date: Mon, 25 Jul 2016 15:20:00 +0000 (+0200) Subject: Add subtitle to basicpage template X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=de9ea2891c84699e24d5998497eeb3243330ab28;p=mezzo.git Add subtitle to basicpage template --- 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 %}