summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authormayx <mayx@outlook.com>2025-06-29 10:31:33 +0200
committermayx <mayx@outlook.com>2025-06-29 10:31:33 +0200
commit4de724f972c65ca474994e321b66844ded99f544 (patch)
tree9e4acdee89ae79152f9055e4529929b98c8ba3c8 /_layouts
parent0afcae7cd8ee9efab216a1d3abfa613516f0e466 (diff)
Update 4 files
- /_layouts/xslt_container.html - /_layouts/xslt.html - /sitemap.xsl - /feed.xslt.xml
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/xslt.html2
-rw-r--r--_layouts/xslt_container.html46
2 files changed, 2 insertions, 46 deletions
diff --git a/_layouts/xslt.html b/_layouts/xslt.html
index b02dfc5..09fff90 100644
--- a/_layouts/xslt.html
+++ b/_layouts/xslt.html
@@ -4,7 +4,7 @@ layout: default
<xsl:choose>
<xsl:when test="xsl:stylesheet">
- 这是本站XML文件(例如订阅源或者Sitemap)的样式文件,你可以通过以下链接订阅该博客:<br />
+ 这是本站XML文件(例如订阅源或者<a href="/sitemap.xml">Sitemap</a>)的样式文件,你可以通过以下链接订阅该博客:<br />
<ul>
<li><a href="{{ site.feed.path | relative_url }}">Atom</a></li>
<li><a href="/rss.xml">RSS</a></li>
diff --git a/_layouts/xslt_container.html b/_layouts/xslt_container.html
index bea0baf..9c9e629 100644
--- a/_layouts/xslt_container.html
+++ b/_layouts/xslt_container.html
@@ -7,51 +7,7 @@
xmlns:sm="http://www.sitemaps.org/schemas/sitemap/0.9">
<xsl:output method="html" version="4.0" encoding="UTF-8" indent="yes" doctype-system="about:legacy-compat" />
<xsl:template match="/">
- {{ content }}
- </xsl:template>
- <xsl:template match="atom:feed/atom:entry">
- <div class="item">
- <h2>
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="atom:link/@href"/>
- </xsl:attribute>
- <xsl:value-of select="atom:title"/>
- </a>
- </h2>
- <small class="gray">
- Published at <xsl:value-of select="substring(atom:published, 0, 11)" />
- </small>
- <p><xsl:value-of select="atom:summary"/></p>
- <hr />
- </div>
- </xsl:template>
- <xsl:template match="/rss/channel/item">
- <div class="item">
- <h2>
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="link"/>
- </xsl:attribute>
- <xsl:value-of select="title"/>
- </a>
- </h2>
- <small class="gray">
- Published at <xsl:value-of select="substring(pubDate, 0, 17)" />
- </small>
- <p><xsl:value-of select="description"/></p>
- <hr />
- </div>
- </xsl:template>
- <xsl:template match="sm:urlset">
- <xsl:for-each select="sm:url">
- <li>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="sm:loc" /></xsl:attribute>
- <xsl:value-of select="sm:loc" />
- </a>
- </li>
- </xsl:for-each>
+ {{ content }}
</xsl:template>
</xsl:stylesheet>
{% else %}<!DOCTYPE html>