|
| 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 | + RSS Feed | <xsl:value-of select="/atom:feed/atom:title"/> |
| 10 | + </title> |
| 11 | + <meta charset="utf-8"/> |
| 12 | + <meta http-equiv="content-type" content="text/html; charset=utf-8"/> |
| 13 | + <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | + <link rel="stylesheet" href="/vendor/feed/style.css"/> |
| 15 | + </head> |
| 16 | + <body> |
| 17 | + <main class="layout-content"> |
| 18 | + <h1 class="flex items-start"> |
| 19 | + <!-- https://commons.wikimedia.org/wiki/File:Feed-icon.svg --> |
| 20 | + <svg xmlns="http://www.w3.org/2000/svg" version="1.1" |
| 21 | + class="mr-5" |
| 22 | + style="flex-shrink: 0; width: 1em; height: 1em;" |
| 23 | + viewBox="0 0 256 256"> |
| 24 | + <defs> |
| 25 | + <linearGradient x1="0.085" y1="0.085" x2="0.915" y2="0.915" |
| 26 | + id="RSSg"> |
| 27 | + <stop offset="0.0" stop-color="#E3702D"/> |
| 28 | + <stop offset="0.1071" stop-color="#EA7D31"/> |
| 29 | + <stop offset="0.3503" stop-color="#F69537"/> |
| 30 | + <stop offset="0.5" stop-color="#FB9E3A"/> |
| 31 | + <stop offset="0.7016" stop-color="#EA7C31"/> |
| 32 | + <stop offset="0.8866" stop-color="#DE642B"/> |
| 33 | + <stop offset="1.0" stop-color="#D95B29"/> |
| 34 | + </linearGradient> |
| 35 | + </defs> |
| 36 | + <rect width="256" height="256" rx="55" ry="55" x="0" y="0" |
| 37 | + fill="#CC5D15"/> |
| 38 | + <rect width="246" height="246" rx="50" ry="50" x="5" y="5" |
| 39 | + fill="#F49C52"/> |
| 40 | + <rect width="236" height="236" rx="47" ry="47" x="10" y="10" |
| 41 | + fill="url(#RSSg)"/> |
| 42 | + <circle cx="68" cy="189" r="24" fill="#FFF"/> |
| 43 | + <path |
| 44 | + d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z" |
| 45 | + fill="#FFF"/> |
| 46 | + <path |
| 47 | + d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z" |
| 48 | + fill="#FFF"/> |
| 49 | + </svg> |
| 50 | + RSS Feed |
| 51 | + </h1> |
| 52 | + <h2><xsl:value-of select="/atom:feed/atom:title"/></h2> |
| 53 | + <p> |
| 54 | + <xsl:value-of select="/atom:feed/atom:subtitle"/> |
| 55 | + </p> |
| 56 | + <hr/> |
| 57 | + <xsl:for-each select="/atom:feed/atom:entry"> |
| 58 | + <div class="post"> |
| 59 | + <div class="title"> |
| 60 | + <a> |
| 61 | + <xsl:attribute name="href"> |
| 62 | + <xsl:value-of select="atom:link/@href"/> |
| 63 | + </xsl:attribute> |
| 64 | + <xsl:value-of select="atom:title"/> |
| 65 | + </a> |
| 66 | + </div> |
| 67 | + |
| 68 | + <div class="summary"> |
| 69 | + <xsl:value-of select="atom:summary" disable-output-escaping="yes"/> |
| 70 | + </div> |
| 71 | + |
| 72 | + <div class="published-info"> |
| 73 | + Published on |
| 74 | + <xsl:value-of select="substring(atom:updated, 0, 11)" /> by <xsl:value-of select="atom:author/atom:name"/> |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </xsl:for-each> |
| 78 | + </main> |
| 79 | + </body> |
| 80 | + </html> |
| 81 | + </xsl:template> |
| 82 | +</xsl:stylesheet> |
0 commit comments