layouts: Use .File.Path

This commit is contained in:
Bjørn Erik Pedersen 2022-01-04 13:55:21 +01:00
parent d3050b78c9
commit 948d6d69d9
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F

View File

@ -14,7 +14,7 @@
<a href="{{ .Permalink }}">{{ .Title }}</a>
</td>
<td class="pv2 ph3">
<a href="{{.Site.Params.ghrepo}}blob/master/content/{{.Lang }}/{{.Path}}">
<a href="{{.Site.Params.ghrepo}}blob/master/content/{{.Lang }}/{{.File.Path}}">
{{ with .GitInfo }}{{ .Subject }}{{ else }}Source{{ end }}
</a>
</td>