-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forgot my XSL for my RSS feeds in the config file to passthroughcopy
Added my xsl file to the passthroughcopy function.
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<xsl:stylesheet | ||
version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:atom="http://www.w3.org/2005/Atom" | ||
exclude-result-prefixes="atom" | ||
> | ||
<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>Web Feed • <xsl:value-of select="atom:feed/atom:title"/></title> | ||
<style type="text/css"> | ||
body{max-width:768px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;line-height:1.5em}section{margin:30px 15px}h1{font-size:2em;margin:.67em 0;line-height:1.125em}h2{border-bottom:1px solid #eaecef;padding-bottom:.3em}.alert{background:#fff5b1;padding:4px 12px;margin:0 -12px}a{text-decoration:none}.entry h3{margin-bottom:0}.entry p{margin:4px 0} | ||
</style> | ||
</head> | ||
<body> | ||
<section> | ||
<div class="alert"> | ||
<p><strong>This is a web feed</strong>, also known as an RSS feed. <strong>Subscribe</strong> by copying the URL from the address bar into your newsreader app.</p> | ||
</div> | ||
</section> | ||
<section> | ||
<xsl:apply-templates select="atom:feed" /> | ||
</section> | ||
<section> | ||
<h2>Recent Items</h2> | ||
<xsl:apply-templates select="atom:feed/atom:entry" /> | ||
</section> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
|
||
<xsl:template match="atom:feed"> | ||
<h1><xsl:value-of select="atom:title"/>'s Feed Preview</h1> | ||
<p>This RSS feed provides the latest posts from <xsl:value-of select="atom:title"/>'s blog. | ||
|
||
<a class="head_link" target="_blank"> | ||
<xsl:attribute name="href"> | ||
<xsl:value-of select="atom:link[@rel='alternate']/@href"/> | ||
</xsl:attribute> | ||
Visit Website → | ||
</a> | ||
|
||
</p> | ||
</xsl:template> | ||
|
||
<xsl:template match="atom:entry"> | ||
<div class="entry"> | ||
<h3> | ||
<a target="_blank"> | ||
<xsl:attribute name="href"> | ||
<xsl:value-of select="atom:id"/> | ||
</xsl:attribute> | ||
<xsl:value-of select="atom:title"/> | ||
</a> | ||
</h3> | ||
<p> | ||
<xsl:value-of select="atom:summary" disable-output-escaping="yes" /> | ||
</p> | ||
<small> | ||
Published: <xsl:value-of select="atom:updated" /> | ||
</small> | ||
</div> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |