From c989b2480b48700d709ea6ea6dcb128b06ddf797 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 22 Aug 2019 08:34:48 +0200 Subject: Card layout for showcases --- scss/ishtar_public.scss | 5 +++ showcase/templates/showcase/show_case.html | 50 +++++++++++++++++++++++------- 2 files changed, 43 insertions(+), 12 deletions(-) diff --git a/scss/ishtar_public.scss b/scss/ishtar_public.scss index 62cf259..22f482c 100644 --- a/scss/ishtar_public.scss +++ b/scss/ishtar_public.scss @@ -25,6 +25,7 @@ position: relative; overflow: hidden; min-height: 250px; + margin-bottom: 0; } .jumbotron h2{ @@ -51,4 +52,8 @@ opacity: 0.9; } +main.container{ + margin-top: 2rem; +} + @import "custom_post"; \ No newline at end of file diff --git a/showcase/templates/showcase/show_case.html b/showcase/templates/showcase/show_case.html index b6a4afa..6a2f13b 100644 --- a/showcase/templates/showcase/show_case.html +++ b/showcase/templates/showcase/show_case.html @@ -4,17 +4,43 @@ {% block body_class %}template-showcase{% endblock %} {% block content %} -{% image page.image width-500 %} -{{ page.body|richtext }} -{% if page.data %}{% endif %} + +
+
+
+
+ {% image page.image original as head_image %} + {{ head_image.alt }} +
+
+
+
{{page.title}}
+ {{ page.body|richtext }} +
+
+
+
+
+ +
+ +{% if page.data %} +
+ {% for item in page.data %} +
+
+ {% if item.images.0.thumbnail %} + + {% endif %} + +
+
+ {% endfor %} +
+{% endif %} {% endblock %} -- cgit v1.2.3