diff options
Included unaugmented tag datasource into the page footer
* the master template generates a list of all available tags into the footer
** this currently requires the unaugmented tags datasource to be included into every template making use of the master template
Diffstat (limited to 'utility')
-rw-r--r-- | utility/master.xsl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/utility/master.xsl b/utility/master.xsl index e9e2661..da4343b 100644 --- a/utility/master.xsl +++ b/utility/master.xsl @@ -18,6 +18,18 @@ <xsl:variable name="url" select="datasource/meta/url"/> +<xsl:template name="list_tags"> + <ul> + <xsl:for-each select="datasource/tags/entry"> + <li> + <a href="{$url}/tag/{@handle}"> + <xsl:value-of select="@handle"/> + </a> + </li> + </xsl:for-each> + </ul> +</xsl:template> + <xsl:template match="/"> <html> <head> @@ -48,6 +60,10 @@ <xsl:apply-templates /> </div> <div id="footer_wrap"> + <div class="right taglist"> + Tags: + <xsl:call-template name="list_tags"/> + </div> </div> <div id="last_line"> <a href="https://github.com/KnairdA/InputXSLT">Made with XSLT</a> |