docs: remove leading slash in page reference in footer when present

This commit is contained in:
Nick Craig-Wood 2020-06-02 12:09:45 +01:00
parent 8d55367a6a
commit 3b20335d2a

View file

@ -40,7 +40,7 @@
<div class="card card-body">
<p style="font-size: 90%;">
&copy; <a href="https://www.craig-wood.com/nick/">Nick Craig-Wood</a> 2014-{{ now.Format "2006" }}<br>
{{ if .File}}Source file <a href="https://github.com/rclone/rclone/blob/master/docs/content/{{ .File.Path }}">{{ .File.Path }}</a>
{{ if .File}}{{ with $path := strings.TrimPrefix "/" .File.Path }}Source file <a href="https://github.com/rclone/rclone/blob/master/docs/content/{{ $path }}">{{ $path }}</a>{{ end }}
last updated <a href="https://github.com/rclone/rclone/commit/{{ with .GitInfo }}{{ .Hash }}{{ end }}">{{ .Lastmod.Format "2006-01-02" }}</a><br>{{end}}
Website hosted on a <a href="https://www.memset.com/dedicated-servers/vps/"><span style="font-weight: bold; font-family: arial black, arial, sans-serif; font-style: italic;">MEMSET CLOUD VPS</span></a>,
uploaded with <a href="https://rclone.org">rclone</a>