aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/home.xslt.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/home.xslt.xsl')
-rw-r--r--themes/default/layouts/_default/home.xslt.xsl25
1 files changed, 23 insertions, 2 deletions
diff --git a/themes/default/layouts/_default/home.xslt.xsl b/themes/default/layouts/_default/home.xslt.xsl
index 05a35ea..1085ef5 100644
--- a/themes/default/layouts/_default/home.xslt.xsl
+++ b/themes/default/layouts/_default/home.xslt.xsl
@@ -2,7 +2,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="3.0">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
+ <html data="xml" xmlns="http://www.w3.org/1999/xhtml">
<head>
{{ print "<title><xsl:value-of select=\"/rss/channel/title\"/> Web Feed</title>" | safeHTML }}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
@@ -22,7 +22,17 @@
<main>
<nav>
<icon-button>
- <a href="/" onclick="window.history.go(-1); return false;">
+ <a onclick="window.history.go(-1); return false;">
+ <xsl:choose>
+ <xsl:when test="/rss/channel/atom:link[@rel='previous']/@href">
+ <xsl:attribute name="href">
+ <xsl:value-of select="/rss/channel/atom:link[@rel='previous']/@href"/>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="href">/</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-left.svg")) }}
<small>Back</small>
</a>
@@ -31,6 +41,17 @@
<h2><xsl:value-of select="/rss/channel/title"/>'s Feed</h2>
<small>Web Feed Preview</small>
</section>
+ <xsl:if test="/rss/channel/atom:link[@rel='next']/@href">
+ <icon-button>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="/rss/channel/atom:link[@rel='next']/@href"/>
+ </xsl:attribute>
+ {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-right.svg")) }}
+ <small>Next</small>
+ </a>
+ </icon-button>
+ </xsl:if>
{{ if .Site.Menus.main }}
{{ range .Site.Menus.main }}
<icon-navigator hidden="">