mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-11-04 13:02:25 +08:00 
			
		
		
		
	Update 2 files
- /feed.json - /sitemap.xsl
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{"version":"https://jsonfeed.org/version/1","title":"{{ site.title | xml_escape }}","home_page_url":"{{ "/" | absolute_url }}","feed_url":"{{ "/feed.json" | absolute_url }}","description":{{ site.description | jsonify }},"favicon":"{{ "/favicon.ico" | absolute_url }}","expired":false,{% if site.author %}"author":{% if site.author.name %}{"name":"{{ site.author.name }}","url":{% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},"avatar":{% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}},{% else %}{"name":"{{ site.author }}"},{% endif %}{% endif %}"items":[{% for post in site.posts limit:10 %}{"id":"{{ post.url | absolute_url }}","title":{{ post.title | jsonify }},"summary":{% assign ai_cache = site.data.ai-cache[post.url] %}{% if ai_cache %}{{ ai_cache | strip_newlines | jsonify }}{% else %}{{ post.excerpt | strip_html | jsonify }}{% endif %},"content_html":{{ post.content | strip_newlines | jsonify }},"url":"{{ post.url | absolute_url }}",{% if post.image.size > 1 %}"image":{{ post.image | jsonify }},{% endif %}{% if post.link.size > 1 %}"external_url":"{{ post.link }}",{% endif %}{% if post.banner.size > 1 %}"banner_image":"{{ post.banner }}",{% endif %}{% if post.tags.size > 1 %}"tags":{{ post.tags | jsonify }},{% endif %}{% if post.enclosure.size > 1 %}"attachments":[{  "url":"{{ post.enclosure }}",  "mime_type":"{{ post.enclosure_type }}",  "size_in_bytes":"{{ post.enclosure_length }}"}],{% endif %}"date_published":"{{ post.date | date_to_xmlschema }}","date_modified":"{{ post.date | date_to_xmlschema }}",{% if post.author %}"author":{% if post.author.name %} {"name":"{{ post.author.name }}","url":{% if post.author.url %}"{{ post.author.url }}"{% else %}null{% endif %},"avatar":{% if post.author.avatar %}"{{ post.author.avatar }}"{% else %}null{% endif %}}{% else %}"{{ post.author }}"{% endif %}{% else %}"author":{% if site.author.name %} {"name":"{{ site.author.name }}","url":{% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},"avatar":{% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}}{% else %}{"name":"{{ site.author }}"}{% endif %}{% endif %}}{% if forloop.last == false %},{% endif %}{% endfor %}]}
 | 
					{"version":"https://jsonfeed.org/version/1","title":"{{ site.title | xml_escape }}","home_page_url":"{{ "/" | absolute_url }}","feed_url":"{{ "/feed.json" | absolute_url }}","description":{{ site.description | jsonify }},"favicon":"{{ "/favicon.ico" | absolute_url }}","expired":false,{% if site.author %}"author":{% if site.author.name %}{"name":"{{ site.author.name }}","url":{% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},"avatar":{% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}},{% else %}{"name":"{{ site.author }}"},{% endif %}{% endif %}"items":[{% for post in site.posts limit:10 %}{"id":"{{ post.url | absolute_url }}","title":{{ post.title | jsonify }},"summary":{% assign ai_cache = site.data.ai-cache[post.url] %}{% if ai_cache %}{{ ai_cache | strip_newlines | jsonify }}{% else %}{{ post.excerpt | strip_html | jsonify }}{% endif %},"content_html":{{ post.content | jsonify }},"url":"{{ post.url | absolute_url }}",{% if post.image.size > 1 %}"image":{{ post.image | jsonify }},{% endif %}{% if post.link.size > 1 %}"external_url":"{{ post.link }}",{% endif %}{% if post.banner.size > 1 %}"banner_image":"{{ post.banner }}",{% endif %}{% if post.tags.size > 1 %}"tags":{{ post.tags | jsonify }},{% endif %}{% if post.enclosure.size > 1 %}"attachments":[{  "url":"{{ post.enclosure }}",  "mime_type":"{{ post.enclosure_type }}",  "size_in_bytes":"{{ post.enclosure_length }}"}],{% endif %}"date_published":"{{ post.date | date_to_xmlschema }}","date_modified":"{{ post.date | date_to_xmlschema }}",{% if post.author %}"author":{% if post.author.name %} {"name":"{{ post.author.name }}","url":{% if post.author.url %}"{{ post.author.url }}"{% else %}null{% endif %},"avatar":{% if post.author.avatar %}"{{ post.author.avatar }}"{% else %}null{% endif %}}{% else %}"{{ post.author }}"{% endif %}{% else %}"author":{% if site.author.name %} {"name":"{{ site.author.name }}","url":{% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},"avatar":{% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}}{% else %}{"name":"{{ site.author }}"}{% endif %}{% endif %}}{% if forloop.last == false %},{% endif %}{% endfor %}]}
 | 
				
			||||||
@@ -4,10 +4,9 @@ title: Sitemap
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<h1>Sitemap</h1>
 | 
					<h1>Sitemap</h1>
 | 
				
			||||||
<p>以下是本站的所有链接:</p>
 | 
					<p>以下是本站的所有链接(总共<xsl:value-of select="count(sm:urlset/sm:url)" />条):</p>
 | 
				
			||||||
<ul>
 | 
					<ul>
 | 
				
			||||||
  <xsl:for-each select="sm:urlset">
 | 
					  <xsl:for-each select="sm:urlset/sm:url">
 | 
				
			||||||
    <xsl:for-each select="sm:url">
 | 
					 | 
				
			||||||
    <li>
 | 
					    <li>
 | 
				
			||||||
      <a>
 | 
					      <a>
 | 
				
			||||||
        <xsl:attribute name="href"><xsl:value-of select="sm:loc" /></xsl:attribute>
 | 
					        <xsl:attribute name="href"><xsl:value-of select="sm:loc" /></xsl:attribute>
 | 
				
			||||||
@@ -15,5 +14,4 @@ title: Sitemap
 | 
				
			|||||||
      </a>
 | 
					      </a>
 | 
				
			||||||
    </li>
 | 
					    </li>
 | 
				
			||||||
  </xsl:for-each>
 | 
					  </xsl:for-each>
 | 
				
			||||||
  </xsl:for-each>
 | 
					 | 
				
			||||||
</ul>
 | 
					</ul>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user