aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/02_augment/articles.xsl2
-rw-r--r--source/99_result/main.css10
-rw-r--r--source/99_result/overview.xsl54
3 files changed, 51 insertions, 15 deletions
diff --git a/source/02_augment/articles.xsl b/source/02_augment/articles.xsl
index 36e1c7c..0f32987 100644
--- a/source/02_augment/articles.xsl
+++ b/source/02_augment/articles.xsl
@@ -33,7 +33,7 @@
<xsl:template match="content[@type = 'xhtml']" mode="article">
<content>
- <xsl:apply-templates select="div/p[1]" mode="article"/>
+ <xsl:apply-templates select="div/p[1]/node()" mode="article"/>
</content>
</xsl:template>
diff --git a/source/99_result/main.css b/source/99_result/main.css
index 5f473a7..9408c1f 100644
--- a/source/99_result/main.css
+++ b/source/99_result/main.css
@@ -1,9 +1,9 @@
body{font:1em Droid Sans,sans-serif,Verdana,Arial,FreeSans;color:#272828}
#content{max-width:45em;margin:auto}
-h1{width:100%;border-bottom:0.2em solid #e3e8e8}
a{text-decoration:underline;color:#272828}
a:hover{color:black}
-h2{font-size:1.3em;text-decoration:none;color:#272828;font-weight:bold}
+h1{margin:.5em 0;border-bottom:.2em solid #e3e8e8}
+h2{margin:0;font-size:1.3em;color:#272828;font-weight:bold}
h2 a{text-decoration:none}
h3{font-size:1.2em;color:#F80;font-weight:bold;margin-bottom:.2em;border-bottom:.1em solid #e3e8e8}
h3 span{font-size:0.9em;color:#272828;font-weight:normal}
@@ -15,3 +15,9 @@ dt {float:left;clear:left;width:7em}
dd {padding-bottom:0.75em}
.info{font-size:.8em;margin-bottom:.5em;display:block}
.info a{margin:0 .1em 0 .1em}
+.menuhead{border-bottom:0.2em solid #e3e8e8;overflow:hidden;padding-top:1.5em}
+.menuhead h2{float:left}
+.menuhead ul {float:right}
+.menuhead ul li{float:left;list-style-type:none;padding:0 .2em}
+.menuhead ul li a{text-decoration:none;color:#272828;background:#e3e8e8;border-radius:.3em;padding:.2em}
+.menuhead ul li a:hover{text-decoration:underline}
diff --git a/source/99_result/overview.xsl b/source/99_result/overview.xsl
index d16906e..dbd77f1 100644
--- a/source/99_result/overview.xsl
+++ b/source/99_result/overview.xsl
@@ -70,7 +70,7 @@
<xsl:value-of select="$commit/author"/>
</span>
- <xsl:apply-templates select="$commit/message/*" mode="xhtml"/>
+ <xsl:apply-templates select="$commit/message/node()" mode="xhtml"/>
</xsl:template>
<xsl:template match="timeline/commit">
@@ -99,7 +99,14 @@
<xsl:value-of select="author"/>
</span>
- <xsl:apply-templates select="content/*" mode="xhtml"/>
+ <p>
+ <xsl:apply-templates select="content/node()" mode="xhtml"/>
+ <xsl:text> </xsl:text>
+
+ <a href="{link}">
+ <xsl:text>↪</xsl:text>
+ </a>
+ </p>
</xsl:template>
<xsl:template match="datasource">
@@ -119,19 +126,42 @@
<xsl:value-of select="$root/meta/title"/>
</h1>
- <h2>
- <a href="http://blog.kummerlaender.eu">
- <xsl:text>Latest articles</xsl:text>
- </a>
- </h2>
+ <div class="menuhead">
+ <h2>
+ <a href="http://blog.kummerlaender.eu">
+ <xsl:text>Latest articles</xsl:text>
+ </a>
+ </h2>
+ <ul>
+ <li>
+ <a href="http://blog.kummerlaender.eu/archive">Archive</a>
+ </li>
+ <li>
+ <a href="http://blog.kummerlaender.eu/atom.xml">Feed</a>
+ </li>
+ </ul>
+ </div>
<xsl:apply-templates select="articles/entry"/>
- <h2>
- <a href="{$root/meta/url}/timeline.xml">
- <xsl:text>Latest commits</xsl:text>
- </a>
- </h2>
+ <div class="menuhead">
+ <h2>
+ <a href="http://code.kummerlaender.eu">
+ <xsl:text>Latest commits</xsl:text>
+ </a>
+ </h2>
+ <ul>
+ <li>
+ <a href="https://github.com/KnairdA">GitHub</a>
+ </li>
+ <li>
+ <a href="http://blog.kummerlaender.eu/category/projects">Projects</a>
+ </li>
+ <li>
+ <a href="{$root/meta/url}/timeline.xml">Feed</a>
+ </li>
+ </ul>
+ </div>
<xsl:apply-templates select="timeline/commit[position() &lt;= 5]"/>
</div>