{{- /* Copy of Hextra's navbar-title.html, with the displayed title taken from params.navbar.title, so it can differ from the site title used in . */ -}} {{- $logoPath := .Site.Params.navbar.logo.path | default "images/logo.svg" -}} {{- $logoLink := .Site.Params.navbar.logo.link | default .Site.Home.RelPermalink -}} {{- $logoWidth := .Site.Params.navbar.logo.width | default "20" -}} {{- $logoHeight := .Site.Params.navbar.logo.height | default "20" -}} {{- $logoDarkPath := .Site.Params.navbar.logo.dark | default $logoPath -}} {{- $title := .Site.Params.navbar.title | default .Site.Title -}} <a class="hx:flex hx:items-center hx:hover:opacity-75 hx:ltr:mr-auto hx:rtl:ml-auto" href="{{ $logoLink }}"> {{- $displayTitle := (.Site.Params.navbar.displayTitle | default true) }} {{- if (.Site.Params.navbar.displayLogo | default true) }} <img class="hx:mr-2 hx:block hx:dark:hidden" src="{{ $logoPath | relURL }}" alt="{{ cond $displayTitle `Logo` $title }}" height="{{ $logoHeight }}" width="{{ $logoWidth }}" /> <img class="hx:mr-2 hx:hidden hx:dark:block" src="{{ $logoDarkPath | relURL }}" alt="{{ cond $displayTitle `Dark Logo` $title }}" height="{{ $logoHeight }}" width="{{ $logoWidth }}" /> {{- end }} {{- if $displayTitle }} <span class="hx:mr-2 hx:font-extrabold hx:inline hx:select-none">{{- $title -}}</span> {{- end }} </a>