From fefbc8245eaec45aa0edb0ffcba090f1b8548203 Mon Sep 17 00:00:00 2001 From: lvuch Date: Thu, 26 Apr 2018 19:26:32 -0700 Subject: [PATCH 1/2] remove if in class for sidebars --- content/_index.html | 14 ++++++++++++++ content/_index.md | 11 ----------- layouts/_default/list.html | 10 +++++----- layouts/_default/single.html | 11 +++++++++-- 4 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 content/_index.html delete mode 100644 content/_index.md diff --git a/content/_index.html b/content/_index.html new file mode 100644 index 00000000000..e91b9f46e8b --- /dev/null +++ b/content/_index.html @@ -0,0 +1,14 @@ +--- +title: "Documentation | Rancher Labs" +pageHeader: "Docs" +subTitle: "sub" +description: "" +--- + +
+
+
+ docs index +
+
+
diff --git a/content/_index.md b/content/_index.md deleted file mode 100644 index 3b87e52ad8b..00000000000 --- a/content/_index.md +++ /dev/null @@ -1,11 +0,0 @@ ---- - title: homepage - weight: 4 ---- - -homepage - -product -- rancher -- rancher os -- 1.6 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f94f4b4927d..96ca8a7cea9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -20,12 +20,12 @@ {{ partial "docs-nav.html" . }}
- {{ if (gt (len .Sections) 0) }} + - {{end}} -
+ +
{{ .Content }} @@ -81,8 +81,8 @@ {{ template "_internal/pagination.html" . }} {{ partial "breadcrumbs.html" . }}
-
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b493f884cf9..96ca8a7cea9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,13 +20,16 @@ {{ partial "docs-nav.html" . }}
+ -
+ +
- {{ .Content }} + {{ .Content }} + {{ range (.Paginator 5).Pages }}
@@ -78,6 +81,10 @@ {{ template "_internal/pagination.html" . }} {{ partial "breadcrumbs.html" . }}
+
{{ end }} From 6cb9fbf66daccc70b109ff4aadfe114783203b1f Mon Sep 17 00:00:00 2001 From: lvuch Date: Thu, 26 Apr 2018 19:26:32 -0700 Subject: [PATCH 2/2] remove if in class for sidebars --- content/_index.html | 14 ++++++++++++++ content/_index.md | 11 ----------- layouts/_default/list.html | 6 ++++-- layouts/_default/single.html | 11 +++++++++-- 4 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 content/_index.html delete mode 100644 content/_index.md diff --git a/content/_index.html b/content/_index.html new file mode 100644 index 00000000000..e91b9f46e8b --- /dev/null +++ b/content/_index.html @@ -0,0 +1,14 @@ +--- +title: "Documentation | Rancher Labs" +pageHeader: "Docs" +subTitle: "sub" +description: "" +--- + +
+
+
+ docs index +
+
+
diff --git a/content/_index.md b/content/_index.md deleted file mode 100644 index 3b87e52ad8b..00000000000 --- a/content/_index.md +++ /dev/null @@ -1,11 +0,0 @@ ---- - title: homepage - weight: 4 ---- - -homepage - -product -- rancher -- rancher os -- 1.6 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0420b66a08d..12b1bb123c5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -21,12 +21,14 @@ {{ $showSidebar := (gt (len ($.Scratch.Get "secondLevel").Sections) 0) }}
+ {{ if $showSidebar }} {{end}}
+
{{ .Content }} @@ -82,8 +84,8 @@ {{ template "_internal/pagination.html" . }} {{ partial "breadcrumbs.html" . }}
-
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b493f884cf9..96ca8a7cea9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,13 +20,16 @@ {{ partial "docs-nav.html" . }}
+ -
+ +
- {{ .Content }} + {{ .Content }} + {{ range (.Paginator 5).Pages }}
@@ -78,6 +81,10 @@ {{ template "_internal/pagination.html" . }} {{ partial "breadcrumbs.html" . }}
+
{{ end }}