Skip to content
Permalink
Browse files
Fix for hugo warning about .Path
  • Loading branch information
afs committed Jan 28, 2022
1 parent 929b323 commit 70a5775211a6e6909c967ebf9e7096962ab65910
Showing 1 changed file with 8 additions and 2 deletions.
@@ -134,8 +134,14 @@
<li><a href="http://www.apache.org/security/">Security</a></li>
</ul>
</li>

<li id="edit"><a href="{{ .Site.Params.siteRepositoryUrl }}/edit/{{ .Site.Params.siteRepositorySourceBranch }}/source/{{ .Page.Path }}" title="Edit this page on GitHub"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a></li>
{{/* Fixup for Hugo warning : was .Page.Path */ -}}
{{ $path := "" }}
{{ with .File }}
{{ $path = .Path }}
{{ else }}
{{ $path = .Path }}
{{ end }}
<li id="edit"><a href="{{ .Site.Params.siteRepositoryUrl }}/edit/{{ .Site.Params.siteRepositorySourceBranch }}/source/{{ $path }}" title="Edit this page on GitHub"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a></li>
</ul>
</div>
</div>

0 comments on commit 70a5775

Please sign in to comment.