Skip to content
Snippets Groups Projects
Commit 4d4168e0 authored by Martyn Welch's avatar Martyn Welch
Browse files

Fix .File use warning


A warning was missed whilst implementing the source file link:

    .File.Path on zero object. Wrap it in if or with: {{ with .File }}{{ .Path }}{{ end }}

Update to use the recommended format.

Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
parent 27dcaf1c
No related branches found
No related tags found
1 merge request!223Fix .File use warning
Pipeline #247389 passed
......@@ -61,7 +61,7 @@
</ul>
</p>
<p class="credits text-center text-muted">
<a href="{{ $.Site.Params.sourceLink}}{{ $.File.Path }}">View page source</a>
<a href="{{ $.Site.Params.sourceLink}}{{ with .File }}{{ .Path }}{{ end }}">View page source</a>
</p>
<!-- Please don't remove this, keep my open source work credited :) -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment