Ensure likes without titles are still shown

This commit is contained in:
JP Hastings-Spital 2024-06-24 23:54:18 +01:00
parent bfd73dba42
commit 2c41e09eeb

View file

@ -13,7 +13,11 @@
{{- else if .Params.likeOf -}}
{{- $ref := partial "reference.obj" (dict "url" .Params.likeOf "references" .Params.references) -}}
{{- if $ref -}}
{{ index (split $ref.name "|" | first 1) 0 }}
{{- with index (split $ref.name "|" | first 1) 0 -}}
{{- . -}}
{{- else -}}
{{- partial "partials/fallback-title.txt" . -}}
{{- end -}}
{{- else -}}
{{- partial "partials/fallback-title.txt" . -}}
{{- end -}}