diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk
index 28c5ef9..073b096 100644
--- a/_includes/layouts/base.njk
+++ b/_includes/layouts/base.njk
@@ -13,7 +13,6 @@
{# OpenGraph meta tags #}
{% set ogTitle = title | default(site.name) %}
{% set ogDesc = description | default(content | ogDescription(200)) | default(site.description) %}
- {% set contentImage = content | extractFirstImage %}
{# Normalize photo - could be array for multi-photo posts #}
{% set ogPhoto = photo %}
{% if ogPhoto %}
@@ -31,8 +30,6 @@
{% elif image and image != "" and (image | length) > 10 %}
- {% elif contentImage and contentImage != "" and (contentImage | length) > 10 %}
-
{% else %}
{% endif %}
@@ -41,7 +38,7 @@
{# Twitter Card meta tags #}
- {% set hasExplicitImage = (ogPhoto and ogPhoto != "" and (ogPhoto | length) > 10) or (image and image != "" and (image | length) > 10) or (contentImage and contentImage != "" and (contentImage | length) > 10) %}
+ {% set hasExplicitImage = (ogPhoto and ogPhoto != "" and (ogPhoto | length) > 10) or (image and image != "" and (image | length) > 10) %}
@@ -49,8 +46,6 @@
{% elif image and image != "" and (image | length) > 10 %}
- {% elif contentImage and contentImage != "" and (contentImage | length) > 10 %}
-
{% else %}
{% endif %}
@@ -98,8 +93,8 @@
- {% if site.markdownAgents.enabled and page.url and page.url.startsWith('/articles/') %}
-
+ {% if site.markdownAgents.enabled and page.url and page.url.startsWith('/articles/') and page.url != '/articles/' %}
+
{% endif %}