add meta-description for all sites, with same code as twitter/opengraph cards

This commit is contained in:
2021-06-23 15:32:32 +02:00
parent 1ef89be9e2
commit 35b2409fc3
+8 -1
View File
@@ -172,6 +172,14 @@
</xsl:element>
</xsl:for-each>
<!-- Meta description -->
<xsl:element name="meta">
<xsl:attribute name="name">description</xsl:attribute>
<xsl:attribute name="content">
<xsl:value-of select="$extract" />
</xsl:attribute>
</xsl:element> <!-- / meta description -->
<!-- Twitter and Facebook sharing cards -->
<xsl:variable name="metaimage">
<xsl:if test="image/@url">
@@ -268,4 +276,3 @@
</xsl:element></xsl:template>
</xsl:stylesheet>