mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 05:36:07 +01:00
Ensure likes without titles are still shown
This commit is contained in:
parent
bfd73dba42
commit
2c41e09eeb
1 changed files with 5 additions and 1 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue