feat(breadcrumb): Add breadcrumb
This commit is contained in:
committed by
Benedikt Rötsch
parent
0deaca4e01
commit
52de0d10f3
@@ -38,7 +38,6 @@ html
|
||||
.header__logo
|
||||
a.header__logo-link(href='/')
|
||||
img(src='/images/logo.svg' alt='Contentful Example App')
|
||||
|
||||
nav.header__navigation.main-navigation
|
||||
ul
|
||||
li
|
||||
@@ -49,7 +48,14 @@ html
|
||||
a(href=`/about${queryString}` class=(currentPath.startsWith('/about') ? 'active' : '')) About
|
||||
li
|
||||
a(href=`/settings${queryString}` class=(currentPath.startsWith('/settings') ? 'active' : '')) Settings
|
||||
|
||||
if currentPath !== '/'
|
||||
.main__breadcrumb
|
||||
.layout-centered
|
||||
nav.breadcrumb
|
||||
ul
|
||||
each item in breadcrumb
|
||||
li
|
||||
a(href=`${item.url}${queryString}`) #{item.label}
|
||||
.main__content
|
||||
block content
|
||||
|
||||
|
||||
Reference in New Issue
Block a user