Fix references lookup

This commit is contained in:
JP Hastings-Spital 2024-05-17 00:24:44 +01:00
parent 94cdbeb136
commit 3453a8fb8e
3 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -12,6 +12,7 @@ tags:
- web
- HomeLab
- admarus
- offer
syndications:
---

View file

@ -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 -}}