Skip to content

Commit

Permalink
Merge pull request #7883 from qmonmert/fix/7882
Browse files Browse the repository at this point in the history
Tikui: add link to the home page on navbar
  • Loading branch information
pascalgrimaud authored Oct 30, 2023
2 parents ffbe2cf + 624b29a commit 2cb2fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/style/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/main/style/layout-documentation.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 2cb2fb8

Please sign in to comment.