Verified Commit 6a0c36d9 authored by Aral Balkan's avatar Aral Balkan
Browse files

Wrap .GitInfo dependency in conditional to avoid Hugo runtime crash

parent c6c4964e
<footer class=" footline" >
<p><strong>Author:</strong> <a href='mailto:{{ .GitInfo.AuthorEmail }}'>{{ .GitInfo.AuthorName }}</a> <strong>Last modified:</strong> {{ .Lastmod.Format "02/01/2006" }} <strong>Words: </strong> ~{{ .FuzzyWordCount }} <strong>Reading time: </strong> {{ .ReadingTime }} min</p>
<p>
{{ if $.GitInfo }}
<strong>Author:</strong> <a href='mailto:{{ .GitInfo.AuthorEmail }}'>{{ .GitInfo.AuthorName }}</a> <strong>Last modified:</strong> {{ .Lastmod.Format "02/01/2006" }}
{{ end }}
<strong>Words: </strong> ~{{ .FuzzyWordCount }} <strong>Reading time: </strong> {{ .ReadingTime }} min</p>
</footer>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment