Remove site name from likeof titles

This commit is contained in:
JP Hastings-Spital 2024-05-17 10:34:36 +01:00
parent 4603d1550e
commit d45fdd7075

View file

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