diff --git a/_includes/components/sections/recent-posts.njk b/_includes/components/sections/recent-posts.njk index a0fbc58..2e7b36e 100644 --- a/_includes/components/sections/recent-posts.njk +++ b/_includes/components/sections/recent-posts.njk @@ -40,11 +40,10 @@ {{ post.date | dateDisplay }} -

- - {{ likedUrl }} - -

+ {% unfurl likedUrl %} + + {{ likedUrl }} + {% if post.templateContent %}
{{ post.templateContent | safe }} @@ -74,11 +73,10 @@ {{ post.data.title }} {% endif %} -

- - {{ bookmarkedUrl }} - -

+ {% unfurl bookmarkedUrl %} + + {{ bookmarkedUrl }} + {% if post.templateContent %}
{{ post.templateContent | safe }} @@ -103,11 +101,10 @@ {{ post.date | dateDisplay }}
-

- - {{ repostedUrl }} - -

+ {% unfurl repostedUrl %} + + {{ repostedUrl }} + {% if post.templateContent %}
{{ post.templateContent | safe }} @@ -132,11 +129,10 @@ {{ post.date | dateDisplay }}
-

- - {{ replyToUrl }} - -

+ {% unfurl replyToUrl %} + + {{ replyToUrl }} + {% if post.templateContent %}
{{ post.templateContent | safe }} diff --git a/bookmarks.njk b/bookmarks.njk index 109da37..f3ae93a 100644 --- a/bookmarks.njk +++ b/bookmarks.njk @@ -54,14 +54,10 @@ 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 %} -

- - - - - {{ bookmarkedUrl }} - -

+ {% unfurl bookmarkedUrl %} + + {{ bookmarkedUrl }} + {% endif %} {% if post.templateContent %}
diff --git a/likes.njk b/likes.njk index 08a561c..30306df 100644 --- a/likes.njk +++ b/likes.njk @@ -52,11 +52,10 @@ permalink: "likes/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumbe {# Support both camelCase (Indiekit Eleventy preset) and underscore (legacy) property names #} {% set likedUrl = post.data.likeOf or post.data.like_of %} {% if likedUrl %} -

- - {{ likedUrl }} - -

+ {% unfurl likedUrl %} + + {{ likedUrl }} + {% endif %} {% if post.templateContent %}
diff --git a/replies.njk b/replies.njk index f127cc2..07255f3 100644 --- a/replies.njk +++ b/replies.njk @@ -58,9 +58,10 @@ 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 %} + {% unfurl replyTo %}

In reply to: - + {{ replyTo | replace("https://", "") | replace("http://", "") | truncate(60) }} {% if protocol == "atmosphere" %} diff --git a/reposts.njk b/reposts.njk index 7c3a1ab..5e2c2ff 100644 --- a/reposts.njk +++ b/reposts.njk @@ -57,12 +57,10 @@ permalink: "reposts/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNum {# Support both camelCase (Indiekit Eleventy preset) and underscore (legacy) property names #} {% set repostedUrl = post.data.repostOf or post.data.repost_of %} {% if repostedUrl %} -

- Reposted: - - {{ repostedUrl }} - -

+ {% unfurl repostedUrl %} + + {{ repostedUrl }} + {% endif %} {% if post.templateContent %}