mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-23 13:43:11 +02:00
Add baseof layout
This commit is contained in:
@@ -1,18 +1,6 @@
|
|||||||
<!doctype html>
|
{{ define "body_override" }}<body class="d-flex flex-column min-vh-100">{{ end }}
|
||||||
<html lang="en">
|
{{ define "main" }}
|
||||||
<head>
|
|
||||||
{{ partial "header" . }}
|
|
||||||
</head>
|
|
||||||
<body class="d-flex flex-column min-vh-100">
|
|
||||||
{{ partial "skippy" . }}
|
|
||||||
|
|
||||||
{{ partial "docs-navbar" . }}
|
|
||||||
|
|
||||||
<main class="my-auto p-5" id="content">
|
<main class="my-auto p-5" id="content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</main>
|
</main>
|
||||||
|
{{ end }}
|
||||||
{{ partial "footer" . }}
|
|
||||||
{{ partial "scripts" . }}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
20
site/layouts/_default/baseof.html
Normal file
20
site/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
{{ partial "header" . }}
|
||||||
|
</head>
|
||||||
|
{{ block "body_override" . }}<body>{{ end }}
|
||||||
|
{{ partial "skippy" . }}
|
||||||
|
|
||||||
|
{{ partial "docs-navbar" . }}
|
||||||
|
|
||||||
|
{{ block "main" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "footer" . }}
|
||||||
|
{{ partial "scripts" . }}
|
||||||
|
|
||||||
|
{{ block "footer" . }}
|
||||||
|
{{ end }}
|
||||||
|
</body>
|
||||||
|
</html>
|
@@ -1,12 +1,4 @@
|
|||||||
<!doctype html>
|
{{ define "main" }}
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{{ partial "header" . }}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{{ partial "skippy" . }}
|
|
||||||
|
|
||||||
{{ partial "docs-navbar" . }}
|
|
||||||
{{ partial "docs-subnav" . }}
|
{{ partial "docs-subnav" . }}
|
||||||
|
|
||||||
<div class="container-xxl my-md-4 bd-layout">
|
<div class="container-xxl my-md-4 bd-layout">
|
||||||
@@ -49,12 +41,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ partial "footer" . }}
|
{{ define "footer" }}
|
||||||
{{ partial "scripts" . }}
|
|
||||||
|
|
||||||
{{ range .Page.Params.extra_js -}}
|
{{ range .Page.Params.extra_js -}}
|
||||||
<script{{ with .async }} async{{ end }} src="{{ .src }}"></script>
|
<script{{ with .async }} async{{ end }} src="{{ .src }}"></script>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</body>
|
{{ end }}
|
||||||
</html>
|
|
||||||
|
@@ -1,21 +1,8 @@
|
|||||||
<!doctype html>
|
{{ define "main" }}
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{{ partial "header" . }}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{{ partial "skippy" . }}
|
|
||||||
|
|
||||||
{{ partial "docs-navbar" . }}
|
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
{{ partial "home/masthead" . }}
|
{{ partial "home/masthead" . }}
|
||||||
{{ partial "home/masthead-followup" . }}
|
{{ partial "home/masthead-followup" . }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
{{ end }}
|
||||||
{{ partial "footer" . }}
|
|
||||||
{{ partial "scripts" . }}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
@@ -1,13 +1,4 @@
|
|||||||
<!doctype html>
|
{{ define "main" }}
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{{ partial "header" . }}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{{ partial "skippy" . }}
|
|
||||||
|
|
||||||
{{ partial "docs-navbar" . }}
|
|
||||||
|
|
||||||
<header class="py-5 border-bottom">
|
<header class="py-5 border-bottom">
|
||||||
<div class="container pt-md-1 pb-md-4">
|
<div class="container pt-md-1 pb-md-4">
|
||||||
<h1 class="bd-title mt-0">{{ .Title | markdownify }}</h1>
|
<h1 class="bd-title mt-0">{{ .Title | markdownify }}</h1>
|
||||||
@@ -47,8 +38,4 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
{{ end }}
|
||||||
{{ partial "footer" . }}
|
|
||||||
{{ partial "scripts" . }}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
Reference in New Issue
Block a user