mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
no need for checks or conditions
This commit is contained in:
parent
39e4615763
commit
0fcb0af131
@ -1,32 +1,23 @@
|
||||
<nav class="bd-subnavbar pt-2 pb-3 pb-md-2">
|
||||
<div class="container d-flex align-items-md-center flex-wrap">
|
||||
<div class="d-flex align-items-center mr-md-auto order-2 order-md-0">
|
||||
<div class="d-flex align-items-center mr-sm-auto order-2 order-md-0">
|
||||
<div class="d-none d-md-block">
|
||||
<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") }}
|
||||
</div>
|
||||
|
||||
{{ 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 }}
|
||||
<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" . }}
|
||||
|
||||
{{ 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 mb-2 mb-md-0">
|
||||
<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>
|
||||
|
||||
{{ if eq .Page.Layout "docs" }}
|
||||
<button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3 order-3 ml-auto" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
|
||||
{{ partial "icons/menu.svg" (dict "width" "30" "height" "30") }}
|
||||
</button>
|
||||
{{ end }}
|
||||
<button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3 order-3 ml-auto" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
|
||||
{{ partial "icons/menu.svg" (dict "width" "30" "height" "30") }}
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user