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 %}