forked from unimelb/unimelb-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_nav.slim
45 lines (43 loc) · 1.28 KB
/
_nav.slim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- unless opts[:navigation].nil? || opts[:navigation].empty?
div#sitemap role="navigation"
h2 Web.Unimelb
ul
- opts[:navigation].each do |nav_item|
li
a href=(nav_item[:href]) == nav_item[:title]
/ Nested menus for testing purposes (de-indent to enable)
li
a href="" Nested inner L1
.inner
ul
li: a href="#intro" Internal link
li: a href="" Bar
li
a href="" Nested inner L2
.inner
ul
li: a href="" Foo
li: a href="" Bar
li
a href="" Nested list L2
ul
li: a href="" Foo
li: a href="" Bar
li
a href="" Nested list L1
ul
li: a href="" Foo
li: a href="" Bar
li
a href="" Nested list L2
ul
li: a href="" Foo
li: a href="" Bar
li
a href="" Nested inner L2
.inner
ul
li: a href="" Foo
li: a href="" Bar
ul.meta
li: a href="https://github.com/unimelb/unimelb-design-system/issues" Report an issue