Merge branch 'main' into bootstrap5

This commit is contained in:
Emruz Hossain 2024-04-20 23:50:43 +06:00 committed by GitHub
commit 2b423d5752
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,6 +52,11 @@
{{ $sections = (index site.Data site.Language.Lang).sections }}
{{ end }}
{{ $navBarTitle := (index site.Data site.Language.Lang).site.navBarTitle }}
{{ if not $navBarTitle }}
{{ $navBarTitle = site.Title }}
{{ end }}
<nav class="navbar navbar-expand-xl top-navbar shadow {{ if .IsHome}}transparent-navbar homepage{{end}}" id="top-navbar">
<div class="container">
{{ if not .IsHome }}
@ -63,7 +68,7 @@
{{ if $logo }}
<img src="{{ $logo }}" id="logo" alt="Logo">
{{ end }}
{{- site.Title -}}
{{- $navBarTitle -}}
</a>
<button
class="navbar-toggler {{if .IsHome}}navbar-dark{{else}}navbar-light{{end}}"