<xsl:param name='source-uri'
select='"//git.draconx.ca/gitweb/homepage.git/blob/"' />
<xsl:param name='site-title' select='"The Citrine Citadel"' />
+<xsl:param name='section-links' select='//document/section-links' />
<func:function name='f:ends-with'>
<xsl:param name='a' />
<xsl:variable name='fragment' select='concat("#", @id)' />
<xsl:copy>
<xsl:apply-templates select='node()|@*' />
- <xsl:text> </xsl:text>
- <small class='permalink'>
- (<a href='{$fragment}'><xsl:value-of select='$fragment' /></a>)
- </small>
+ <xsl:if test='$section-links = "yes"'>
+ <xsl:text> </xsl:text>
+ <small class='permalink'>
+ (<a href='{$fragment}'><xsl:value-of select='$fragment' /></a>)
+ </small>
+ </xsl:if>
</xsl:copy>
</xsl:template>
</head>
<body>
<xsl:apply-templates select='/document/xhtml:html/@*' />
+
+ <xsl:if test='/document/hierarchy/parent'>
+ <p id='sitetitle'>
+ <small><xsl:value-of select='$site-title' /></small>
+ </p>
+ <div id='breadcrumbs'>
+ <strong>Return to: </strong>
+ <ul>
+ <xsl:for-each select='/document/hierarchy/parent'>
+ <li><a href='{uri}'><xsl:value-of select='name'/></a></li>
+ </xsl:for-each>
+ </ul>
+ </div>
+ <hr />
+ </xsl:if>
+
<xsl:apply-templates select='/document/xhtml:html/node()' />
<hr />