-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.xsl
More file actions
59 lines (54 loc) · 2.21 KB
/
Copy pathfeed.xsl
File metadata and controls
59 lines (54 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
---
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<title><xsl:value-of select="rss/channel/title"/></title>
<link rel="stylesheet" href="/styles.css"/>
</head>
<body>
<div class="background">
<header class="site-header">
<div class="items">
<h1><a href="/" class="title">{{ site.title }}</a></h1>
</div>
</header>
<main>
<div class="post-body">
<p>You've found the RSS feed. Subscribe by copying the current URL into your feed reader of choice.
I use and recommend <a href="https://netnewswire.com/" target="_blank">NetNewsWire</a>.
I also generate a <a href="{{ site.feeds.json_url | absolute_url }}" target="_blank">JSON Feed</a> with the same content.</p>
<ul>
<li>RSS URL: <code>{{ site.feeds.rss_url | absolute_url}}</code></li>
<li>JSON Feed URL: <code>{{ site.feeds.json_url | absolute_url}}</code></li>
</ul>
<p>You can also read the <a href="{{ site.url }}">non-feed version of my website</a>.</p>
</div>
<ul>
<xsl:apply-templates select="rss/channel/item" />
</ul>
</main>
<footer>
<p>© <a href="/me">Will Richardson</a> 2014-{{ site.time | date: '%Y' }}</p>
<p>All views and opinions expressed here are solely my own.</p>
</footer>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="rss/channel/item">
<li>
<a target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</a>
<span class="metadata"> (<xsl:value-of select="pubDate"/>)</span>
</li>
</xsl:template>
</xsl:stylesheet>