<!--*/-->
<html
xmlns="http://www.w3.org/1999/xhtml"
- xmlns:layout="http://www.thymeleaf.org"
- layout:decorator="templates/layout"
- th:with="
+ th:replace="~{/templates/layout.html :: layout(
uri='$sitePath$alignedFileName',
- json='merge:{"pages":{#set($sep = "")#foreach($page in $pages)$sep"$sitePath$page.uri":{"name":"$page.name",#if(!$page.childs.isEmpty())"childs":{#set($csep = "")#foreach($child in $page.childs.entrySet())$csep"$sitePath$child.key":"$child.value"#set($csep = ",")#end},#end"crumbs":[#set($csep = "")#if($siteCrumbs)$siteCrumbs#set($csep = ",")#end#foreach($crumb in $page.crumbs)$csep{"uri":"$sitePath$crumb.uri","name":"$crumb.name"}#set($csep = ",")#end]#if($page.title),"title":"$page.title"#end#if($page.alt),"alt":"$page.alt"#end#if($page.img),"img":"$page.img"#end}#set($sep = ",")#end}#if($siteTitle),"site_title":"$siteTitle"#end#if($siteAlt),"site_alt":"$siteAlt"#end#if($siteImg),"site_img":"$siteImg"#end}'
- "
+ json='MERGE:
+ {
+ "_names": {
+ #set($sep = "")
+ #foreach($page in $pages)
+ $sep
+ "$sitePath$page.uri": "$page.name"
+ #set($sep = ",")
+ #end
+ },
+ "_childs": {
+ #set($sep = "")
+ #foreach($page in $pages)
+ #if(!$page.childs.isEmpty())
+ $sep
+ "$sitePath$page.uri": [
+ #set($csep = "")
+ #foreach($child in $page.childs.entrySet())
+ $csep
+ "$sitePath$child.key"
+ #set($csep = ",")
+ #end
+ ]
+ #set($sep = ",")
+ #end
+ #end
+ },
+ "_crumbs": {
+ #set($sep = "")
+ #foreach($page in $pages)
+ $sep
+ "$sitePath$page.uri": [
+ #set($csep = "")
+ #if($siteCrumbs)
+ $siteCrumbs
+ #set($csep = ",")
+ #end
+ #foreach($crumb in $page.crumbs)
+ $csep
+ "$sitePath$crumb.uri"
+ #set($csep = ",")
+ #end
+ ]
+ #set($sep = ",")
+ #end
+ }
+ }
+ ')}"
>
<head>
- <title>#if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end</title>
+ <title id="title">#if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end</title>
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
<link rel="canonical" href="$sitePath$alignedFileName"/>
</head>
</ol>
</p>
<hr />
- <article class="main" layout:fragment="maincontent">
+ <article class="maincontent">
$bodyContent
</article>
<hr />