Skip to content

Commit 4a30518

Browse files
author
Vivek Vishal
authored
fix nil ref error
Signed-off-by: Vivek Vishal <vishalvivek488@gmail.com>
1 parent 02b1139 commit 4a30518

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

layouts/partials/footer.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ <h5 class="footer-h5"><a href="{{ .url }}">{{ .name }}</a></h5>
8585
<div class="footer-bottom-middle">
8686
<span>
8787
<span class="edit-page">
88-
<a href="https://github.com/layer5io/docs/tree/master{{ strings.TrimPrefix hugo.WorkingDir .Page.File.Filename }}" target="_blank"
89-
rel="noreferrer">Edit This Page </a>
88+
{{ with .File }}
89+
<a href="https://github.com/layer5io/docs/tree/master{{ strings.TrimPrefix hugo.WorkingDir .Filename }}" target="_blank"
90+
rel="noreferrer">Edit This Page</a>
91+
{{ end }}
9092
</span>
9193
<span>
9294
<a class="status-link" href="https://layer5.statuspage.io" target="_blank" rel="noreferrer">

0 commit comments

Comments
 (0)