Add custom name

This commit is contained in:
BernatBC 2024-04-02 19:58:25 +02:00
parent a69388d9b8
commit 220b4aea52

View file

@ -52,6 +52,11 @@
{{ $sections = (index site.Data site.Language.Lang).sections }}
{{ end }}
{{ $navBarTitle := site.Params.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}}"