From 3fd8f8c2e4d44160f177115707379122e7b213d3 Mon Sep 17 00:00:00 2001 From: Danny Staple Date: Tue, 21 Jan 2025 19:22:25 +0000 Subject: [PATCH] Descriptions now look sane - --- _includes/layouts/common.liquid | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/_includes/layouts/common.liquid b/_includes/layouts/common.liquid index 6885642b..ac5a6f09 100644 --- a/_includes/layouts/common.liquid +++ b/_includes/layouts/common.liquid @@ -21,9 +21,16 @@ - {% if description %} - - {% endif %} + {% capture real_description -%} + {% if description -%} + {{ description }} + {%- else -%} + {{ content | strip_html | strip_newlines | truncatewords: 50 }} + {%- endif -%} + {%- endcapture %} + + + {% if thumbnail %} @@ -34,11 +41,9 @@ {{ title }} | {{ site_title }} - {{ site_tagline }} - {% if description %}{% endif %} - {% capture css %}{% include css/bootstrap-style.css %}{% endcapture %}