aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/home.xslt.rss.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/home.xslt.rss.xsl')
-rw-r--r--themes/default/layouts/_default/home.xslt.rss.xsl143
1 files changed, 71 insertions, 72 deletions
diff --git a/themes/default/layouts/_default/home.xslt.rss.xsl b/themes/default/layouts/_default/home.xslt.rss.xsl
index d345af9..9d5e8ee 100644
--- a/themes/default/layouts/_default/home.xslt.rss.xsl
+++ b/themes/default/layouts/_default/home.xslt.rss.xsl
@@ -18,88 +18,87 @@
<body>
<column-base position="left"></column-base>
<column-base position="middle">
- <main>
- <nav>
- <icon-button>
- <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>
- </icon-button>
- <section>
- <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">
+ <nav>
+ <icon-button>
+ <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>
+ </icon-button>
+ <section>
+ <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>
+ <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 }}
+ </xsl:if>
+ {{ if .Site.Menus.main }}
+ {{ range .Site.Menus.main }}
<icon-navigator hidden="">
<icon-button>
- <a id="nav-middle-{{ path.Base .Identifier }}" href="{{ .URL | absURL }}">
- {{ with .Identifier }}
- {{ $icon := print (partial "function-paths.html").static "/icons/" . ".svg" }}
- {{ safeHTML (readFile $icon) }}
- {{ end }}
- <small>{{ delimit (first 1 (split .Name " ")) " " }}</small>
- </a>
+ <a id="nav-middle-{{ path.Base .Identifier }}" href="{{ .URL | absURL }}">
+ {{ with .Identifier }}
+ {{ $icon := print (partial "function-paths.html").static "/icons/" . ".svg" }}
+ {{ safeHTML (readFile $icon) }}
+ {{ end }}
+ <small>{{ delimit (first 1 (split .Name " ")) " " }}</small>
+ </a>
</icon-button>
</icon-navigator>
- {{ end }}
{{ end }}
- </nav>
- <navigation-separator><hr hidden=""></hr></navigation-separator>
+ {{ end }}
+ </nav>
+ <main>
<xsl:for-each select="/rss/channel/item">
- <micro-card>
- <micro-summary>
- <micro-thumbnail>
- <figure>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute>
- <span>
- <object>
- <xsl:attribute name="title"><xsl:value-of select="atom:author/atom:name" /></xsl:attribute>
- <xsl:attribute name="data"><xsl:value-of select="atom:author/atom:uri" /></xsl:attribute>
- <xsl:value-of select="substring(atom:author/atom:name, 1, 1)" />
- </object>
- </span>
- </a>
- </figure>
- </micro-thumbnail>
- <article>
- <h2>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute>
- <xsl:value-of select="title" />
- </a>
- </h2>
- <small>Published: <xsl:value-of select="pubDate" /></small>
- </article>
- </micro-summary>
- </micro-card>
+ <micro-card>
+ <micro-summary>
+ <micro-thumbnail>
+ <figure>
+ <a>
+ <xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute>
+ <span>
+ <object>
+ <xsl:attribute name="title"><xsl:value-of select="atom:author/atom:name" /></xsl:attribute>
+ <xsl:attribute name="data"><xsl:value-of select="atom:author/atom:uri" /></xsl:attribute>
+ <xsl:value-of select="substring(atom:author/atom:name, 1, 1)" />
+ </object>
+ </span>
+ </a>
+ </figure>
+ </micro-thumbnail>
+ <article>
+ <h2>
+ <a>
+ <xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute>
+ <xsl:value-of select="title" />
+ </a>
+ </h2>
+ <small>Published: <xsl:value-of select="pubDate" /></small>
+ </article>
+ </micro-summary>
+ </micro-card>
</xsl:for-each>
</main>
- </column-base>
- <column-base position="right"></column-base>
+ </column-base>
+ <column-base position="right"></column-base>
</body>
</html>
</xsl:template>