Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
5027a808
Commit
5027a808
authored
5 years ago
by
Mark Otto
Committed by
Mark Otto
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Move subnav to partial, take first pass at conditionalizing breadcrumb links
parent
b08d2b6a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
site/layouts/_default/docs.html
+2
-17
site/layouts/_default/docs.html
site/layouts/_default/home.html
+1
-0
site/layouts/_default/home.html
site/layouts/_default/single.html
+1
-15
site/layouts/_default/single.html
site/layouts/partials/docs-subnav.html
+25
-0
site/layouts/partials/docs-subnav.html
with
29 additions
and
32 deletions
+29
-32
site/layouts/_default/docs.html
+
2
-
17
View file @
5027a808
...
@@ -7,24 +7,9 @@
...
@@ -7,24 +7,9 @@
{{ partial "skippy" . }}
{{ partial "skippy" . }}
{{ partial "docs-navbar" . }}
{{ partial "docs-navbar" . }}
{{ partial "docs-subnav" . }}
<nav
class=
"bd-subnavbar pt-2 pb-3 pb-md-2 mb-4"
>
<div
class=
"container my-4"
>
<div
class=
"container d-flex align-items-md-center flex-column flex-md-row"
>
<div
class=
"d-flex align-items-center mb-2 mb-md-0 mr-md-auto"
>
<a
class=
"link-dark"
href=
"/"
onclick=
"ga('send', 'event', 'Subnav', 'click', 'Bootstrap');"
>
Bootstrap
</a>
{{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
<a
class=
"link-dark"
href=
"/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/"
onclick=
"ga('send', 'event', 'Subnav', 'click', 'Documentation');"
>
Documentation
</a>
{{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
{{ partial "docs-versions" . }}
</div>
<form
class=
"bd-search d-flex align-items-center"
>
<input
type=
"search"
class=
"form-control"
id=
"search-input"
placeholder=
"Search..."
aria-label=
"Search for..."
autocomplete=
"off"
data-docs-version=
"{{ .Site.Params.docs_version }}"
>
</form>
</div>
</nav>
<div
class=
"container"
>
<div
class=
"row flex-xl-nowrap"
>
<div
class=
"row flex-xl-nowrap"
>
<div
class=
"col-md-3 bd-sidebar"
>
<div
class=
"col-md-3 bd-sidebar"
>
{{ partial "docs-sidebar" . }}
{{ partial "docs-sidebar" . }}
...
...
This diff is collapsed.
Click to expand it.
site/layouts/_default/home.html
+
1
-
0
View file @
5027a808
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
{{ partial "skippy" . }}
{{ partial "skippy" . }}
{{ partial "docs-navbar" . }}
{{ partial "docs-navbar" . }}
{{ partial "docs-subnav" . }}
{{ partial "home/masthead" . }}
{{ partial "home/masthead" . }}
{{ partial "home/masthead-followup" . }}
{{ partial "home/masthead-followup" . }}
...
...
This diff is collapsed.
Click to expand it.
site/layouts/_default/single.html
+
1
-
15
View file @
5027a808
...
@@ -7,21 +7,7 @@
...
@@ -7,21 +7,7 @@
{{ partial "skippy" . }}
{{ partial "skippy" . }}
{{ partial "docs-navbar" . }}
{{ partial "docs-navbar" . }}
{{ partial "docs-subnav" . }}
<nav
class=
"bd-subnavbar pt-2 pb-3 pb-md-2 mb-4"
>
<div
class=
"container d-flex align-items-md-center flex-column flex-md-row"
>
<div
class=
"d-flex align-items-center mb-2 mb-md-0 mr-md-auto"
>
<a
class=
"link-dark"
href=
"/"
onclick=
"ga('send', 'event', 'Subnav', 'click', 'Bootstrap');"
>
Bootstrap
</a>
{{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
<a
class=
"link-dark"
href=
"/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/"
onclick=
"ga('send', 'event', 'Subnav', 'click', 'Documentation');"
>
Documentation
</a>
{{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
{{ partial "docs-versions" . }}
{{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
<span
class=
"text-muted"
>
Examples
</span>
</div>
{{ partial "docs-search" . }}
</div>
</nav>
<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"
>
...
...
This diff is collapsed.
Click to expand it.
site/layouts/partials/docs-subnav.html
0 → 100644
+
25
-
0
View file @
5027a808
<nav
class=
"bd-subnavbar pt-2 pb-3 pb-md-2"
>
<div
class=
"container d-flex align-items-md-center flex-column flex-md-row"
>
<div
class=
"d-flex align-items-center mb-2 mb-md-0 mr-md-auto"
>
<a
class=
"link-dark"
href=
"/"
onclick=
"ga('send', 'event', 'Subnav', 'click', 'Bootstrap');"
>
Bootstrap
</a>
{{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
{{ if (eq .Page.Layout "docs") or (eq .Page.Layout "single") }}
<a
class=
"link-dark"
href=
"/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/"
onclick=
"ga('send', 'event', 'Subnav', 'click', 'Documentation');"
>
Documentation
</a>
{{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
{{ end }}
{{ partial "docs-versions" . }}
{{ if eq .Page.Title "Examples" }}
{{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
<span
class=
"text-muted"
>
Examples
</span>
{{ end }}
</div>
<form
class=
"bd-search d-flex align-items-center"
>
<input
type=
"search"
class=
"form-control"
id=
"search-input"
placeholder=
"Search..."
aria-label=
"Search for..."
autocomplete=
"off"
data-docs-version=
"{{ .Site.Params.docs_version }}"
>
</form>
</div>
</nav>
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment