aboutsummaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-10-29 23:28:41 +0100
committerAdrian Kummerlaender2014-10-29 23:28:41 +0100
commit671083eaf309888525e857cf4883cafb353d9887 (patch)
treed17241c1481599d693c2cd265f67de4b2db6b26f /utility
parente37a4a5a4d2a1df82dbe4658317dbab2d0df7e31 (diff)
downloadblog.kummerlaender.eu-671083eaf309888525e857cf4883cafb353d9887.tar
blog.kummerlaender.eu-671083eaf309888525e857cf4883cafb353d9887.tar.gz
blog.kummerlaender.eu-671083eaf309888525e857cf4883cafb353d9887.tar.bz2
blog.kummerlaender.eu-671083eaf309888525e857cf4883cafb353d9887.tar.lz
blog.kummerlaender.eu-671083eaf309888525e857cf4883cafb353d9887.tar.xz
blog.kummerlaender.eu-671083eaf309888525e857cf4883cafb353d9887.tar.zst
blog.kummerlaender.eu-671083eaf309888525e857cf4883cafb353d9887.zip
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.xsl33
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>