fix: title partial caching

This commit is contained in:
Ben Goldsworthy 2025-04-09 10:32:13 +02:00
parent 0ed6a77690
commit 2aac60ff32
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -86,7 +86,11 @@
</span>
{{ 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 -}}
<p style="display: none;">

View file

@ -4,7 +4,7 @@
{{ partialCached "header-tile.html" . .Key }}
{{ range .Pages }}
{{ if ( not ( .IsDescendant ( .GetPage "/cv/roles" ) ) ) }}
{{ partialCached "item-tile.html" . .Path }}
{{ partial "item-tile.html" . }}
{{ end }}
{{ end }}
{{ end }}