Add schema.org/BreadcrumbList support (grossss)

This commit is contained in:
Danielle McLean 2017-10-09 12:14:14 +11:00
parent 2fd0ff850b
commit 764935adbd
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
2 changed files with 27 additions and 5 deletions

View file

@ -12,12 +12,13 @@
<li .nav-item :Just route == mcurrentRoute:.active>
<a .nav-link href=@{route}>#{label}
$if not $ null parents
<ul .breadcrumb>
$forall bc <- parents
$if not $ null crumbs
<ol .breadcrumb>
$forall (route, title) <- crumbs
<li .breadcrumb-item>
<a href=@{fst bc}>#{snd bc}
<a href=@{route}>#{title}
<li .breadcrumb-item.active>#{title}
<script type="application/ld+json">#{preEscapedToMarkup jsonCrumbs}
$maybe msg <- mmsg
<div .alert.alert-info #message>#{msg}