From 1b12d5d3467dcc7c5e8ac6848116b8a5e4c271d5 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 22 May 2020 16:16:40 +0100 Subject: [PATCH] docs: move most of the chrome into baseof.html as per a modern hugo install --- docs/layouts/404.html | 7 +-- docs/layouts/_default/baseof.html | 59 +++++++++++++++++++++ docs/layouts/_default/single.html | 27 ++-------- docs/layouts/chrome/footer.copyright.html | 15 ------ docs/layouts/chrome/footer.html | 6 --- docs/layouts/chrome/header.html | 9 ---- docs/layouts/chrome/header.includes.html | 3 -- docs/layouts/chrome/menu.html | 58 ++++++++++---------- docs/layouts/chrome/meta.html | 13 ----- docs/layouts/index.html | 19 ++----- docs/layouts/page/single.html | 24 --------- docs/layouts/section/commands.html | 64 ++++++++--------------- 12 files changed, 119 insertions(+), 185 deletions(-) create mode 100644 docs/layouts/_default/baseof.html delete mode 100644 docs/layouts/chrome/footer.copyright.html delete mode 100644 docs/layouts/chrome/footer.html delete mode 100644 docs/layouts/chrome/header.html delete mode 100644 docs/layouts/chrome/header.includes.html delete mode 100644 docs/layouts/chrome/meta.html delete mode 100644 docs/layouts/page/single.html diff --git a/docs/layouts/404.html b/docs/layouts/404.html index 65387aa4e..039be0131 100644 --- a/docs/layouts/404.html +++ b/docs/layouts/404.html @@ -1,7 +1,4 @@ {{ define "main"}} -
-
-

Go Home

-
-
+

Page not found :-(

+Click here to return to the homepage. {{ end }} diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html new file mode 100644 index 000000000..d422ab0c7 --- /dev/null +++ b/docs/layouts/_default/baseof.html @@ -0,0 +1,59 @@ + + + + + + + + + + + + {{ block "title" . }}{{ .Title }}{{ end }} + + + + + {{ $RSSLink := "" }}{{ with .OutputFormats.Get "RSS" }}{{ $RSSLink = .RelPermalink }}{{ end }}{{ if $RSSLink }}{{ end }} + + + {{ template "chrome/navbar.html" . }} +
+
+
+ {{ block "main" . }} + {{ end }} +
+
+ {{ template "chrome/menu.html" . }} +
+
+ {{ block "footer" . }} + + {{ end }} +
+ + + + + + diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html index 979609e0c..9983b0816 100644 --- a/docs/layouts/_default/single.html +++ b/docs/layouts/_default/single.html @@ -1,24 +1,3 @@ -{{ template "chrome/header.html" . }} - -{{ template "chrome/navbar.html" . }} -
-
-
-
- - - -
- {{ .Content }} -
-
-
- - -
- {{ template "chrome/menu.html" . }} -
-
- {{ template "chrome/footer.copyright.html" . }} -
-{{ template "chrome/footer.html" . }} +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/docs/layouts/chrome/footer.copyright.html b/docs/layouts/chrome/footer.copyright.html deleted file mode 100644 index 65147af43..000000000 --- a/docs/layouts/chrome/footer.copyright.html +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/docs/layouts/chrome/footer.html b/docs/layouts/chrome/footer.html deleted file mode 100644 index ad02e324e..000000000 --- a/docs/layouts/chrome/footer.html +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/layouts/chrome/header.html b/docs/layouts/chrome/header.html deleted file mode 100644 index 549e1b34c..000000000 --- a/docs/layouts/chrome/header.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - {{ template "chrome/meta.html" . }} - {{ .Title }} - - {{ template "chrome/header.includes.html" . }} - {{ $RSSLink := "" }}{{ with .OutputFormats.Get "RSS" }}{{ $RSSLink = .RelPermalink }}{{ end }}{{ if $RSSLink }}{{ end }} - diff --git a/docs/layouts/chrome/header.includes.html b/docs/layouts/chrome/header.includes.html deleted file mode 100644 index 718332230..000000000 --- a/docs/layouts/chrome/header.includes.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/layouts/chrome/menu.html b/docs/layouts/chrome/menu.html index a3bf93537..daeb6306e 100644 --- a/docs/layouts/chrome/menu.html +++ b/docs/layouts/chrome/menu.html @@ -1,30 +1,30 @@ -
-
- Share and Enjoy. -
-
- -
-
+
+
+ Share and Enjoy. +
+
+ +
+
-
-
- Links. -
- -
+
+
+ Links. +
+ +
diff --git a/docs/layouts/chrome/meta.html b/docs/layouts/chrome/meta.html deleted file mode 100644 index 2ff706e21..000000000 --- a/docs/layouts/chrome/meta.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - diff --git a/docs/layouts/index.html b/docs/layouts/index.html index b766d5985..9983b0816 100644 --- a/docs/layouts/index.html +++ b/docs/layouts/index.html @@ -1,16 +1,3 @@ -{{ template "chrome/header.html" . }} - -{{ template "chrome/navbar.html" . }} -
-
-
- {{ .Content }} -
- -
- {{ template "chrome/menu.html" . }} -
-
-{{ template "chrome/footer.copyright.html" . }} -
-{{ template "chrome/footer.html" . }} +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/docs/layouts/page/single.html b/docs/layouts/page/single.html deleted file mode 100644 index 979609e0c..000000000 --- a/docs/layouts/page/single.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ template "chrome/header.html" . }} - -{{ template "chrome/navbar.html" . }} -
-
-
-
- - - -
- {{ .Content }} -
-
-
- - -
- {{ template "chrome/menu.html" . }} -
-
- {{ template "chrome/footer.copyright.html" . }} -
-{{ template "chrome/footer.html" . }} diff --git a/docs/layouts/section/commands.html b/docs/layouts/section/commands.html index 93d7eac03..4e2ec2f9c 100644 --- a/docs/layouts/section/commands.html +++ b/docs/layouts/section/commands.html @@ -1,41 +1,23 @@ -{{ template "chrome/header.html" . }} - - {{ template "chrome/navbar.html" . }} -
-
-
-
-
-

Rclone Commands

-

- This is an index of all commands in rclone. Run "rclone - command --help" to see the help for that command. -

- - - - - - - - - {{ range .Data.Pages }} - - - - - {{ end }} - -
CommandDescription
{{ .Title }}{{ .Description }}
-
-
-
- - -
- {{ template "chrome/menu.html" . }} -
-
- {{ template "chrome/footer.copyright.html" . }} -
-{{ template "chrome/footer.html" . }} +{{ define "main" }} +

Rclone Commands

+

+ This is an index of all commands in rclone. Run "rclone + command --help" to see the help for that command. +

+ + + + + + + + + {{ range .Data.Pages }} + + + + + {{ end }} + +
CommandDescription
{{ .Title }}{{ .Description }}
+{{ end }}