Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

docs: Fix warnings after hugo upgrade to v0.55

Nick Craig-Woodfb6966b5fe05
diff --git a/docs/layouts/chrome/header.html b/docs/layouts/chrome/header.html
index d9bfa108a..549e1b34c 100644
--- a/docs/layouts/chrome/header.html
+++ b/docs/layouts/chrome/header.html
@@ -5,5 +5,5 @@
<title>{{ .Title }}</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ template "chrome/header.includes.html" . }}
- {{ if .RSSLink }}<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }}
+ {{ $RSSLink := "" }}{{ with .OutputFormats.Get "RSS" }}{{ $RSSLink = .RelPermalink }}{{ end }}{{ if $RSSLink }}<link href="{{ $RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }}
</head>
diff --git a/docs/layouts/section/commands.html b/docs/layouts/section/commands.html
index ad6f9e396..9a4940eb9 100644
--- a/docs/layouts/section/commands.html
+++ b/docs/layouts/section/commands.html
@@ -13,7 +13,7 @@
<p>This is an index of all commands in rclone.</p>
<ul>
{{ range .Data.Pages }}
- <li><a href="{{ .URL }}">{{ .Title }}</a></li>
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
<p>Docs autogenerated by <a href="https://github.com/spf13/cobra">Cobra</a>.</p>