Update 3 files

- /_layouts/xslt_container.html
- /_layouts/xslt.html
- /feed.xslt.xml
This commit is contained in:
mayx
2025-06-25 11:29:21 +00:00
parent fb76deac38
commit e4e0261e0a
3 changed files with 19 additions and 5 deletions

View File

@@ -2,6 +2,18 @@
layout: default
---
{{ content }}
<xsl:apply-templates select="atom:feed/atom:entry" />
<xsl:apply-templates select="/rss/channel/item" />
<xsl:choose>
<xsl:when test="xsl:stylesheet">
这是订阅预览的样式文件,你可以通过以下链接订阅该博客:<br />
<ul>
<li><a href="{{ site.feed.path | relative_url }}">Atom</a></li>
<li><a href="/rss.xml">RSS</a></li>
<li><a href="/feed.json">JSON Feed</a></li>
</ul>
</xsl:when>
<xsl:otherwise>
{{ content }}
<xsl:apply-templates select="atom:feed/atom:entry" />
<xsl:apply-templates select="/rss/channel/item" />
</xsl:otherwise>
</xsl:choose>