Created
March 29, 2017 20:47
-
-
Save er1c/3adaf131f92417bcb27be7f26dfd8433 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final protected def makeBreadcrumbs(ctx: SearchCtx)(implicit config: WebConfigCtx): Seq[Breadcrumb] = { | |
val breadCrumbs = Vector.newBuilder[Breadcrumb] | |
if (ctx.isNotEmpty || config.site.ui.header.showHomepageBreadcrumbOnEmptySearchCtx) breadCrumbs ++= HomepageBreadcrumb | |
if (ctx.isNotEmpty) breadCrumbs ++= ctx.breadcrumbs | |
breadCrumbs.result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment