aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app/layout/page.templ')
-rw-r--r--pkg/app/layout/page.templ5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/app/layout/page.templ b/pkg/app/layout/page.templ
index 41cdb8d..ebfe060 100644
--- a/pkg/app/layout/page.templ
+++ b/pkg/app/layout/page.templ
@@ -162,7 +162,10 @@ templ tabbedHeader(subTitle string, icon string, description string, tabs []SubT
<nav class="nav kk-package-nav">
for _, tab := range tabs {
<a class={ "nav-link", templ.KV("active", tab.Name == currentSubTab) } href={ tab.Link }>
- <i class={ tab.Icon } aria-hidden="true"></i> { tab.Name }
+ if tab.Icon != "" {
+ <i class={ tab.Icon } aria-hidden="true"></i>
+ }
+ { tab.Name }
if tab.BadgeValue != "" {
<span class="ml-1 badge badge-pill kk-misc-badge">{ tab.BadgeValue }</span>
}