From c7128e287bf983c5e710e6f5b5de1b22ca2699bb Mon Sep 17 00:00:00 2001 From: Brian Hurst Date: Fri, 16 Feb 2024 16:28:56 -0500 Subject: [PATCH] Clean up --- _includes/meta.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/_includes/meta.html b/_includes/meta.html index fbbc2d12c..c8a62ad6d 100644 --- a/_includes/meta.html +++ b/_includes/meta.html @@ -16,16 +16,19 @@ - {% capture title %}{%- if page.title -%}{{ page.title | strip_html }} | {% endif -%}{{ site.title }}{% endcapture %} + {% capture title %} + {%- if page.title -%}{{- page.title | strip_html }} | {% endif -%}{{ site.title -}} + {% endcapture %} {% capture description %} {%- if page.url == "/" -%} - {{ site.description }} + {{- site.description -}} {%- elsif page.description -%} - {{ page.description | truncate: 160 }} + {{- page.description | truncate: 160 -}} {%- else -%} - {{ page.content | markdownify | strip | strip_html | strip_newlines | truncate: 160 }} + {{- page.content | markdownify | strip_html | normalize_whitespace | strip | truncate: 160 -}} {%- endif -%} {% endcapture %} + {{title}}