diff options
Diffstat (limited to 'templates/du2html.xsl')
-rw-r--r-- | templates/du2html.xsl | 18 |
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)) > 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"> |