We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02b1139 commit 4a30518Copy full SHA for 4a30518
1 file changed
layouts/partials/footer.html
@@ -85,8 +85,10 @@ <h5 class="footer-h5"><a href="{{ .url }}">{{ .name }}</a></h5>
85
<div class="footer-bottom-middle">
86
<span>
87
<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>
+ {{ with .File }}
+ <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 }}
92
</span>
93
94
<a class="status-link" href="https://layer5.statuspage.io" target="_blank" rel="noreferrer">
0 commit comments