diff options
Removed remnants of layout iteration and cleaned CSS
* both the CSS and master template markup contained cruft from the previous blog version and its slightly different layout
* removed unnecessary distinction between footer and its _taglist_ as the old footer element is now only a _taglist_
** promoted previous `last_line` to `footer` as it is the actual footer
* unified the different list styles as much as possible
** e.g. introduced new `topline` attribute instead of declaring the title-separator line for each style separately
** removed `taglist` class by declaring its rules directly in the `tags` id
** removed now unnecessary `archivtag` class
** introduced `sparselist` class which enables list such as the one contained the latest microblog entries to have extra padding
* merged `list_tags` helper template into primary master template
** this separation was not only unnecessary but decreased the readability as it provided no real encapsulation
Diffstat (limited to 'utility')
-rw-r--r-- | utility/master.xsl | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/utility/master.xsl b/utility/master.xsl index 8ca4a04..84ecfe7 100644 --- a/utility/master.xsl +++ b/utility/master.xsl @@ -14,19 +14,7 @@ indent="no" /> -<xsl:variable name="root" select="/datasource"/> - -<xsl:template name="list_tags"> - <ul> - <xsl:for-each select="$root/meta/tags/entry"> - <li> - <a href="/tag/{@handle}"> - <xsl:value-of select="@handle"/> - </a> - </li> - </xsl:for-each> - </ul> -</xsl:template> +<xsl:variable name="root" select="datasource"/> <xsl:template match="/"> <html> @@ -47,7 +35,7 @@ <body> <div id="wrapper"> <div id="content"> - <div id="nav_wrap"> + <div id="navigation"> <h1> <xsl:value-of select="$root/meta/title"/> </h1> @@ -75,12 +63,19 @@ <xsl:apply-templates /> </div> - <div id="footer_wrap"> - <div class="taglist"> - <xsl:call-template name="list_tags"/> - </div> + <div id="tags"> + <ul> + <xsl:for-each select="datasource/meta/tags/entry"> + <li> + <a href="/tag/{@handle}"> + <xsl:value-of select="@handle"/> + </a> + </li> + </xsl:for-each> + </ul> </div> - <div id="last_line"> + + <div id="footer"> <a href="/page/static_xslt/">Made with XSLT</a> <ul> |