diff --git a/layouts/partials/item-tile.html b/layouts/partials/item-tile.html index 7c10329..c7c265a 100644 --- a/layouts/partials/item-tile.html +++ b/layouts/partials/item-tile.html @@ -86,7 +86,11 @@ {{ end }} - {{- partialCached "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) .File.Filename -}} + {{- with .File -}} + {{- partialCached "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) .Filename -}} + {{- else -}} + {{- partial "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) -}} + {{- end -}}