Tobias Diekershoff 963f073b4e
All checks were successful
continuous-integration/drone/push Build is passing
Update front-page (#4155)
* added highlight section for longer promotion of some articles
* added recent news block and moved events up
* re-arranged newsletter subscription action banner to action box on the front-page

Reviewed-on: #4155
Co-authored-by: Tobias Diekershoff <tobiasd@fsfe.org>
Co-committed-by: Tobias Diekershoff <tobiasd@fsfe.org>
2024-05-17 10:53:44 +00:00

36 lines
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Display a list of tags (below a news item or event entry) -->
<!-- ====================================================================== -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="tags">
<xsl:element name="ul">
<xsl:attribute name="class">tags</xsl:attribute>
<xsl:for-each select="tag[not(@key='front-page') and not(@key='press') and not(@key='highlights')]">
<xsl:element name="li">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:text>/tags/tagged-</xsl:text>
<xsl:value-of select="@key"/>
<xsl:text>.</xsl:text>
<xsl:value-of select="/buildinfo/@language"/>
<xsl:text>.html</xsl:text>
</xsl:attribute>
<!-- If the <tag> element has no text content, fall back to key -->
<xsl:choose>
<xsl:when test="text()">
<xsl:value-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@key"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element><!-- a -->
</xsl:element><!-- li -->
</xsl:for-each>
</xsl:element><!-- ul -->
</xsl:template>
</xsl:stylesheet>