diff --git a/themes/geekboot/layouts/_default/list.html b/themes/geekboot/layouts/_default/list.html index 027fb7dd..d9c85362 100644 --- a/themes/geekboot/layouts/_default/list.html +++ b/themes/geekboot/layouts/_default/list.html @@ -1,51 +1,3 @@ {{ define "main" }} -
- - -
-
-
-
- {{ partial "version-dropdown-menu" . }} -
-

{{ .Title | markdownify }}

-
-
- - {{ if (ne .Page.Params.toc false) }} -
- {{ if gt (len .TableOfContents) 40 }} - - On this page -
-
- {{ .TableOfContents }} -
- {{ end }} -
- {{ end }} - -
- {{- if eq .Page.Params.version "master" -}} - {{ partialCached "master-version-alert" . }} - {{- else if ne .Page.Params.version .Site.Params.latest -}} - {{ partialCached "old-version-alert" . .Section }} - {{ end }} - {{ .Content }} -
-
-
+{{ partial "single-list" . }} {{ end }} diff --git a/themes/geekboot/layouts/_default/single.html b/themes/geekboot/layouts/_default/single.html index 78fbe062..6bd4c7bf 100644 --- a/themes/geekboot/layouts/_default/single.html +++ b/themes/geekboot/layouts/_default/single.html @@ -1,50 +1,3 @@ {{ define "main" }} -
- - -
-
-
-
- {{ partial "version-dropdown-menu" . }} -
-

{{ .Title | markdownify }}

-
-
- - {{ if (ne .Page.Params.toc false) }} -
- {{ if gt (len .TableOfContents) 40 }} - - On this page -
-
- {{ .TableOfContents }} -
- {{ end }} -
- {{ end }} - -
- {{- if eq .Page.Params.version "master" -}} - {{ partialCached "master-version-alert" . }} - {{- else if ne .Page.Params.version .Site.Params.latest -}} - {{ partialCached "old-version-alert" . .Section }} - {{ end }} - {{ .Content }} -
-
-
-{{ end }} +{{ partial "single-list" . }} +{{ end }} \ No newline at end of file diff --git a/themes/geekboot/layouts/partials/feature-state-alert.html b/themes/geekboot/layouts/partials/feature-state-alert.html new file mode 100644 index 00000000..3cea90cc --- /dev/null +++ b/themes/geekboot/layouts/partials/feature-state-alert.html @@ -0,0 +1,21 @@ +
+
+
+ +
+
+ {{ if eq .Page.Params.state "alpha"}} + This is an alpha feature. + {{ end }} + {{ if eq .Page.Params.state "beta" }} + This is a beta feature. + {{ end }} +
+
+
+

+ Crossplane may change or drop this feature at any time.
+ For more information read the Crossplane feature lifecycle. +

+
+
diff --git a/themes/geekboot/layouts/partials/single-list.html b/themes/geekboot/layouts/partials/single-list.html new file mode 100644 index 00000000..b6f3d50d --- /dev/null +++ b/themes/geekboot/layouts/partials/single-list.html @@ -0,0 +1,72 @@ +
+ + +
+
+
+
+ {{ if $.Param "docs" }} + {{ partial "version-dropdown-menu" . }} + {{ end }} +
+

{{ .Title | markdownify }}

+
+ {{ if .Page.Params.state }} + {{ partial "feature-state-alert" . }} + {{ end }} +
+ + +
+ {{ if (ne .Page.Params.toc false) }} + {{ if gt (len .TableOfContents) 40 }} + + On this page +
+ + + {{ end }} + +
+ {{ end }} + +
+ {{ if $.Param "docs" }} + {{- if eq .Page.Params.version "master" -}} + {{ partialCached "master-version-alert" . }} + {{- else if ne .Page.Params.version .Site.Params.latest -}} + {{ partialCached "old-version-alert" . .Section }} + {{ end }} + {{ end }} + {{ .Content }} +
+
+