fix(breadcrumb): correct positioning of breadcrumb
This commit is contained in:
committed by
Benedikt Rötsch
parent
7e49f18db1
commit
1ca400234e
@@ -1,8 +1,11 @@
|
||||
extends layout
|
||||
|
||||
include mixins/_breadcrumb
|
||||
include mixins/_lesson
|
||||
|
||||
block content
|
||||
.layout-no-sidebar
|
||||
+breadcrumb
|
||||
.layout-sidebar
|
||||
section.layout-sidebar__sidebar
|
||||
.layout-sidebar__sidebar-header
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
extends layout
|
||||
|
||||
include mixins/_breadcrumb
|
||||
include mixins/_courseCard
|
||||
|
||||
block content
|
||||
.layout-no-sidebar
|
||||
+breadcrumb
|
||||
.layout-sidebar
|
||||
section.layout-sidebar__sidebar
|
||||
.layout-sidebar__sidebar-header
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
extends layout
|
||||
|
||||
include mixins/_breadcrumb
|
||||
|
||||
block content
|
||||
.layout-centered
|
||||
+breadcrumb
|
||||
.error
|
||||
h1 Oops Something went wrong (#{error.status})
|
||||
h2 Try:
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
extends layout
|
||||
|
||||
include mixins/_breadcrumb
|
||||
include mixins/_moduleCopy
|
||||
include mixins/_moduleHeroImage
|
||||
include mixins/_moduleHighlightedCourse
|
||||
|
||||
block content
|
||||
.modules-container
|
||||
each module in landingPage.fields.contentModules
|
||||
case module.sys.contentType.sys.id
|
||||
when 'landingPageModuleCopy'
|
||||
+moduleCopy(module)
|
||||
if currentPath !== '/'
|
||||
.layout-centered
|
||||
+breadcrumb
|
||||
each module in landingPage.fields.contentModules
|
||||
case module.sys.contentType.sys.id
|
||||
when 'landingPageModuleCopy'
|
||||
+moduleCopy(module)
|
||||
|
||||
when 'landingPageModuleHeroImage'
|
||||
+moduleHeroImage(module)
|
||||
when 'landingPageModuleHeroImage'
|
||||
+moduleHeroImage(module)
|
||||
|
||||
when 'landingPageModuleHighlightedCourse'
|
||||
+moduleHighlightedCourse(module, module.fields.course)
|
||||
when 'landingPageModuleHighlightedCourse'
|
||||
+moduleHighlightedCourse(module, module.fields.course)
|
||||
|
||||
@@ -48,14 +48,6 @@ 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
|
||||
|
||||
|
||||
6
views/mixins/_breadcrumb.pug
Normal file
6
views/mixins/_breadcrumb.pug
Normal file
@@ -0,0 +1,6 @@
|
||||
mixin breadcrumb
|
||||
nav.breadcrumb
|
||||
ul
|
||||
each item in breadcrumb
|
||||
li
|
||||
a(href=`${item.url}${queryString}`) #{item.label}
|
||||
@@ -1,7 +1,10 @@
|
||||
extends layout
|
||||
|
||||
include mixins/_breadcrumb
|
||||
|
||||
block content
|
||||
.layout-centered-small
|
||||
+breadcrumb
|
||||
h1= title
|
||||
p To query and get content using the APIs, client applications need to authenticate with both the Space ID and an access token.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user