summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2022-11-13 18:26:10 +0000
committerdakkar <dakkar@thenautilus.net>2022-11-13 18:26:10 +0000
commitdb20a9c4d63e899bfa4b01377f0ee8c6ea2460a8 (patch)
tree94c485b85a1f6e3db52532b5cbedd01f76641204
parentsocial links on every page (diff)
downloadthenautilus-db20a9c4d63e899bfa4b01377f0ee8c6ea2460a8.tar.gz
thenautilus-db20a9c4d63e899bfa4b01377f0ee8c6ea2460a8.tar.bz2
thenautilus-db20a9c4d63e899bfa4b01377f0ee8c6ea2460a8.zip
fixed og properties
-rw-r--r--templates/du2html.xsl18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/du2html.xsl b/templates/du2html.xsl
index e1f4669..7c37760 100644
--- a/templates/du2html.xsl
+++ b/templates/du2html.xsl
@@ -176,9 +176,9 @@
<x:if test="@alt">
<meta name="twitter:image:alt" content="{@alt}" />
</x:if>
- <meta name="og:image" content="https://www.thenautilus.net{$uri}" />
+ <meta property="og:image" content="https://www.thenautilus.net{$uri}" />
<x:if test="@alt">
- <meta name="og:image:alt" content="{@alt}" />
+ <meta property="og:image:alt" content="{@alt}" />
</x:if>
</x:template>
<x:template match="image" mode="og-meta" priority="-1" />
@@ -190,7 +190,7 @@
</x:when>
<x:otherwise>
<x:variable name="content">
- <x:apply-templates/>
+ <x:apply-templates select="paragraph[1]"/>
</x:variable>
<x:value-of select="substring(normalize-space($content),0,200)"/>
<x:if test="string-length(normalize-space($content)) &gt; 200">
@@ -235,20 +235,20 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@dakkar" />
<meta name="twitter:title" content="{normalize-space(title)}" />
- <meta name="og:site_name" content="the Nautilus" />
- <meta name="og:title" content="{normalize-space(title)}" />
+ <meta property="og:site_name" content="the Nautilus" />
+ <meta property="og:title" content="{normalize-space(title)}" />
<x:apply-templates select="//image" mode="og-meta" />
<meta name="twitter:description">
<x:attribute name="content">
- <x:apply-templates mode="og-description" />
+ <x:apply-templates select="." mode="og-description" />
</x:attribute>
</meta>
- <meta name="og:description">
+ <meta property="og:description">
<x:attribute name="content">
- <x:apply-templates mode="og-description" />
+ <x:apply-templates select="." mode="og-description" />
</x:attribute>
</meta>
- <meta name="og:locale" content="{$locale}" />
+ <meta property="og:locale" content="{$locale}" />
</head>
<body>
<div id="wrapper">