Update 3 files

- /_data/ai-cache.json
- /rss.xml
- /feed.json
This commit is contained in:
mayx
2025-08-10 17:01:39 +00:00
parent d9f22d591a
commit 3c324af39e
3 changed files with 7 additions and 3 deletions

View File

@@ -167,5 +167,6 @@
"/2025/07/01/xslt.html": "XMLXSLTJekyllXML仿XSLTdoctype-systemSitemapXSLTXMLXSLT", "/2025/07/01/xslt.html": "XMLXSLTJekyllXML仿XSLTdoctype-systemSitemapXSLTXMLXSLT",
"/2025/07/13/hacked.html": "使netstatlsofgs-dbuslibprocesshider.so使Global Socketlogclean", "/2025/07/13/hacked.html": "使netstatlsofgs-dbuslibprocesshider.so使Global Socketlogclean",
"/2025/07/24/screenshot.html": "CloudflareCloudflare Workers使iframeCSSCloudflare10使使Cloudflare", "/2025/07/24/screenshot.html": "CloudflareCloudflare Workers使iframeCSSCloudflare10使使Cloudflare",
"/2025/08/01/sw-proxy.html": "这篇文章介绍了作者如何利用Service Worker在现代浏览器中实现一个简单的反向代理功能以提供博客的备份和离线访问。作者原本希望通过Service Worker在用户浏览器中运行一个Web服务器来存储博客副本但发现 tar.gz 文件的处理需要第三方库且难以找到适用的解决方案尤其是对于tar文件的处理。作者最终选择使用Service Worker作为反向代理将请求转发到其他网站如GeoCities风格的静态网站托管平台实现了类似的效果。这个过程中作者体验到了浏览器功能的强大并认为Service Worker在离线场景中有更大的潜力尽管在他的例子中并没有充分展示这种优势。" "/2025/08/01/sw-proxy.html": "Service Worker线访Service WorkerWeb tar.gz tar使Service WorkerGeoCitiesService Worker线",
"/2025/08/10/tilde.html": "TildeUnixBBSGeminiGopherGitCI/CD使Git hooks使"
} }

View File

@@ -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":{{ post.excerpt | strip_html | jsonify }},"content_text":{{ post.content | strip_html | strip_newlines | jsonify }},"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 | 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 %}]}

View File

@@ -15,7 +15,10 @@
{% for post in site.posts limit:10 %} {% for post in site.posts limit:10 %}
<item> <item>
<title>{{ post.title | xml_escape }}</title> <title>{{ post.title | xml_escape }}</title>
{% if post.excerpt %} {% assign ai_cache = site.data.ai-cache[post.url] %}
{% if ai_cache %}
<description>{{ ai_cache | xml_escape }}</description>
{% elsif post.excerpt %}
<description>{{ post.excerpt | strip_html | xml_escape }}</description> <description>{{ post.excerpt | strip_html | xml_escape }}</description>
{% else %} {% else %}
<description>{{ post.content | xml_escape }}</description> <description>{{ post.content | xml_escape }}</description>