diff --git a/site/layouts/_default/baseof.html b/site/layouts/_default/baseof.html new file mode 100644 index 000000000000..713ab2864ad0 --- /dev/null +++ b/site/layouts/_default/baseof.html @@ -0,0 +1,20 @@ + + + + {{ partial "header" . }} + + {{ block "body_override" . }}{{ end }} + {{ partial "skippy" . }} + + {{ partial "docs-navbar" . }} + + {{ block "main" . }} + {{ end }} + + {{ partial "footer" . }} + {{ partial "scripts" . }} + + {{ block "footer" . }} + {{ end }} + + diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index c2e3776669f9..34ac933f2b11 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -1,37 +1,25 @@ - - - - {{ partial "header" . }} - - - {{ partial "skippy" . }} +{{ define "main" }} +
+
+
+ {{ partial "docs-sidebar" . }} +
- {{ partial "docs-navbar" . }} + {{ if (eq .Page.Params.toc true) }} + + {{ end }} -
-
-
- {{ partial "docs-sidebar" . }} +
+
+ View on GitHub +

{{ .Title | markdownify }}

- - {{ if (eq .Page.Params.toc true) }} - - {{ end }} - -
-
- View on GitHub -

{{ .Title | markdownify }}

-
-

{{ .Page.Params.Description | markdownify }}

- {{ partial "ads" . }} - {{ .Content }} -
-
+

{{ .Page.Params.Description | markdownify }}

+ {{ partial "ads" . }} + {{ .Content }} +
- - {{ partial "scripts" . }} - - +
+{{ end }} diff --git a/site/layouts/_default/home.html b/site/layouts/_default/home.html index c03de11abbed..6126e4d26558 100644 --- a/site/layouts/_default/home.html +++ b/site/layouts/_default/home.html @@ -1,19 +1,6 @@ - - - - {{ partial "header" . }} - - - {{ partial "skippy" . }} +{{ define "main" }} + {{ partial "home/masthead" . }} + {{ partial "home/masthead-followup" . }} - {{ partial "docs-navbar" . }} - - {{ partial "home/masthead" . }} - {{ partial "home/masthead-followup" . }} - - {{ .Content }} - - {{ partial "footer" . }} - {{ partial "scripts" . }} - - + {{ .Content }} +{{ end }} diff --git a/site/layouts/_default/redirect.html b/site/layouts/_default/redirect.html index f675d0c6cf0f..63ded089e872 100644 --- a/site/layouts/_default/redirect.html +++ b/site/layouts/_default/redirect.html @@ -1,11 +1 @@ - - - - - - {{ .Page.Params.redirect | absURL }} - - - - - +{{ partial "redirect" (.Page.Params.redirect | absURL) }} diff --git a/site/layouts/_default/single.html b/site/layouts/_default/single.html index 58b55331c112..13f7ddd2e780 100644 --- a/site/layouts/_default/single.html +++ b/site/layouts/_default/single.html @@ -1,52 +1,39 @@ - - - - {{ partial "header" . }} - - - {{ partial "skippy" . }} - - {{ partial "docs-navbar" . }} - -
-
-

{{ .Title | markdownify }}

-

{{ .Page.Params.Description | markdownify }}

- {{ if eq .Title "Examples" }} - - {{- end -}} +{{ define "main" }} +
+
+

{{ .Title | markdownify }}

+

{{ .Page.Params.Description | markdownify }}

+ {{ if eq .Title "Examples" }} + - {{ partial "ads" . }} -
+ {{- end -}} +
+ {{ partial "ads" . }} +
-
- {{ .Content }} +
+ {{ .Content }} - {{ if eq .Title "Examples" }} -
-
-
-
- {{ partial "icons/droplet-fill.svg" (dict "width" "32" "height" "32") }} -
-

Go further with Bootstrap Themes

-

- Need something more than these examples? Take Bootstrap to the next level with premium themes from the official Bootstrap Themes marketplace. They’re built as their own extended frameworks, rich with new components and plugins, documentation, and powerful build tools. -

- Browse themes + {{ if eq .Title "Examples" }} +
+
+
+
+ {{ partial "icons/droplet-fill.svg" (dict "width" "32" "height" "32") }}
- Bootstrap Themes +

Go further with Bootstrap Themes

+

+ Need something more than these examples? Take Bootstrap to the next level with premium themes from the official Bootstrap Themes marketplace. They’re built as their own extended frameworks, rich with new components and plugins, documentation, and powerful build tools. +

+ Browse themes
- {{ end }} -
- - {{ partial "footer" . }} - {{ partial "scripts" . }} - - + Bootstrap Themes +
+ {{ end }} + +{{ end }} diff --git a/site/layouts/alias.html b/site/layouts/alias.html index a6c397a7f495..35765c490767 100644 --- a/site/layouts/alias.html +++ b/site/layouts/alias.html @@ -1,11 +1 @@ - - - - - - {{ .Permalink }} - - - - - +{{ partial "redirect" .Permalink }} diff --git a/site/layouts/partials/redirect.html b/site/layouts/partials/redirect.html new file mode 100644 index 000000000000..cee885bf8c34 --- /dev/null +++ b/site/layouts/partials/redirect.html @@ -0,0 +1,11 @@ + + + + + + {{ . }} + + + + +