Skip to content

Commit

Permalink
Fix 'render of section failed' build issue after hugo update
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Jun 5, 2024
1 parent 9031230 commit 01d192d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/posts/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h3 class="item-list-year" id="{{ $year }}">
<!-- 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 }}
Expand Down

0 comments on commit 01d192d

Please sign in to comment.