From 3fdb15f5cd52fd9f7c05689487b7d9facfc3b827 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 4 Sep 2018 20:42:56 +0100 Subject: [PATCH] Update testimonial styling --- assets/sass/components/markdown.sass | 4 ++++ source/testimonials.html.twig | 28 ++++++++++++++++------------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/assets/sass/components/markdown.sass b/assets/sass/components/markdown.sass index 0b4bd3d4..a24c2bad 100644 --- a/assets/sass/components/markdown.sass +++ b/assets/sass/components/markdown.sass @@ -14,6 +14,10 @@ @apply .bg-grey-lighter .inline-block .font-mono .text-xs padding: 1px 3px + + p:last-child + @apply .mb-0 + pre code, .hljs @apply .bg-grey-lighter diff --git a/source/testimonials.html.twig b/source/testimonials.html.twig index 44a98193..8b8a6866 100644 --- a/source/testimonials.html.twig +++ b/source/testimonials.html.twig @@ -69,28 +69,32 @@ testimonials: {% block content %}
{% for testimonial in page.testimonials|reverse %} -
+
{% if testimonial.image %} -
+
{{ testimonial.name }}
{% endif %} -
-

{{ testimonial.name }}

+
+
+

{{ testimonial.name }}

- {% if testimonial.role %} -
- {{ testimonial.role|raw }} -
- {% endif %} + {% if testimonial.role %} +
+ {{ testimonial.role|raw }} +
+ {% endif %} +
+ +
+ {{ testimonial.text|markdown }} +
- - {{ testimonial.text|markdown }}
{% endfor %}