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 | |
parent | more sugihara videos (diff) | |
download | thenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.tar.gz thenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.tar.bz2 thenautilus-061c3691ff7f9f04c405d9405e9641dcc5884d81.zip |
fix twitter card images
-rw-r--r-- | src/modelli/sugihara-impossible-objects/document.en.rest.txt | 1 | ||||
-rw-r--r-- | src/modelli/sugihara-impossible-objects/document.it.rest.txt | 1 | ||||
-rw-r--r-- | templates/du2html.xsl | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/modelli/sugihara-impossible-objects/document.en.rest.txt b/src/modelli/sugihara-impossible-objects/document.en.rest.txt index c29a224..1687ca4 100644 --- a/src/modelli/sugihara-impossible-objects/document.en.rest.txt +++ b/src/modelli/sugihara-impossible-objects/document.en.rest.txt @@ -29,6 +29,7 @@ four suits of playing cards: .. image:: card-suits-plus-pointy-circles-t.jpg :target: card-suits-plus-pointy-circles.jpg + :class: twitter and this is what they look like from the side: diff --git a/src/modelli/sugihara-impossible-objects/document.it.rest.txt b/src/modelli/sugihara-impossible-objects/document.it.rest.txt index d409e2d..0e20eb7 100644 --- a/src/modelli/sugihara-impossible-objects/document.it.rest.txt +++ b/src/modelli/sugihara-impossible-objects/document.it.rest.txt @@ -30,6 +30,7 @@ e i semi delle carte: .. image:: card-suits-plus-pointy-circles-t.jpg :target: card-suits-plus-pointy-circles.jpg + :class: twitter di lato sono così: 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)}" /> |