mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-10-31 21:46:37 +00:00 
			
		
		
		
	Update 4 files
- /_layouts/xslt.html - /_layouts/xslt_container.html - /sitemap.xsl - /feed.xslt.xml
This commit is contained in:
		| @@ -4,7 +4,7 @@ layout: default | |||||||
|  |  | ||||||
| <xsl:choose> | <xsl:choose> | ||||||
|     <xsl:when test="xsl:stylesheet"> |     <xsl:when test="xsl:stylesheet"> | ||||||
|         这是订阅预览的样式文件,你可以通过以下链接订阅该博客:<br /> |         这是本站XML文件(例如订阅源或者Sitemap)的样式文件,你可以通过以下链接订阅该博客:<br /> | ||||||
|         <ul> |         <ul> | ||||||
|             <li><a href="{{ site.feed.path | relative_url }}">Atom</a></li> |             <li><a href="{{ site.feed.path | relative_url }}">Atom</a></li> | ||||||
|             <li><a href="/rss.xml">RSS</a></li> |             <li><a href="/rss.xml">RSS</a></li> | ||||||
| @@ -13,7 +13,5 @@ layout: default | |||||||
|     </xsl:when> |     </xsl:when> | ||||||
|     <xsl:otherwise> |     <xsl:otherwise> | ||||||
|         {{ content }} |         {{ content }} | ||||||
|         <xsl:apply-templates select="atom:feed/atom:entry" /> |  | ||||||
|         <xsl:apply-templates select="/rss/channel/item" /> |  | ||||||
|     </xsl:otherwise> |     </xsl:otherwise> | ||||||
| </xsl:choose> | </xsl:choose> | ||||||
| @@ -3,7 +3,8 @@ | |||||||
| <xsl:stylesheet | <xsl:stylesheet | ||||||
|     version="3.0" |     version="3.0" | ||||||
|     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||||||
|     xmlns:atom="http://www.w3.org/2005/Atom"> |     xmlns:atom="http://www.w3.org/2005/Atom" | ||||||
|  |     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:output method="html" version="4.0" encoding="UTF-8" indent="yes" doctype-system="about:legacy-compat" /> | ||||||
|   <xsl:template match="/"> |   <xsl:template match="/"> | ||||||
|       {{ content }} |       {{ content }} | ||||||
| @@ -42,6 +43,16 @@ | |||||||
|       <hr /> |       <hr /> | ||||||
|     </div> |     </div> | ||||||
|   </xsl:template> |   </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> | ||||||
|  |   </xsl:template> | ||||||
| </xsl:stylesheet> | </xsl:stylesheet> | ||||||
| {% else %}<!DOCTYPE html> | {% else %}<!DOCTYPE html> | ||||||
| {{ content }} | {{ content }} | ||||||
|   | |||||||
| @@ -8,3 +8,5 @@ title: 订阅预览 | |||||||
| <br /> | <br /> | ||||||
| 以下为其内容预览:</p> | 以下为其内容预览:</p> | ||||||
| <hr /> | <hr /> | ||||||
|  | <xsl:apply-templates select="atom:feed/atom:entry" /> | ||||||
|  | <xsl:apply-templates select="/rss/channel/item" /> | ||||||
							
								
								
									
										10
									
								
								sitemap.xsl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								sitemap.xsl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | --- | ||||||
|  | layout: xslt | ||||||
|  | title: Sitemap | ||||||
|  | --- | ||||||
|  |  | ||||||
|  | <h1>Sitemap</h1> | ||||||
|  | <p>以下是本站的所有链接:</p> | ||||||
|  | <ul> | ||||||
|  | <xsl:apply-templates select="sm:urlset" /> | ||||||
|  | </ul> | ||||||
		Reference in New Issue
	
	Block a user
	 mayx
					mayx