summaryrefslogtreecommitdiff
path: root/templates/du2html.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/du2html.xsl')
-rw-r--r--templates/du2html.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/du2html.xsl b/templates/du2html.xsl
index a82b24e..570b53e 100644
--- a/templates/du2html.xsl
+++ b/templates/du2html.xsl
@@ -160,7 +160,7 @@
<link rel="alternate" type="application/atom+xml" href="{$url}feed.{$language}.xml"/>
</x:template>
- <x:template match="image[contains(concat(' ',normalize-space(@classes),' '),' twitter ')]" mode="twitter-card">
+ <x:template match="image[contains(concat(' ',normalize-space(string(@classes)),' '),' twitter ')]" mode="twitter-card">
<x:variable name="uri-with-slash" select="wc:dst-uri-for(@uri,/document/@source)" />
<!-- dst-uri-for appends a / at the end :( -->
<meta name="twitter:image" content="{substring($uri-with-slash,1,string-length($uri-with-slash) - 1)}" />