mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-11-03 18:09:07 +08:00 
			
		
		
		
	Update 3 files
- /_layouts/xslt_container.html - /_layouts/xslt.html - /feed.xslt.xml
This commit is contained in:
		
							parent
							
								
									fb76deac38
								
							
						
					
					
						commit
						e4e0261e0a
					
				@ -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>
 | 
			
		||||
@ -1,4 +1,5 @@
 | 
			
		||||
{% if page.layout == "xslt" %}<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<?xml-stylesheet type="text/xml" href="/feed.xslt.xml"?>
 | 
			
		||||
<xsl:stylesheet
 | 
			
		||||
    version="3.0"
 | 
			
		||||
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,7 @@ title: 订阅预览
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<h1>订阅预览</h1>
 | 
			
		||||
<p>这是一个订阅源(Feed)。 复制这个链接到任何支持 Atom/RSS 的阅读器,即可订阅本博客的最新文章。
 | 
			
		||||
<p>这是一个订阅源(Feed)。 复制当前URL到任何支持 Atom/RSS 的阅读器,即可订阅本博客的最新文章。
 | 
			
		||||
<br />
 | 
			
		||||
以下为其内容预览:</p>
 | 
			
		||||
<hr />
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user