fix: error file is nil; wrap it in if or with from Hugo 0.123.0

This commit is contained in:
Jimmy Cai 2024-03-02 22:50:57 +01:00
parent 4a607c1bff
commit 7e650e63b2

View File

@ -1,4 +1,4 @@
<article id="{{ .File.UniqueID }}"> <article id="{{ with .File }}{{ .UniqueID }}{{ end }}">
<a href="{{ .RelPermalink }}"> <a href="{{ .RelPermalink }}">
<div class="article-details"> <div class="article-details">
<h2 class="article-title"> <h2 class="article-title">