From 624b29a731bfa9f6d9803a53c6ec50e83318fca1 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 29 Oct 2023 16:49:39 +0100 Subject: [PATCH] Tikui: add link to the home page on navbar --- src/main/style/index.pug | 2 ++ src/main/style/layout-documentation.pug | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/style/index.pug b/src/main/style/index.pug index e61293dbeba..14af6d339c5 100644 --- a/src/main/style/index.pug +++ b/src/main/style/index.pug @@ -19,6 +19,8 @@ block content p.tikui-paragraph The Style have an #[a.tikui-link(href='http://atomicdesign.bradfrost.com' target='_blank') Atomic Design] organization. .tikui-vertical-spacing--line ul.tikui-list + li + a.tikui-link(href='[[TIKUI_BASEPATH]]index.html') Home li a.tikui-link(href='[[TIKUI_BASEPATH]]atom/atom.html') Atoms li diff --git a/src/main/style/layout-documentation.pug b/src/main/style/layout-documentation.pug index 02614b1125f..3c1b48b69f8 100644 --- a/src/main/style/layout-documentation.pug +++ b/src/main/style/layout-documentation.pug @@ -7,6 +7,7 @@ block header -let active=''; -const isActive = current => current === active; +tikui-navbar('[[TIKUI_BASEPATH]]index.html', 'Tikui') + +tikui-navbar-item('[[TIKUI_BASEPATH]]index.html', 'Home', isActive('')) +tikui-navbar-item('[[TIKUI_BASEPATH]]atom/atom.html', 'Atoms', isActive('atom')) +tikui-navbar-item('[[TIKUI_BASEPATH]]molecule/molecule.html', 'Molecules', isActive('molecule')) +tikui-navbar-item('[[TIKUI_BASEPATH]]organism/organism.html', 'Organisms', isActive('organism'))