diff options
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.xsl | 37 |
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() <= 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> |