Add custom name
This commit is contained in:
parent
a69388d9b8
commit
220b4aea52
1 changed files with 6 additions and 1 deletions
|
@ -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}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue