diff options
author | dakkar <dakkar@thenautilus.net> | 2019-10-05 18:59:45 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-10-05 18:59:45 +0100 |
commit | 061c3691ff7f9f04c405d9405e9641dcc5884d81 (patch) | |
tree | 5ba76d6ad9dd06f9dc735e4a1cd03a8dafc346d2 /templates/du2html.xsl | |
parent | more sugihara videos (diff) | |
download | thenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.tar.gz thenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.tar.bz2 thenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.zip |
fix twitter card images
Diffstat (limited to 'templates/du2html.xsl')
-rw-r--r-- | templates/du2html.xsl | 2 |
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)}" /> |