Mayx's Home Page https://mabbs.github.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
3.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:atom="http://www.w3.org/2005/Atom">
  4. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
  5. <xsl:template match="/">
  6. <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  7. <head>
  8. <title>
  9. Atom Feed |
  10. <xsl:value-of select="/atom:feed/atom:title"/>
  11. </title>
  12. <meta charset="utf-8"/>
  13. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  14. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  15. </head>
  16. <body class="feed-preview">
  17. <p>
  18. <strong>This is an Atom feed (similar to RSS)</strong>. Subscribe by copying
  19. the URL from the address bar into your newsreader. Visit <a
  20. href="https://aboutfeeds.com">About Feeds
  21. </a> to learn more and get started. It's free.
  22. </p>
  23. <h1 class="flex items-start">
  24. <!-- https://commons.wikimedia.org/wiki/File:Feed-icon.svg -->
  25. <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
  26. class="mr-5"
  27. style="flex-shrink: 0; width: 1em; height: 1em;"
  28. viewBox="0 0 256 256">
  29. <defs>
  30. <linearGradient x1="0.085" y1="0.085" x2="0.915" y2="0.915"
  31. id="RSSg">
  32. <stop offset="0.0" stop-color="#E3702D"/>
  33. <stop offset="0.1071" stop-color="#EA7D31"/>
  34. <stop offset="0.3503" stop-color="#F69537"/>
  35. <stop offset="0.5" stop-color="#FB9E3A"/>
  36. <stop offset="0.7016" stop-color="#EA7C31"/>
  37. <stop offset="0.8866" stop-color="#DE642B"/>
  38. <stop offset="1.0" stop-color="#D95B29"/>
  39. </linearGradient>
  40. </defs>
  41. <rect width="256" height="256" rx="55" ry="55" x="0" y="0"
  42. fill="#CC5D15"/>
  43. <rect width="246" height="246" rx="50" ry="50" x="5" y="5"
  44. fill="#F49C52"/>
  45. <rect width="236" height="236" rx="47" ry="47" x="10" y="10"
  46. fill="url(#RSSg)"/>
  47. <circle cx="68" cy="189" r="24" fill="#FFF"/>
  48. <path
  49. d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z"
  50. fill="#FFF"/>
  51. <path
  52. d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z"
  53. fill="#FFF"/>
  54. </svg>
  55. Feed Preview
  56. </h1>
  57. <h2>Feed from <xsl:value-of select="/atom:feed/atom:title"/></h2>
  58. <p>
  59. <xsl:value-of select="/atom:feed/atom:subtitle"/>
  60. </p>
  61. <a>
  62. <xsl:attribute name="href">
  63. <xsl:value-of select="/atom:feed/atom:link[2]/@href"/>
  64. </xsl:attribute>
  65. Visit Website &#x2192;
  66. </a>
  67. <hr />
  68. <h3>Recent posts</h3>
  69. <xsl:for-each select="/atom:feed/atom:entry">
  70. <h4>
  71. <xsl:value-of select="substring(atom:published, 0, 11)" />
  72. »
  73. <a>
  74. <xsl:attribute name="href">
  75. <xsl:value-of select="atom:link/@href"/>
  76. </xsl:attribute>
  77. <xsl:value-of select="atom:title"/>
  78. </a>
  79. </h4>
  80. <p><xsl:value-of select="atom:summary"/></p>
  81. </xsl:for-each>
  82. <hr />
  83. <footer>
  84. <small><p>Made with ❤ by Mayx</p></small>
  85. </footer>
  86. </body>
  87. </html>
  88. </xsl:template>
  89. </xsl:stylesheet>

Powered by TurnKey Linux.