From 3453a8fb8e8d4575d21eaab60d11abac130615d8 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Fri, 17 May 2024 00:24:44 +0100 Subject: [PATCH] Fix references lookup --- content/likes/2024-05-16/o8vr0/index.md | 4 +--- content/posts/ipfs-indieweb-offer/index.md | 1 + layouts/partials/reference.obj | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/content/likes/2024-05-16/o8vr0/index.md b/content/likes/2024-05-16/o8vr0/index.md index c1bca20d..64bd47ef 100644 --- a/content/likes/2024-05-16/o8vr0/index.md +++ b/content/likes/2024-05-16/o8vr0/index.md @@ -3,12 +3,10 @@ date: 2024-05-16T08:36:06.774+01:00 publishDate: 2024-05-16T08:36:06.774+01:00 likeOf: https://tonsky.me/blog/allekinos/ references: - https://tonskyMe/blog/allekinos/: - url: https://tonsky.me/blog/allekinos + - url: https://tonsky.me/blog/allekinos type: entry name: Going to the cinema is a data visualization problem summary: How I build a website for choosing movies - featured: https://dynogee.com/gen?id=24m2qx9uethuw6p&title=Going+to+the+cinema+is+a+data+visualization+problem published: 2024-05-14 author: https://www.facebook.com/nikitonsky publication: tonsky.me diff --git a/content/posts/ipfs-indieweb-offer/index.md b/content/posts/ipfs-indieweb-offer/index.md index 90ebf152..3f563355 100644 --- a/content/posts/ipfs-indieweb-offer/index.md +++ b/content/posts/ipfs-indieweb-offer/index.md @@ -12,6 +12,7 @@ tags: - web - HomeLab - admarus +- offer syndications: --- diff --git a/layouts/partials/reference.obj b/layouts/partials/reference.obj index 418b3c04..46a13a44 100644 --- a/layouts/partials/reference.obj +++ b/layouts/partials/reference.obj @@ -2,7 +2,7 @@ {{- $references := .references -}} {{- $reference := dict -}} {{- range $references -}} - {{- if eq .url $url -}} + {{- if eq (strings.TrimSuffix .url "/") (strings.TrimSuffix $url "/") -}} {{- $reference = . -}} {{- end }} {{- end -}}