Skip to content

Commit

Permalink
Support hidden sections in site template.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehni committed Mar 17, 2021
1 parent dc9ea53 commit 50afd58
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions xstream-distribution/src/templates/skin.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
Copyright (C) 2005, 2006 Joe Walnes.
Copyright (C) 2006, 2007, 2008 XStream committers.
Copyright (C) 2006, 2007, 2008, 2021 XStream committers.
All rights reserved.
The software in this package is published under the terms of the BSD
Expand Down Expand Up @@ -44,18 +44,20 @@ <h1 class="FirstChild">${title}</h1>

<div class="SidePanel" id="left">
<#list sitemap.sections as section>
<div class="MenuGroup">
<h1>${section.name}</h1>
<ul>
<#list section.entries as entry>
<#if entry = page>
<li class="currentLink">${entry.title}</li>
<#else>
<li><a href="${entry.href}">${entry.title}</a></li>
</#if>
</#list>
</ul>
</div>
<#if !section.name?starts_with("!")>
<div class="MenuGroup">
<h1>${section.name}</h1>
<ul>
<#list section.entries as entry>
<#if entry = page>
<li class="currentLink">${entry.title}</li>
<#else>
<li><a href="${entry.href}">${entry.title}</a></li>
</#if>
</#list>
</ul>
</div>
</#if>
</#list>
</div>

Expand Down

0 comments on commit 50afd58

Please sign in to comment.