diff --git a/_includes/components/reply-context.njk b/_includes/components/reply-context.njk index e5cb9a7..782f393 100644 --- a/_includes/components/reply-context.njk +++ b/_includes/components/reply-context.njk @@ -19,7 +19,13 @@ In reply to:
+ {% if youtubeVideoId %} + + {% else %} {% unfurl replyTo %} + {% endif %} {{ replyTo }} @@ -55,7 +61,13 @@ Reposted: + {% if youtubeVideoId %} + + {% else %} {% unfurl repostedUrl %} + {% endif %} {{ repostedUrl }} @@ -70,7 +82,13 @@ Bookmarked: + {% if youtubeVideoId %} + + {% else %} {% unfurl bookmarkedUrl %} + {% endif %} {{ bookmarkedUrl }} diff --git a/_includes/components/sections/featured-posts.njk b/_includes/components/sections/featured-posts.njk index 8ecb893..75230b1 100644 --- a/_includes/components/sections/featured-posts.njk +++ b/_includes/components/sections/featured-posts.njk @@ -59,7 +59,13 @@ {{ post.date | dateDisplay }} + {% if post.data.youtubeVideoId %} + + {% else %} {{ likedUrl | unfurlCard | safe }} + {% endif %} {{ likedUrl }} @@ -92,7 +98,13 @@ {{ post.data.title }} {% endif %} + {% if post.data.youtubeVideoId %} + + {% else %} {{ bookmarkedUrl | unfurlCard | safe }} + {% endif %} {{ bookmarkedUrl }} @@ -120,7 +132,13 @@ {{ post.date | dateDisplay }} + {% if post.data.youtubeVideoId %} + + {% else %} {{ repostedUrl | unfurlCard | safe }} + {% endif %} {{ repostedUrl }} @@ -148,7 +166,13 @@ {{ post.date | dateDisplay }} + {% if post.data.youtubeVideoId %} + + {% else %} {{ replyToUrl | unfurlCard | safe }} + {% endif %} {{ replyToUrl }} diff --git a/_includes/components/sections/recent-posts.njk b/_includes/components/sections/recent-posts.njk index ba631dd..6fa3638 100644 --- a/_includes/components/sections/recent-posts.njk +++ b/_includes/components/sections/recent-posts.njk @@ -75,7 +75,13 @@ {% endif %} {% include "components/garden-badge.njk" %} + {% if post.data.youtubeVideoId %} + + {% else %} {{ likedUrl | unfurlCard | safe }} + {% endif %} {{ likedUrl }} @@ -120,7 +126,13 @@ {{ post.data.title }} {% endif %} + {% if post.data.youtubeVideoId %} + + {% else %} {{ bookmarkedUrl | unfurlCard | safe }} + {% endif %} {{ bookmarkedUrl }} @@ -160,7 +172,13 @@ {% endif %} {% include "components/garden-badge.njk" %} + {% if post.data.youtubeVideoId %} + + {% else %} {{ repostedUrl | unfurlCard | safe }} + {% endif %} {{ repostedUrl }} @@ -200,7 +218,13 @@ {% endif %} {% include "components/garden-badge.njk" %} + {% if post.data.youtubeVideoId %} + + {% else %} {{ replyToUrl | unfurlCard | safe }} + {% endif %} {{ replyToUrl }} diff --git a/blog.njk b/blog.njk index e5a5a3d..f686b1e 100644 --- a/blog.njk +++ b/blog.njk @@ -136,7 +136,13 @@ permalink: "blog/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber {{ post.data.title }} {% endif %} + {% if post.data.youtubeVideoId %} + + {% else %} {% unfurl bookmarkedUrl %} + {% endif %} {{ bookmarkedUrl }} @@ -178,7 +184,13 @@ permalink: "blog/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber {% endif %} {% include "components/garden-badge.njk" %} + {% if post.data.youtubeVideoId %} + + {% else %} {% unfurl repostedUrl %} + {% endif %} {{ repostedUrl }} @@ -220,7 +232,13 @@ permalink: "blog/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber {% endif %} {% include "components/garden-badge.njk" %} + {% if post.data.youtubeVideoId %} + + {% else %} {% unfurl replyToUrl %} + {% endif %} {{ replyToUrl }} diff --git a/bookmarks.njk b/bookmarks.njk index e7919bb..fe0cfd9 100644 --- a/bookmarks.njk +++ b/bookmarks.njk @@ -55,7 +55,13 @@ permalink: "bookmarks/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageN {# Support both camelCase (Indiekit Eleventy preset) and underscore (legacy) property names #} {% set bookmarkedUrl = post.data.bookmarkOf or post.data.bookmark_of %} {% if bookmarkedUrl %} + {% if post.data.youtubeVideoId %} + + {% else %} {% unfurl bookmarkedUrl %} + {% endif %} {{ bookmarkedUrl }} diff --git a/replies.njk b/replies.njk index 88e076e..fcba4e0 100644 --- a/replies.njk +++ b/replies.njk @@ -59,7 +59,13 @@ permalink: "replies/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNum {% set replyTo = post.data.inReplyTo or post.data.in_reply_to %} {% if replyTo %} {% set protocol = replyTo | protocolType %} + {% if post.data.youtubeVideoId %} + + {% else %} {% unfurl replyTo %} + {% endif %}In reply to: {{ repostedUrl }}