diff options
author | Adrian Kummerlaender | 2014-10-27 19:19:34 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2014-10-27 19:19:34 +0100 |
commit | b91cdc10a4231bfc8b13eb53964fe9a9ffcbf230 (patch) | |
tree | 48bd64b5e7e6db12b0310e83b121f590325ed257 /source | |
parent | be2b4380d435ebc31f6de35439a4a014edc77060 (diff) | |
download | Overview-b91cdc10a4231bfc8b13eb53964fe9a9ffcbf230.tar Overview-b91cdc10a4231bfc8b13eb53964fe9a9ffcbf230.tar.gz Overview-b91cdc10a4231bfc8b13eb53964fe9a9ffcbf230.tar.bz2 Overview-b91cdc10a4231bfc8b13eb53964fe9a9ffcbf230.tar.lz Overview-b91cdc10a4231bfc8b13eb53964fe9a9ffcbf230.tar.xz Overview-b91cdc10a4231bfc8b13eb53964fe9a9ffcbf230.tar.zst Overview-b91cdc10a4231bfc8b13eb53964fe9a9ffcbf230.zip |
Grouped configuration parameters
* added overview commit count parameter
* added `key` subdomain link
Diffstat (limited to 'source')
-rw-r--r-- | source/00_content/meta.xml | 9 | ||||
-rw-r--r-- | source/01_raw/article_feed.xsl | 2 | ||||
-rw-r--r-- | source/99_result/overview.xsl | 133 | ||||
-rw-r--r-- | source/99_result/timeline.xsl | 2 |
4 files changed, 77 insertions, 69 deletions
diff --git a/source/00_content/meta.xml b/source/00_content/meta.xml index 4c4c2a9..5ba1264 100644 --- a/source/00_content/meta.xml +++ b/source/00_content/meta.xml @@ -2,6 +2,11 @@ <datasource> <title>kummerlaender.eu</title> <url>http://localhost:8000</url> - <commit_count>20</commit_count> - <article_count>3</article_count> + <timeline> + <commit_count>20</commit_count> + </timeline> + <overview> + <article_count>3</article_count> + <commit_count>5</commit_count> + </overview> </datasource> diff --git a/source/01_raw/article_feed.xsl b/source/01_raw/article_feed.xsl index ab652b7..6a55925 100644 --- a/source/01_raw/article_feed.xsl +++ b/source/01_raw/article_feed.xsl @@ -17,7 +17,7 @@ <xsl:template match="meta"> <xsl:apply-templates mode="remove_namespace" select="InputXSLT:external-command( 'curl http://blog.kummerlaender.eu/atom.xml' - )/self::command/feed/entry[position() <= $root/meta/article_count]"/> + )/self::command/feed/entry[position() <= $root/meta/overview/article_count]"/> </xsl:template> </xsl:stylesheet> diff --git a/source/99_result/overview.xsl b/source/99_result/overview.xsl index b2a8d93..8920e09 100644 --- a/source/99_result/overview.xsl +++ b/source/99_result/overview.xsl @@ -111,72 +111,75 @@ <xsl:template match="datasource"> <html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <meta name="viewport" content="width=device-width,initial-scale=1.0"/> - - <title> - <xsl:value-of select="$root/meta/title"/> - </title> - - <link rel="stylesheet" type="text/css" href="/main.css"/> -</head> -<body> - <div id="content"> - <div class="large menuhead"> - <h1> - <xsl:value-of select="$root/meta/title"/> - </h1> - <ul> - <li> - <a href="http://blog.kummerlaender.eu">blog</a> - </li> - <li> - <a href="http://code.kummerlaender.eu">code</a> - </li> - </ul> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <meta name="viewport" content="width=device-width,initial-scale=1.0"/> + + <title> + <xsl:value-of select="$root/meta/title"/> + </title> + + <link rel="stylesheet" type="text/css" href="/main.css"/> + </head> + <body> + <div id="content"> + <div class="large menuhead"> + <h1> + <xsl:value-of select="$root/meta/title"/> + </h1> + <ul> + <li> + <a href="http://blog.kummerlaender.eu">blog</a> + </li> + <li> + <a href="http://code.kummerlaender.eu">code</a> + </li> + <li> + <a href="http://key.kummerlaender.eu">key</a> + </li> + </ul> + </div> + + <div class="normal 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"/> + + <div class="normal 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() <= $root/meta/overview/commit_count]"/> </div> - - <div class="normal 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"/> - - <div class="normal 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() <= 5]"/> - </div> -</body> + </body> </html> </xsl:template> diff --git a/source/99_result/timeline.xsl b/source/99_result/timeline.xsl index edb8fb2..2e89082 100644 --- a/source/99_result/timeline.xsl +++ b/source/99_result/timeline.xsl @@ -79,7 +79,7 @@ <xsl:text>:00+02:00</xsl:text> </updated> - <xsl:apply-templates select="timeline/commit[position() <= $root/meta/commit_count]"/> + <xsl:apply-templates select="timeline/commit[position() <= $root/meta/timeline/commit_count]"/> </feed> </xsl:template> |