Skip to content

Commit

Permalink
Allow navbarlogo to always show
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Jul 20, 2023
1 parent 2f2d9aa commit c435781
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{{- $title := .Site.Params.title }}
{{- $navbar := .Site.Params.navbar }}
{{- $navbarLogo := .Site.Params.navbarlogo }}
{{- $navbarLogoOn := .Site.Params.navbarlogoon }}
<nav id="nav" class="navbar is-fresh is-transparent no-shadow" role="navigation" aria-label="main navigation">
<div class="container is-max-widescreen">
<div class="navbar-brand">
{{ if not .IsHome }}
{{ if or (not .IsHome) ($navbarLogoOn) }}
{{- if $navbarLogo}}
<a class="navbar-item" href="{{ $navbarLogo.link }}">
<img class="navbar-logo" src="{{ printf "/images/%s" $navbarLogo.image | relURL }}" alt="{{ default (printf "%s logo" $title) $navbarLogo.altText }}">
Expand Down

0 comments on commit c435781

Please sign in to comment.