aboutsummaryrefslogtreecommitdiff
path: root/source/03_meta
diff options
context:
space:
mode:
Diffstat (limited to 'source/03_meta')
-rw-r--r--source/03_meta/categories.xsl22
1 files changed, 11 insertions, 11 deletions
diff --git a/source/03_meta/categories.xsl b/source/03_meta/categories.xsl
index a0b1a41..a2945b3 100644
--- a/source/03_meta/categories.xsl
+++ b/source/03_meta/categories.xsl
@@ -20,12 +20,14 @@
<xsl:variable name="page" select="$root/pages/entry[@handle = $handle]"/>
- <title>
- <xsl:value-of select="$page/title"/>
- </title>
- <digest>
- <xsl:copy-of select="$page/content/p[1]/node()"/>
- </digest>
+ <page handle="{$handle}">
+ <title>
+ <xsl:value-of select="$page/title"/>
+ </title>
+ <digest size="{string-length($page/content/p[1])}">
+ <xsl:copy-of select="$page/content/p[1]/node()"/>
+ </digest>
+ </page>
</xsl:template>
<xsl:template match="files/pages/*[name() != 'file']">
@@ -35,11 +37,9 @@
</xsl:template>
<xsl:template match="files/pages/*/file[./extension = '.md']">
- <page handle="{./name}">
- <xsl:call-template name="get_page_data">
- <xsl:with-param name="handle" select="./name"/>
- </xsl:call-template>
- </page>
+ <xsl:call-template name="get_page_data">
+ <xsl:with-param name="handle" select="./name"/>
+ </xsl:call-template>
</xsl:template>
</xsl:stylesheet>