logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git

entry.xsl.in (1542B)


  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xml:space="preserve">
  3. <xsl:import href="templates/en/nav.xsl" />
  4. <xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
  5. <xsl:template match="/entry"><xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html&gt;</xsl:text>
  6. <html xml:lang="en" lang="en">
  7. <head>
  8. <xi:include href="templates/head.xml" parse="xml" xpointer="xpointer(/xml/*)"/>
  9. <meta property="og:type" content="article"/>
  10. <xsl:if test="title"><meta property="og:title" content="{title}"/>
  11. <title><xsl:value-of select="title"/> - lanodan's cyber-home</title></xsl:if>
  12. </head>
  13. <body>
  14. <xsl:call-template name="nav"/>
  15. <article>
  16. <a href="{id}"><h1><xsl:value-of select="title"/></h1></a>
  17. <p class="timestamps"><xsl:apply-templates select="published"/><xsl:apply-templates select="updated"/></p>
  18. <xsl:copy-of select="content/*"/>
  19. <xsl:if test="link[@type='application/activity+json']"><p>
  20. <a href="{link[@type='application/activity+json']/@href}" rel="replies external">Fediverse post for comments</a>
  21. </p></xsl:if>
  22. </article>
  23. <xi:include href="templates/en/footer.shtml" parse="xml"/>
  24. </body>
  25. </html></xsl:template>
  26. <xsl:template match="published">published on <xsl:value-of select="."/></xsl:template>
  27. <xsl:template match="updated">, last updated on <xsl:value-of select="."/></xsl:template>
  28. </xsl:stylesheet>