summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2019-10-05 18:59:45 +0100
committerdakkar <dakkar@thenautilus.net>2019-10-05 18:59:45 +0100
commit061c3691ff7f9f04c405d9405e9641dcc5884d81 (patch)
tree5ba76d6ad9dd06f9dc735e4a1cd03a8dafc346d2 /templates
parentmore sugihara videos (diff)
downloadthenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.tar.gz
thenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.tar.bz2
thenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.zip
fix twitter card images
Diffstat (limited to 'templates')
-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)}" />