aboutsummaryrefslogtreecommitdiff
path: root/source/03_result/article
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-24 20:34:09 +0200
committerAdrian Kummerlaender2014-07-24 20:34:09 +0200
commit776c0031c05c8660fee8d1b06a2371cbb43248f9 (patch)
tree882b3db0ba09f484325a8101c1408bcc1c1ee79f /source/03_result/article
parent305eb17cd2d70c2e922b8997ada86b29329d660e (diff)
downloadblog.kummerlaender.eu-776c0031c05c8660fee8d1b06a2371cbb43248f9.tar
blog.kummerlaender.eu-776c0031c05c8660fee8d1b06a2371cbb43248f9.tar.gz
blog.kummerlaender.eu-776c0031c05c8660fee8d1b06a2371cbb43248f9.tar.bz2
blog.kummerlaender.eu-776c0031c05c8660fee8d1b06a2371cbb43248f9.tar.lz
blog.kummerlaender.eu-776c0031c05c8660fee8d1b06a2371cbb43248f9.tar.xz
blog.kummerlaender.eu-776c0031c05c8660fee8d1b06a2371cbb43248f9.tar.zst
blog.kummerlaender.eu-776c0031c05c8660fee8d1b06a2371cbb43248f9.zip
Implemented basic article tagging facility
* articles are tagged by symlinking them to the appropriate "tag" in the "tags" directory * tags are resolved by the article datasource transformation * added tags for the example articles
Diffstat (limited to 'source/03_result/article')
-rw-r--r--source/03_result/article/article.xsl8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/03_result/article/article.xsl b/source/03_result/article/article.xsl
index fa54a85..69ddf09 100644
--- a/source/03_result/article/article.xsl
+++ b/source/03_result/article/article.xsl
@@ -36,7 +36,13 @@
<xsl:call-template name="format-date">
<xsl:with-param name="date" select="./date"/>
<xsl:with-param name="format" select="'x. M Y'"/>
- </xsl:call-template> | Adrian Kummerländer
+ </xsl:call-template>
+ | <xsl:for-each select="tags/tag">
+ <a href="{$url}/tag/{.}">
+ <xsl:value-of select="."/>
+ </a>
+ </xsl:for-each>
+ | Adrian Kummerländer
</p>
<xsl:copy-of select="./content/*"/>
</div>