Skip to content

Css updates#273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions layouts/partials/navbar.html
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
-}}
{{ $baseURL := urls.Parse $.Site.Params.Baseurl -}}

<nav class="td-navbar js-navbar-scroll
<nav class="td-navbar js-navbar-scroll flex-wrap
{{- if $cover }} td-navbar-cover {{- end }}" data-bs-theme="dark">
<div class="container-fluid flex-column flex-md-row">
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
Expand All@@ -16,14 +16,13 @@
{{ end -}}
{{ end -}}
</span>
{{- /**/ -}}
<span class="navbar-brand__name">
<span class="navbar-brand__name d-none d-lg-inline">
<!-- Place the site title on every page header, except the home page -->
{{ if not .IsHome }}
{{ .Site.Title }}
{{ end }}

</span>

{{- /**/ -}}
</a>
<div class="td-navbar-nav-scroll ms-md-auto" id="main_navbar">
Expand DownExpand Up@@ -68,8 +67,20 @@
{{ end -}}
</ul>
</div>
<div class="d-none d-lg-block">
{{ partial "search-input.html" . }}
<!-- Show the search bar inline at XL and larger -->
<div class="d-none d-xl-block">
{{ partial "search-input.html" . }}
</div>

{{ if .IsHome }}
<!-- If home page, drop the search bar to a second row at smaller screens -->
<div class="d-block d-xl-none w-100 mt-2 text-end">
<div class="row justify-content-end">
<div class="col-auto">
{{ partial "search-input.html" . }}
</div>
</div>
</div>
{{ end }}
</div>
</nav>
close