base.temp.xml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. {{ `<?xml version="1.0" encoding="utf-8" ?>` | safeHTML }}
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="html" doctype-system="about:legacy-compat" />
  4. <xsl:template match="/rss/channel">
  5. <html lang="{{ site.LanguageCode }}">
  6. <head>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. {{ hugo.Generator }}
  9. <title><xsl:value-of select="title" /></title>
  10. {{ with .Scratch.Get "css" }}
  11. <link rel="stylesheet" href="{{ .base.Permalink }}" integrity="{{ .base.Data.Integrity }}" />
  12. {{ end }}
  13. </head>
  14. <body>
  15. {{ partial "banner.html" . }}
  16. <main>
  17. <div class="u-wrapper">
  18. <div class="u-padding">
  19. <h2 class="Heading-title">
  20. <a class="Heading-link u-clickable" href="{link}" rel="bookmark"><xsl:value-of select="title" /></a>
  21. </h2>
  22. {{ with site.Params.rss }}
  23. <p>
  24. {{ . | safeHTML }}
  25. </p>
  26. {{ end }}
  27. </div>
  28. </div>
  29. </main>
  30. {{ partial "footer.html" . }}
  31. </body>
  32. </html>
  33. </xsl:template>
  34. </xsl:stylesheet>