aboutsummaryrefslogtreecommitdiff
path: root/source/99_result
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-08-10 21:37:10 +0200
committerAdrian Kummerlaender2014-08-10 21:37:10 +0200
commit95937e66c08159bc772c88b730f843b649defcd1 (patch)
tree1336e6108ad4761905a728b44136ecc928e44d1e /source/99_result
parent71fcf7c296f16e31fe0e75eee08059456c080206 (diff)
downloadblog.kummerlaender.eu-95937e66c08159bc772c88b730f843b649defcd1.tar
blog.kummerlaender.eu-95937e66c08159bc772c88b730f843b649defcd1.tar.gz
blog.kummerlaender.eu-95937e66c08159bc772c88b730f843b649defcd1.tar.bz2
blog.kummerlaender.eu-95937e66c08159bc772c88b730f843b649defcd1.tar.lz
blog.kummerlaender.eu-95937e66c08159bc772c88b730f843b649defcd1.tar.xz
blog.kummerlaender.eu-95937e66c08159bc772c88b730f843b649defcd1.tar.zst
blog.kummerlaender.eu-95937e66c08159bc772c88b730f843b649defcd1.zip
Added microblog to archive page
* changed archive page markup two enable setting two columns in CSS
Diffstat (limited to 'source/99_result')
-rw-r--r--source/99_result/archive.xsl37
1 files changed, 32 insertions, 5 deletions
diff --git a/source/99_result/archive.xsl b/source/99_result/archive.xsl
index 476b321..34dc81c 100644
--- a/source/99_result/archive.xsl
+++ b/source/99_result/archive.xsl
@@ -7,22 +7,40 @@
<xsl:include href="[utility/master.xsl]"/>
<xsl:variable name="meta">
- <datasource type="main" mode="full" source="target/03_meta/articles.xml" target="articles"/>
- <datasource type="support" mode="full" source="target/03_meta/meta.xml" target="meta"/>
+ <datasource type="main" mode="full" source="target/03_meta/articles.xml" target="articles"/>
+ <datasource type="support" mode="full" source="target/03_meta/meta.xml" target="meta"/>
+ <datasource type="support" mode="full" source="source/00_content/microblog.xml" target="microblog"/>
<target mode="plain" value="archive/index.html"/>
</xsl:variable>
<xsl:template name="title-text">Archive</xsl:template>
+<xsl:template match="datasource">
+ <div class="archiv columns">
+ <xsl:apply-templates />
+ </div>
+</xsl:template>
+
<xsl:template match="articles">
- <div class="left articlelist archivlist">
- Past articles:
+ <div class="column articlelist archivlist">
+ <xsl:text>Past articles:</xsl:text>
<ol>
- <xsl:apply-templates />
+ <xsl:apply-templates select="entry"/>
</ol>
</div>
</xsl:template>
+<xsl:template match="microblog">
+ <div class="column taglist archivtag">
+ <div>
+ <a href="https://twitter.com/KnairdA">Microblog:</a>
+ <ul class="tweetlist">
+ <xsl:apply-templates select="item[substring(text, 1, 1) != '@'][position() &lt;= 7]" />
+ </ul>
+ </div>
+ </div>
+</xsl:template>
+
<xsl:template match="articles/entry">
<li class="dateitem">
<xsl:value-of select="@handle"/>
@@ -38,4 +56,13 @@
</li>
</xsl:template>
+<xsl:template match="microblog/item">
+ <li>
+ <em>ยป</em>
+ <a href="{link}">
+ <xsl:value-of select="text" disable-output-escaping="yes" />
+ </a>
+ </li>
+</xsl:template>
+
</xsl:stylesheet>