From 9a189b45d1dedf9965723267c97db4705bb7f684 Mon Sep 17 00:00:00 2001 From: Jacob Hall Date: Sun, 12 Jan 2025 16:36:49 -0500 Subject: [PATCH] fixes to opengraph meta tags - fix some whitespace chomping, too --- _includes/page_meta.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/_includes/page_meta.html b/_includes/page_meta.html index 9c15b10..bc37948 100644 --- a/_includes/page_meta.html +++ b/_includes/page_meta.html @@ -1,29 +1,29 @@ {%- if page.title or page.temp_title -%} {{page.temp_title | default: page.title}} | {% endif -%} {{site.title}} - - -{% assign description = page.content | strip_html | markdownify | strip_html | strip_newlines | truncate: 210 -%} + + +{%- assign description = page.content | strip_html | markdownify | strip_html | strip_newlines | truncate: 210 -%} {%- if page.temp_blurb or page.blurb -%} - {%- assign description=page.temp_blurb | default: page.blurb | strip_html | markdownify | strip_html -%} + {%- assign description=page.temp_blurb | default: page.blurb | strip_html | markdownify | strip_html | strip_newlines -%} {% endif %} - + {%- if page.youtube -%} {%- assign youtube_image = "https://i3.ytimg.com/vi/" | append: page.youtube | append: "/hqdefault.jpg" -%} {%- endif -%} {%- assign image=page.social_banner | default: page.sign | default: page.image | default: page.cover | default: page.logo | default: youtube_image -%} {%- if image %} - - -{% endif %} - - + + +{%- endif %} + + {%- if page.image %}