From bb5923f1138ec19ce96c62e4568a7e66adf8f957 Mon Sep 17 00:00:00 2001 From: Robb Shecter Date: Mon, 15 Apr 2024 16:28:45 -0600 Subject: [PATCH] Update navbar.html: check for .Params.hero_icon --- layouts/partials/navbar.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 04adb27e..67919b99 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -56,6 +56,12 @@ {{ if $external }}target="_blank" rel="noreferer"{{ end }} class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block {{ $activeClass }}" > + {{ with .Params.hero_icon -}} + + {{ partial "utils/icon.html" (dict "name" . "attributes" "height=18") }} + + {{- end }} + {{ or (T .Identifier) .Name | safeHTML }} {{- end -}}