From f968d1dfd10dc5c89a8b6b51a27f5efbb20bdc70 Mon Sep 17 00:00:00 2001 From: George <31376482+george-gca@users.noreply.github.com> Date: Mon, 17 Jul 2023 16:18:25 -0300 Subject: [PATCH] Added metadata info when blog post (#1573) Changed metadata info for when page is a blog post. Signed-off-by: George Araujo --- _includes/metadata.html | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/_includes/metadata.html b/_includes/metadata.html index e54f8ee..6a4c766 100644 --- a/_includes/metadata.html +++ b/_includes/metadata.html @@ -41,11 +41,17 @@ {%- endif %} -{%- if site.serve_og_meta %} +{%- assign is_blog_post = false -%} +{%- if page.url != '/blog/index.html' and page.url contains '/blog/' -%} + {%- unless page.url contains '/tag/' or page.url contains '/category/' -%} + {%- assign is_blog_post = true -%} + {%- endunless -%} +{%- endif -%} +{%- if site.serve_og_meta %} - + @@ -193,14 +199,14 @@ {%- endif -%} {%- endif %}