1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-23 21:53:25 +02:00

Add baseof layout

This commit is contained in:
Tiger Oakes
2020-09-05 22:30:58 -07:00
committed by XhmikosR
parent 933b6510ca
commit 4c9597ef7e
5 changed files with 110 additions and 139 deletions

View File

@@ -1,18 +1,6 @@
<!doctype html>
<html lang="en">
<head>
{{ partial "header" . }}
</head>
<body class="d-flex flex-column min-vh-100">
{{ partial "skippy" . }}
{{ partial "docs-navbar" . }}
{{ define "body_override" }}<body class="d-flex flex-column min-vh-100">{{ end }}
{{ define "main" }}
<main class="my-auto p-5" id="content">
{{ .Content }}
</main>
{{ partial "footer" . }}
{{ partial "scripts" . }}
</body>
</html>
{{ end }}

View 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>

View File

@@ -1,12 +1,4 @@
<!doctype html>
<html lang="en">
<head>
{{ partial "header" . }}
</head>
<body>
{{ partial "skippy" . }}
{{ partial "docs-navbar" . }}
{{ define "main" }}
{{ partial "docs-subnav" . }}
<div class="container-xxl my-md-4 bd-layout">
@@ -49,12 +41,9 @@
</div>
</main>
</div>
{{ partial "footer" . }}
{{ partial "scripts" . }}
{{ end }}
{{ define "footer" }}
{{ range .Page.Params.extra_js -}}
<script{{ with .async }} async{{ end }} src="{{ .src }}"></script>
{{- end -}}
</body>
</html>
{{ end }}

View File

@@ -1,21 +1,8 @@
<!doctype html>
<html lang="en">
<head>
{{ partial "header" . }}
</head>
<body>
{{ partial "skippy" . }}
{{ partial "docs-navbar" . }}
{{ define "main" }}
<main>
{{ partial "home/masthead" . }}
{{ partial "home/masthead-followup" . }}
</main>
{{ .Content }}
{{ partial "footer" . }}
{{ partial "scripts" . }}
</body>
</html>
{{ end }}

View File

@@ -1,13 +1,4 @@
<!doctype html>
<html lang="en">
<head>
{{ partial "header" . }}
</head>
<body>
{{ partial "skippy" . }}
{{ partial "docs-navbar" . }}
{{ define "main" }}
<header class="py-5 border-bottom">
<div class="container pt-md-1 pb-md-4">
<h1 class="bd-title mt-0">{{ .Title | markdownify }}</h1>
@@ -47,8 +38,4 @@
{{ end }}
</div>
</main>
{{ partial "footer" . }}
{{ partial "scripts" . }}
</body>
</html>
{{ end }}