fix: title partial caching
This commit is contained in:
parent
0ed6a77690
commit
2aac60ff32
2 changed files with 6 additions and 2 deletions
|
@ -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;">
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue