]> git.parisson.com Git - mezzo.git/commitdiff
Add subtitle to basicpage template
authorJérémy Fabre <blackmagik88@gmail.com>
Mon, 25 Jul 2016 15:20:00 +0000 (17:20 +0200)
committerJérémy Fabre <blackmagik88@gmail.com>
Mon, 25 Jul 2016 15:20:00 +0000 (17:20 +0200)
app/static/src/sass/global/_typography.scss
app/templates/pages/basicpage.html

index 463ea3d71735e9fac99894430900861e0a0b37bc..6dcd0dd5a5940eccf5ec633e9c86e4107ac2417a 100755 (executable)
@@ -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);
 }
index 83faf03b1b3eb3e372643daefa226c3e21f98f2e..e3f0fd603919ad656de81f0cf6bb5d99316882e3 100644 (file)
 
 {% block page_content %}
 
+    {% if page.basicpage.sub_title %}
+        {% editable page.basicpage.sub_title %}
+            <div class="chapo">
+                {{ page.basicpage.sub_title }}
+            </div>
+        {% endeditable %}
+    {% endif %}
+
     {% editable page.basicpage.content %}
         {{ page.basicpage.content|richtext_filters|safe }}
     {% endeditable %}