Fix 'render of section failed' build issue after hugo update

This commit is contained in:
ItsDrike 2024-06-05 14:58:43 +02:00
parent 903123081b
commit 01d192db11
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
<div class="item-list-group">
<ul class="item-list-items">
{{ range .Pages.ByTitle }}
<li class="item-list-item" data-id="{{ with .File}}{{ .File.UniqueID }}{{ end }}">
<li class="item-list-item" data-id="{{ with .File}}{{ .UniqueID }}{{ end }}">
{{ partial "list_item.html" (dict "context" . "dateformat" "Jan 02, 2006") }}
</li>
{{ end }}

View file

@ -25,7 +25,7 @@
<!-- List all posts in this year group -->
<ul class="item-list-items">
{{ range .Pages }}
<li class="item-list-item" data-id="{{ with .File}}{{ .File.UniqueID }}{{ end }}">
<li class="item-list-item" data-id="{{ with .File}}{{ .UniqueID }}{{ end }}">
{{ partial "list_item.html" (dict "context" . "dateformat" "Jan 02") }}
</li>
{{ end }}