<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/scripts/pretty-feed-v3.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:h="http://www.w3.org/TR/html4/"><channel><title>傲雪の</title><description>Day bores me but I&apos;m crazy</description><link>https://astro-pure.js.org</link><item><title>CF、Vercel、Netlify优选</title><link>https://astro-pure.js.org/blog/better-cerlify</link><guid isPermaLink="true">https://astro-pure.js.org/blog/better-cerlify</guid><description>提升部署在CF、Vercel及Netlify站点在大陆的访问速度</description><pubDate>Mon, 23 Feb 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;import { Aside, Steps, Collapse, MdxRepl } from &apos;astro-pure/user&apos;&lt;/p&gt;
&lt;h1&gt;前言&lt;/h1&gt;
&lt;p&gt;因某些神秘力量、及泛播节点的乱给，部署在Cloudflare、Vercel、Netlify（&lt;em&gt;cerlify&lt;/em&gt;）的站点在大陆内访问速度一言难尽，但架不住人家的免费、免实名&lt;br&gt;
在这篇文章中，我将介绍如何优选部署在cerlify上的站点，让其&lt;strong&gt;本土化&lt;/strong&gt;😎&lt;/p&gt;
&lt;h1&gt;开始&lt;/h1&gt;
&lt;h2&gt;Cloudflare Workers&lt;/h2&gt;
&lt;h2&gt;Cloudflare Pages&lt;/h2&gt;
&lt;h2&gt;Vercel &amp;#x26; Netlify&lt;/h2&gt;
&lt;h3&gt;方法一&lt;/h3&gt;
&lt;h3&gt;方法二&lt;/h3&gt;
&lt;h1&gt;结束&lt;/h1&gt;
&lt;h2&gt;效果&lt;/h2&gt;
&lt;h2&gt;其他&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;优选&lt;a href=&quot;#vercel--netlify&quot;&gt;Vercel&lt;/a&gt;时：&lt;br&gt;
如果你优选的项目是需要&lt;strong&gt;记录访问者IP&lt;/strong&gt;（评论系统、统计系统…）的，使用&lt;code&gt;vercel-cname.xingpingcn.top&lt;/code&gt;这个优选域名会导致IP全跑到CDN节点&lt;br&gt;
解决方法就是使用&lt;a href=&quot;#%E4%BC%98%E9%80%89%E5%9F%9F%E5%90%8D&quot;&gt;官方默认的泛播域名&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;自Cloudflare更新使用条款，&lt;strong&gt;优选IP为违规行为&lt;/strong&gt;，后果包括但不限于封禁账号&lt;/li&gt;
&lt;li&gt;Netlify的IP在部分地区会被阻断，所以尽管效果优选效果看起来很好，加载速度还是会有些慢&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;优选域名&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;CF Workers &amp;#x26; Pages:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;zeas.top&lt;/code&gt; &lt;strong&gt;站长维护&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;www.shopify.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;*.bilibiliapp.cn&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;*.cf.090227.xyz&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Vercel:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;vercel.zeas.top&lt;/code&gt; &lt;strong&gt;站长维护&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;vercel-cname.xingpingcn.top&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;cname.vercel-dns.com&lt;/code&gt; &lt;em&gt;官方；仅必要时&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Netlify
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;netlify.zeas.top&lt;/code&gt; &lt;strong&gt;站长维护&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;netlify-cname.xingpingcn.top&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;apex-loadbalancer.netlify.com&lt;/code&gt; &lt;em&gt;官方&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;|优选域名|关于|
|-|-|
|&lt;code&gt;zeas.top&lt;/code&gt;|抓自&lt;a href=&quot;https://www.wetest.vip/page/cloudflare/address_v4.html&quot;&gt;WeTest.vip&lt;/a&gt;，三网优选|
|&lt;code&gt;vercel.zeas.top&lt;/code&gt;|国内大部分地区走反代SNI节点，少部分走泛播节点；境外一律走泛播节点|
|&lt;code&gt;netlify.zeas.top&lt;/code&gt;|优选泛播节点➕新加坡节点|&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;[^1]: &gt; 华为云仅为示范，其他如阿里云、DNSPod等DNS服务商也能实现此效果&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;若无法注册国际版请使用国际互联网环境后再试
若您的域名已备案也可用国内版
&lt;/code&gt;&lt;/pre&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>萌备徽章化</title><link>https://astro-pure.js.org/blog/moeicp-badgify</link><guid isPermaLink="true">https://astro-pure.js.org/blog/moeicp-badgify</guid><description>让你的萌备用上更好看的徽章😉</description><pubDate>Sun, 22 Feb 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;import { Aside } from &apos;astro-pure/user&apos;&lt;/p&gt;
&lt;h1&gt;前言&lt;/h1&gt;
&lt;p&gt;你也想让你的萌备用上漂亮的&lt;strong&gt;徽章&lt;/strong&gt;吗&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/moeicp/20252235.svg&quot; alt=&quot;My own MoeICP badge&quot;&gt;
此篇文章我将介绍两种方法来给你的萌备用上美丽的徽章&lt;/p&gt;
&lt;h1&gt;开始&lt;/h1&gt;
&lt;h2&gt;方法一：使用Shields.io&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;最简单的一种方式，可以自定义颜色、文本、徽标样式&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;打开&lt;a href=&quot;https://shields.io/badges&quot;&gt;Static Badge | Shields.io&lt;/a&gt;，划到内容底部&lt;/p&gt;
&lt;p&gt;填写徽章信息：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;badgeContent&lt;/strong&gt;: &lt;code&gt;萌ICP备-xxxxxxxx号-pink&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;labelColor&lt;/strong&gt; (可选): &lt;code&gt;purple&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;填写完后点击&lt;strong&gt;Execute&lt;/strong&gt;查看效果&lt;/p&gt;
&lt;p&gt;复制给出的填写代码，按需复制，然后引用到网站的页脚，就行啦！&lt;/p&gt;
&lt;h2&gt;方法二：使用矢量图&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;只需替换
但颜色为固定的&lt;strong&gt;紫-粉&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;创建一个格式为&lt;strong&gt;svg&lt;/strong&gt;的文件，用文本编辑器打开，填入以下内容：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-html&quot;&gt;&amp;#x3C;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;128&quot; height=&quot;20&quot; role=&quot;img&quot; aria-label=&quot;moeicp&quot;&gt;
  &amp;#x3C;title&gt;MoeICP&amp;#x3C;/title&gt;
  &amp;#x3C;linearGradient id=&quot;s&quot; x2=&quot;0&quot; y2=&quot;100%&quot;&gt;
    &amp;#x3C;stop offset=&quot;0&quot; stop-color=&quot;#bbb&quot; stop-opacity=&quot;.1&quot;/&gt;
    &amp;#x3C;stop offset=&quot;1&quot; stop-opacity=&quot;.1&quot;/&gt;
  &amp;#x3C;/linearGradient&gt;
  &amp;#x3C;clipPath id=&quot;r&quot;&gt;
    &amp;#x3C;rect width=&quot;128&quot; height=&quot;20&quot; rx=&quot;3&quot; fill=&quot;#fff&quot;/&gt;
  &amp;#x3C;/clipPath&gt;
  &amp;#x3C;g clip-path=&quot;url(#r)&quot;&gt;
    &amp;#x3C;rect width=&quot;51&quot; height=&quot;20&quot; fill=&quot;purple&quot;/&gt;
    &amp;#x3C;rect x=&quot;51&quot; width=&quot;77&quot; height=&quot;20&quot; fill=&quot;pink&quot;/&gt;
    &amp;#x3C;rect width=&quot;128&quot; height=&quot;20&quot; fill=&quot;url(#s)&quot;/&gt;
  &amp;#x3C;/g&gt;
  &amp;#x3C;g fill=&quot;#fff&quot; text-anchor=&quot;middle&quot; font-family=&quot;Verdana,Geneva,DejaVu Sans,sans-serif&quot; text-rendering=&quot;geometricPrecision&quot; font-size=&quot;110&quot;&gt;
    &amp;#x3C;text aria-hidden=&quot;true&quot; x=&quot;265&quot; y=&quot;150&quot; fill=&quot;#010101&quot; fill-opacity=&quot;.3&quot; transform=&quot;scale(.1)&quot; textLength=&quot;410&quot;&gt;萌ICP备&amp;#x3C;/text&gt;
    &amp;#x3C;text x=&quot;265&quot; y=&quot;140&quot; transform=&quot;scale(.1)&quot; fill=&quot;#fff&quot; textLength=&quot;410&quot;&gt;萌ICP备&amp;#x3C;/text&gt;
    &amp;#x3C;text aria-hidden=&quot;true&quot; x=&quot;885&quot; y=&quot;150&quot; fill=&quot;#ccc&quot; fill-opacity=&quot;.3&quot; transform=&quot;scale(.1)&quot; textLength=&quot;670&quot;&gt;20252235号&amp;#x3C;/text&gt;
    &amp;#x3C;text x=&quot;885&quot; y=&quot;140&quot; transform=&quot;scale(.1)&quot; fill=&quot;#333&quot; textLength=&quot;670&quot;&gt;20252235号&amp;#x3C;/text&gt;
  &amp;#x3C;/g&gt;
&amp;#x3C;/svg&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;若无错误，就能在网站中引用并使用啦&lt;/p&gt;
&lt;h1&gt;结束&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;使用&lt;a href=&quot;#%E6%96%B9%E6%B3%95%E4%B8%80%E4%BD%BF%E7%94%A8shieldsio&quot;&gt;方法一&lt;/a&gt;直接引用链接会增加站点的跨域请求，而且在部分地区可能会初见访问失败的情况，建议&lt;strong&gt;将效果矢量图下载到本地然后将其引用到网站中&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;其他&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;如果想要使用&lt;strong&gt;带图标的&lt;/strong&gt;，下载&lt;a href=&quot;https://www.zeas.top/api/raw?path=/img/moeicp/20252235.svg&quot;&gt;此文件&lt;/a&gt;并依照&lt;a href=&quot;#%E6%96%B9%E6%B3%95%E4%BA%8C%E4%BD%BF%E7%94%A8%E7%9F%A2%E9%87%8F%E5%9B%BE&quot;&gt;方法二&lt;/a&gt;自行替换&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;图标来自&lt;a href=&quot;https://icp.gov.moe/images/gov.svg&quot;&gt;萌备&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;如果需要让访客点击徽章就跳转到你的萌备详情页，需要用到&lt;code&gt;&amp;#x3C;a&gt;&lt;/code&gt;标签：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-html&quot;&gt;&amp;#x3C;a
  title=&quot;MoeICP&quot;
  href=&quot;https://icp.gov.moe/?keyword=20252235&quot;
  target=&quot;_blank&quot;
/&gt;
&amp;#x3C;img
  src=&quot;https://www.zeas.top/api/raw?path=/img/moeicp/20252235.svg&quot;
/&gt;
&amp;#x3C;/a&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>我的小4（Pixel4）</title><link>https://astro-pure.js.org/blog/summary-of-my-flame</link><guid isPermaLink="true">https://astro-pure.js.org/blog/summary-of-my-flame</guid><description>谈谈一台我买过的洋垃圾</description><pubDate>Tue, 17 Feb 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h1&gt;前言&lt;/h1&gt;
&lt;p&gt;新年快乐各位！&lt;br&gt;
开年第一篇文章，想不到还有啥项目能搞的，所以就想写一篇~~使用体验~~😁&lt;/p&gt;
&lt;h1&gt;胡言乱语&lt;/h1&gt;
&lt;p&gt;22年，我重拾对搞机的热爱，拿着手中一台破OPPO A83T，刷着b站，紧跟搞机圈。但奈何手中没有能解bl的机子，所以只能望梅止渴。此时的我已经萌生出要买手机的念头&lt;br&gt;
当时因为每天晚上都熬夜，到了学校又昏昏沉沉的，班主任及时止损：要求把手机给他保管&lt;/p&gt;
&lt;p&gt;收了手机后确实——睡眠改善了很多，每天不在那么鬼迷日眼，但是是真的无聊。还好当时还有一台笔记本电脑，尽管是山寨的，但也好歹能用&lt;br&gt;
在家无聊时，我就拿那台笔记本刷刷b站、玩玩多邻国解解闷，但是心中还是想着——买手机&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;其实班主任叫我拿手机给她保管的时候，我拿的并不是一台能用的手机：&lt;br&gt;
当时还用一位同学和我一样被班主任硬性要求，我们两个当时就商量，拿烂的手机糊弄她&lt;br&gt;
好在她是让我们自己拿去她办公室，要不然到时候她让我们两个开机，就只能寄了&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;当时没有好好了解过，到底买什么手机才最有性价比。恍然间了解到：谷歌有卖手机，又驾于当时我还是个&lt;strong&gt;赛博嘉豪&lt;/strong&gt;（以为自己是最清醒的，会上谷歌就牛逼得不得不得的；天天故意在别人面前看油管，等着人家来问“哇你在看什么呀？”），没经过大脑思考就决定要买谷歌牌的手机😂&lt;br&gt;
当时没有接触过二手平台，就想着在淘宝买。当时一在纠结买哪款机型的时候，看到了&lt;strong&gt;那有着大额头&lt;/strong&gt;的Pixel 4，“我的妈妈耶！”，立马决定要买这个&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;当时经济实力不够，大4（Pixel 4 XL）只能望而退步&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;然后就开始货比三家，最终以&lt;strong&gt;950软妹币&lt;/strong&gt;拿下（真的贵死了ok？for me🙄）&lt;/p&gt;
&lt;h1&gt;使用经历&lt;/h1&gt;
&lt;p&gt;刚拿到手系统是安卓12L，商家给解了bl、刷了Magisk。拿在手上不轻不重，带上壳的话稍微重一些&lt;br&gt;
当时英语不好，拿到手开机的时候看到一个页面，直接慌死了：一个⚠️、电源键旁边有个白色块（特别像&lt;strong&gt;App Store&lt;/strong&gt;装软件时的确认过程）、然后all english，差点就以为被坑了（急哭了）。一通乱按，还是见到了&quot;Google&quot;标，等了一会，成功进系统🎉&lt;/p&gt;
&lt;p&gt;第一感觉是&lt;strong&gt;新鲜&lt;/strong&gt;：&lt;br&gt;
在之前的手机上都是仿类原生，第一次看到一个自己从来没亲自接触过的UI，觉得很欣喜（说实话我是真的爱看），特别是那个&lt;strong&gt;图标匹配主题&lt;/strong&gt;，放眼望去应用图标都是一个色，简单的线条就构成一个图标，我觉得是真的耐看，让人眼前一亮。
但国内app&quot;基本适配&quot;，放在一起特别突兀（像是把我放到了一群领导之中）&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/4/1.png&quot; alt=&quot;直至现在&quot;&gt;&lt;/p&gt;
&lt;p&gt;第二就是&lt;strong&gt;开放&lt;/strong&gt;：&lt;br&gt;
毕竟刷了Magisk，想咋搞就咋搞，在此之前玩root还是kingroot、360安全root时代&lt;br&gt;
当时装了像Pixel Mods、Iconify等特别多的美化模块，是更符合我的审美了，但是系统开机也变得更慢了；某些时候再来一个崩溃💀&lt;/p&gt;
&lt;p&gt;第三：&lt;strong&gt;原生态&lt;/strong&gt;&lt;br&gt;
因为没有很多软件，基本也就谷歌全家桶，&lt;strong&gt;在没装&lt;/strong&gt;任何软件的时候是很流畅的，
&lt;strong&gt;但&lt;/strong&gt;装了那就不一样了，这玩意内存小的可怜，6gb的内存开个浏览器标签页都得反复休眠，后台更是有个雷霆的保活😡：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;刷着抖音，突然来微信了，切去回消息，然后再切回来，无论你正刷着什么，立马给你重开&lt;/li&gt;
&lt;li&gt;软件填验证码时（特别是填邮箱验证码），某些软件公司那个验证码放的位置（e.g.某度），直接预览通知还看不到，必须点进去看原文才能获取信息，此时再切回来填验证码，软件又重开了&lt;/li&gt;
&lt;li&gt;划掉后台后，你将于离线于世界…&lt;br&gt;
好在有各种push，让我没有&quot;那些年错过的那些消息&quot;😢&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;第四觉得就是&lt;strong&gt;高级&lt;/strong&gt;：&lt;br&gt;
它的那个大额头，虽然看着有点膈应，但是是真的挺有用（好玩）的&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;3D人脸&lt;/strong&gt;真的是用了就回不去，晚上解锁是真挺好用，还有就是~~无死角~~解锁，眼睛瞟一眼立马开&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;雷达&lt;/strong&gt;虽然我用不到，当还是能用来装装逼，像挥手换音乐、近身识别我是觉得~~挺有用的~~&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;第五就是&lt;strong&gt;遗憾&lt;/strong&gt;：&lt;br&gt;
尽管黑科技很多，但因它是19年的产物，官包四代更新后也就停在了安卓13，还有就是电池，大四比小四要好很多，小四仅有可怜的&lt;strong&gt;2800mAh&lt;/strong&gt;，再加上内存的硬伤和雷霆调度，且启用所有特性，在大陆用它来做主力机的人简直神了（比如我🌚）&lt;/p&gt;
&lt;h1&gt;又胡言乱语&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;3D人脸好处就是能用 Fingerface➕指纹支付模块 实现3D人脸支付，尽管支付有着雷霆的支付过程，但我觉得是真的方便&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;雷达支持的应用少得可怜，我知道的也就只有YT music、声破天，而且还常常失灵&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;当然也能魔改app以支持雷达，若感兴趣请看&lt;a href=&quot;https://www.coolapk.com/feed/25993427&quot;&gt;酷安的这篇文章&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;移不动，联不通&lt;/strong&gt;
对大陆运营商的支持堪比给学校厕所隔间安半个门。我刚拿到的时候手机刚好有更新，当时还不知道保root更新，直接就点更新了，又用的是电信卡，更新完成后发现卡没信号了，当时都快急死了。好在是邻居家有网，上网查了才知道是因为对大陆运营商的支持不完全，特别是对电信，好在有临时的解决方案，让我在没有电脑的日子活了许久&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;第三方维护者也没放弃该机型，像LineageOS，直至今日都还有a16&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;谷歌在a14后期版本的时候完全移除了生物识别的代码，以至于a14以后，3D人脸：&lt;strong&gt;寄&lt;/strong&gt;😭&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;结束&lt;/h1&gt;
&lt;p&gt;时代的眼泪，当年的旗舰。一台堆满了黑科技的产物，没有得到想象中的重视，最终以结束维护~~草草收尾~~&lt;br&gt;
好在挺好用😋&lt;/p&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>在Mizuki上使用自托管Umami</title><link>https://astro-pure.js.org/blog/selfhost-umami-on-mizuki</link><guid isPermaLink="true">https://astro-pure.js.org/blog/selfhost-umami-on-mizuki</guid><description>在 Mizuki 上正确配置并使用自托管 Umami</description><pubDate>Sun, 08 Feb 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;import { Aside } from &apos;astro-pure/user&apos;&lt;/p&gt;
&lt;h1&gt;前言&lt;/h1&gt;
&lt;p&gt;前段时间把博客从 Hexo 换成了 Astro，然后发现我用的 Mizuki 主题的统计总是用不了&lt;br&gt;
进了交流群才发现原来只是默认适配了&lt;strong&gt;Umami Cloud&lt;/strong&gt;，并没有适配&lt;strong&gt;自托管Umami&lt;/strong&gt;&lt;br&gt;
后来在群友的帮助下还是找到了解决方法😋&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;自托管Umami&lt;/strong&gt;没有&lt;code&gt;API Key&lt;/code&gt;这一说，用的是&lt;code&gt;Bearer Token&lt;/code&gt;，而 Mizuki 默认只支持使用&lt;code&gt;API Key&lt;/code&gt;，想要使用自托管我们得更改文件&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;准备&lt;/h1&gt;
&lt;p&gt;先获取&lt;code&gt;token&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;打开&lt;a href=&quot;https://hoppscotch.io/&quot;&gt;Hoppscotch&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;将原先的&lt;code&gt;GET&lt;/code&gt;改成&lt;code&gt;POST&lt;/code&gt;，后方填&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;https://&amp;#x3C;yours&gt;/api/auth/login
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;选&lt;code&gt;Body&lt;/code&gt;页，&lt;strong&gt;Content Type&lt;/strong&gt; 选&lt;code&gt;application/json&lt;/code&gt;，&lt;strong&gt;Raw Request Body&lt;/strong&gt; 填&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;{
  &quot;username&quot;: &quot;Umami用户名&quot;,
  &quot;password&quot;: &quot;Umami密码&quot;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;点蓝色按钮&lt;code&gt;Send&lt;/code&gt;，稍等片刻，下方就会出现&lt;code&gt;token&lt;/code&gt;&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/3/1.png&quot; alt=&quot;e.g.&quot;&gt;
完整地复制&lt;code&gt;token&lt;/code&gt;，并将其暂时储存在某个地方&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;开始&lt;/h1&gt;
&lt;h2&gt;编辑&lt;code&gt;umami-share.js&lt;/code&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;位于&lt;code&gt;./public/js/&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;将27、68行 &lt;strong&gt;statsUrl&lt;/strong&gt; 后面的&lt;code&gt;/v1&lt;/code&gt;去除&lt;/li&gt;
&lt;li&gt;将31、72行改为
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;Authorization: `Bearer ${apiKey}`
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;编辑&lt;code&gt;config.ts&lt;/code&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;位于&lt;code&gt;./src/&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;将最后 &lt;strong&gt;umamiConfig&lt;/strong&gt; 下&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;apiKey&lt;/code&gt;填前面复制的&lt;code&gt;token&lt;/code&gt;；&lt;br&gt;
或者使用环境变量&lt;/li&gt;
&lt;li&gt;&lt;code&gt;baseUrl&lt;/code&gt;填
&lt;pre&gt;&lt;code&gt;https://&amp;#x3C;yours&gt;/api
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;结束&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;若对文章部分步骤有疑惑，可以打开&lt;a href=&quot;https://github.com/xxytan/blog&quot;&gt;博客源代码&lt;/a&gt;，对照着进行操作&lt;/li&gt;
&lt;li&gt;获取&lt;code&gt;token&lt;/code&gt;的时候最好是用一个&lt;strong&gt;仅查看&lt;/strong&gt;权限的账户，不要用管理员账户，以备有心之人&lt;br&gt;
（但是拿到&lt;code&gt;token&lt;/code&gt;其实也干不了啥）&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;已知问题&lt;/h2&gt;
&lt;p&gt;~~1. 文章访问量与站点访问量一致~~&lt;/p&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>修复谷歌翻译</title><link>https://astro-pure.js.org/blog/fix-gtranslate</link><guid isPermaLink="true">https://astro-pure.js.org/blog/fix-gtranslate</guid><description>仍能够可行的国内谷歌翻译修复方法</description><pubDate>Sat, 07 Feb 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;import { GithubCard } from &apos;astro-pure/advanced&apos;
import { Aside, Spoiler } from &apos;astro-pure/user&apos;&lt;/p&gt;
&lt;h1&gt;前言&lt;/h1&gt;
&lt;p&gt;22年9月下旬，谷歌翻译以“使用率低”而退出了中国。至此，除了广告服务以外，谷歌所有业务均已退出中国&lt;br&gt;
事实对于我来说好似晴天霹雳，但好在还有&lt;a href=&quot;https://bing.com/translator&quot;&gt;必应翻译&lt;/a&gt;&lt;br&gt;
出这篇文章也是急性而起，下文提到的项目也是很久之前就有的了，但是仍能够使用&lt;/p&gt;
&lt;h1&gt;准备&lt;/h1&gt;
&lt;p&gt;打开此GitHub仓库&lt;/p&gt;
&lt;p&gt;根据系统自行选择下载&lt;/p&gt;
&lt;p&gt;解压下载得的压缩包，会获得一个命名为&lt;code&gt;系统-架构&lt;/code&gt;的文件夹，其中仅包含四个文件，前缀为&lt;code&gt;GoogleTranslateIpCheck&lt;/code&gt;的文件是我们主要关注的&lt;/p&gt;
&lt;h1&gt;使用&lt;/h1&gt;
&lt;h2&gt;Windows&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;运行&lt;code&gt;GoogleTranslateIpCheck.exe&lt;/code&gt;，会自动开始检测可用的IPV4地址&lt;/li&gt;
&lt;li&gt;若要检测IPV6地址，需在目录下打开&lt;code&gt;cmd&lt;/code&gt;，运行
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;GoogleTranslateIpCheck.exe -6
&lt;/code&gt;&lt;/pre&gt;
便会开始检测可用的IPV6地址&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;检测完会列出可用的IPV4/6地址，并以延迟最低的IP给你列好填写规则&lt;a href=&quot;%E4%BE%8B%E5%A6%82%EF%BC%9A&quot;&gt;^1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;此时我们用记事本打开&lt;code&gt;C:\Windows\System32\drivers\etc\hosts&lt;/code&gt;文件，在末尾加入给我们的填写规则，并保存&lt;/p&gt;
&lt;h2&gt;Linux&lt;/h2&gt;
&lt;p&gt;在解压后得到的文件夹下打开终端，运行&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;chmod +x GoogleTranslateIpCheck
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;来提权，然后运行&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;./GoogleTranslateIpCheck
&lt;/code&gt;&lt;/pre&gt;
来检测可用的IPV4地址&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;  ./GoogleTranslateIpCheck -6
&lt;/code&gt;&lt;/pre&gt;
来检测可用的IPV6地址
检测完后会列出可用的IPV4/6地址，并以延迟最低的IP给你列好填写规则&lt;a href=&quot;%E4%BE%8B%E5%A6%82%EF%BC%9A&quot;&gt;^1&lt;/a&gt;，&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;此时打开&lt;code&gt;/etc/hosts&lt;/code&gt;文件，在末尾加入给我们的填写规则，并保存&lt;/p&gt;
&lt;h2&gt;Android（需ROOT）&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;需借助&lt;a href=&quot;https://github.com/termux/termux-app/releases/latest&quot;&gt;Termux&lt;/a&gt;，且需使用项目中的&lt;code&gt;linux-arm64&lt;/code&gt;包&lt;br&gt;
其他与&lt;a href=&quot;#linux&quot;&gt;Linux&lt;/a&gt;一致&lt;/li&gt;
&lt;li&gt;或直接使用在其他系统中检测得的填写规则&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;||区别|
|-|-|
|&lt;code&gt;system&lt;/code&gt;可读写|可以直接修改&lt;code&gt;/etc/hosts&lt;/code&gt;文件|
|&lt;code&gt;system&lt;/code&gt;仅可读|需借助Magisk的&lt;code&gt;systemless&lt;/code&gt;模块或❤️使用&lt;a href=&quot;https://github.com/GitMetaio/Surfing&quot;&gt;Surfing&lt;/a&gt;的&lt;code&gt;挂载hosts&lt;/code&gt;功能|&lt;/p&gt;
&lt;h1&gt;效果&lt;/h1&gt;
&lt;p&gt;有以下任意一条的效果则说明修复成功🎉&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;用浏览器打开&lt;a href=&quot;https://translate.google.com&quot;&gt;translate.google.com&lt;/a&gt;，能够在国内网络环境直接访问&lt;/li&gt;
&lt;li&gt;使用Chrome自带的翻译功能，能够在国内网络环境下正常翻译外语网站&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;结束&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;在&lt;a href=&quot;#android%E9%9C%80root&quot;&gt;Android&lt;/a&gt;下修复须有一定动手能力&lt;/li&gt;
&lt;li&gt;若只使用浏览器内的翻译，安装像&lt;code&gt;沉浸式翻译&lt;/code&gt;等插件也是不错的选择&lt;/li&gt;
&lt;li&gt;无Mac是因为没用过🌚，但是步骤和&lt;a href=&quot;#linux&quot;&gt;Linux&lt;/a&gt;是差不多的&lt;/li&gt;
&lt;li&gt;检测的IPV4基本都不可用（我只检测出来一个可用：142.251.169.90），若你的网络支持IPV6，强烈建议使用检测IPV6的方式&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;```
# IPV4
127.0.0.1 translate.googleapis.com
127.0.0.1 translate.google.com
127.0.0.1 translate-pa.googleapis.com&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# IPV6
::1 translate.googleapis.com
::1 translate.google.com
::1 translate-pa.googleapis.com
```
&lt;/code&gt;&lt;/pre&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>个人洋文练习</title><link>https://astro-pure.js.org/blog/ingles-practice</link><guid isPermaLink="true">https://astro-pure.js.org/blog/ingles-practice</guid><description>自己曾写过的英语作文，留个纪念就🥴</description><pubDate>Sun, 11 Jan 2026 00:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;记记自己那些写过的英语作文，留个纪念，同时提升自己
&lt;strong&gt;欢迎各位纠错！&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;My Holiday Plans&lt;/h1&gt;
&lt;p&gt;  How time flies! The winter holiday is getting closer and closer. To make my holiday more wonderful, I listed some plans.
  Rest is the first. When I was at school, all day&apos;s buzy study were always suffocating. I can release myself eventually! So I&apos;m going to hang out with my friends, have some barbecues, and play video games. Also, homework is necessary. Something I learnt in class I&apos;ll forget if I do only play during the whole holiday. In order to avoid this situation, I&apos;ll also finish my homework meanwhile I enjoy myself and review often. Last but not least: do chores. My parent&apos;s won&apos;t stop working, although the holiday comes. So i will try to do chores that I have ablility to do, such as sweeping and washing. I don&apos;t want to see them doing chores with a tired body.
  In a word, &quot;Holiday can&apos;t cause life to stop&quot;. I&apos;ll balance my things. I&apos;m looking forward to the coming winter holiday!&lt;/p&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>部署Hexo到各静态资源上线平台（Pages）</title><link>https://astro-pure.js.org/blog/hexo-to-pages</link><guid isPermaLink="true">https://astro-pure.js.org/blog/hexo-to-pages</guid><description>轻松让你的Hexo在互联网永生</description><pubDate>Sun, 21 Dec 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;import { Aside } from &apos;astro-pure/user&apos;&lt;/p&gt;
&lt;h1&gt;前言&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;如何部署Hexo请移步&lt;a href=&quot;/posts/hexo-d-termux&quot;&gt;上篇文章&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;也是以Termux为终端，桌面端的宝子除了终端不同，其他步骤大差不差&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;准备工作&lt;/h1&gt;
&lt;h2&gt;安装Git和OpenSSH&lt;/h2&gt;
&lt;p&gt;输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;pkg install git&amp;#x26;&amp;#x26;openssh -y
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;等待进程跑完然后&lt;/p&gt;
&lt;h3&gt;配置Git&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;根据需求，选择适合自己的Git托管平台&lt;br&gt;
以&lt;a href=&quot;https://github.com&quot;&gt;GitHub&lt;/a&gt;做演示&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;逐条输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;git config --global user.name &apos;&amp;#x3C;username&gt;&apos;
git config --global user.email &apos;&amp;#x3C;useremail&gt;&apos;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;并回车，以做Git全局配置&lt;/p&gt;
&lt;h3&gt;配置OpenSSH&lt;/h3&gt;
&lt;p&gt;输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;ssh-keygen -t rsa -C &quot;&amp;#x3C;useremail&gt;&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;回车，并再连续三次回车，生成公钥&lt;br&gt;
然后再输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;cat .ssh/id_rsa.pub
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;查看公钥，把反出的一大长串复制下来，
然后打开&lt;a href=&quot;https://github.com/settings/keys&quot;&gt;SSH and GPG Keys&lt;/a&gt;，往下滑，点&lt;code&gt;New SSH Key&lt;/code&gt;，照下图填写&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/1.png&quot; alt=&quot;&quot;&gt;然后点 &lt;code&gt;Add SSH Key&lt;/code&gt;&lt;/p&gt;
&lt;h1&gt;将代码托管到GitHub仓库&lt;/h1&gt;
&lt;p&gt;点&lt;a href=&quot;https://github.com/new&quot;&gt;New Repository&lt;/a&gt;创建新仓库，仓库名称就按&lt;code&gt;&amp;#x3C;username&gt;.github.io&lt;/code&gt;来填，&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/2.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h2&gt;初始化仓库&lt;/h2&gt;
&lt;p&gt;返回Termux，cd到博客文件夹，然后逐条输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;git init
git add .
git commit -m &quot;&amp;#x3C;commitment&gt;&quot;
git branch -M main
git remote add origin git@github.com:&amp;#x3C;username&gt;/&amp;#x3C;username&gt;.github.io.git
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;&amp;#x3C;commitment&gt;&lt;/code&gt;随便。然后再输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;git push -u origin main
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;进程跑完后，博客文件就被托管到远程仓库了&lt;/p&gt;
&lt;p&gt;接下来就是重头戏&lt;/p&gt;
&lt;h1&gt;部署到各Pages&lt;/h1&gt;
&lt;h2&gt;GitHub Pages&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;利用GitHub Actions部署，大陆容易被墙&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;开始&lt;/h3&gt;
&lt;p&gt;我们在博客文件夹下创建依次创建
&lt;code&gt;.github/workflows/pages.yml&lt;/code&gt;&lt;a href=&quot;%E5%85%88%E5%88%9B%E5%BB%BA%60.github%60%E6%96%87%E4%BB%B6%E5%A4%B9%EF%BC%8C%E5%86%8D%E5%9C%A8%E9%87%8C%E9%9D%A2%E5%88%9B%E5%BB%BA%60workflows%60%E6%96%87%E4%BB%B6%E5%A4%B9%EF%BC%8C%E6%9C%80%E5%90%8E%E5%9C%A8%E9%87%8C%E9%9D%A2%E5%88%9B%E5%BB%BA%60pages.yml%60%E6%96%87%E4%BB%B6&quot;&gt;^1&lt;/a&gt;，并填入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;name: Pages

on:
  push:
    branches:
      - main
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          submodules: recursive
      - name: Use Node.js 24 # 填自己的大版本号
        uses: actions/setup-node@v4
        with:
          node-version: &quot;24.13.0&quot; # 填自己的详细版本号
      - name: Cache NPM dependencies
        uses: actions/cache@v4
        with:
          path: node_modules
          key: ${{ runner.OS }}-npm-cache
          restore-keys: |
            ${{ runner.OS }}-npm-cache
      - name: Install Dependencies
        run: npm install
      - name: Build
        run: npm run build
      - name: Upload Pages artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: ./public
  deploy:
    needs: build
    permissions:
      pages: write
      id-token: write
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;并保存，&lt;/p&gt;
&lt;p&gt;打开仓库设置里的&lt;strong&gt;Pages&lt;/strong&gt;，把&lt;strong&gt;Bulid and deployment&lt;/strong&gt;下的&lt;strong&gt;Source&lt;/strong&gt;从&lt;strong&gt;Deploy from a branch&lt;/strong&gt;改为&lt;code&gt;GitHub Actions&lt;/code&gt;，&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/3.png&quot; alt=&quot;&quot;&gt;
返回Termux，输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;git push --force
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;等待推送完毕，此时我们打开仓库的&lt;strong&gt;Actions&lt;/strong&gt;，当一切皆绿时，我们点击&lt;strong&gt;deploy&lt;/strong&gt;下面给的类似于 &lt;em&gt;xxytan.github.io&lt;/em&gt; 地址，就能访问我们的博客啦🎉!&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/4.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h3&gt;绑定域名&lt;/h3&gt;
&lt;p&gt;在博客文件夹内创建一个&lt;code&gt;CNAME&lt;/code&gt;文件，将要绑定的自定义域填入，然后&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;git add .
git push
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;再到你的域名管理商添加&lt;strong&gt;CNAME&lt;/strong&gt;记录，值为 &lt;code&gt;&amp;#x3C;username&gt;.github.io&lt;/code&gt;&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/5.png&quot; alt=&quot;&quot;&gt;
继续到仓库设置的&lt;strong&gt;Pages&lt;/strong&gt;，在右侧&lt;strong&gt;Custom domain&lt;/strong&gt;下填入前面输入的自定义域，点&lt;code&gt;Save&lt;/code&gt;，等待下方成&lt;strong&gt;DNS check successful&lt;/strong&gt;，能成功访问自定义域就成功啦🎉&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/6.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Cloudflare Pages&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;站长最推荐&lt;/strong&gt;，后续可参照&lt;a href=&quot;/posts/better-cerlify/#cloudflare-pages&quot;&gt;此文章&lt;/a&gt;优选而提高在大陆地区访问速度&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;开始&lt;/h3&gt;
&lt;p&gt;登录&lt;a href=&quot;https://dash.cloudflare.com&quot;&gt;Cloudflare 仪表盘&lt;/a&gt;，&lt;/p&gt;
&lt;p&gt;打开&lt;strong&gt;计算和 AI&lt;/strong&gt;下的&lt;strong&gt;Workers and Pages&lt;/strong&gt;，点&lt;code&gt;创建应用程序&lt;/code&gt;，再点下面的&lt;code&gt;Get started&lt;/code&gt;&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/7.png&quot; alt=&quot;&quot;&gt;选择 &lt;code&gt;导入现有的 Git 存储库&lt;/code&gt;，授权一下你的 GitHub，然后选择前面创建的仓库，再按下面的填：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;npx run build # 构建命令
public # 构建输出目录
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;然后点&lt;code&gt;保存并部署&lt;/code&gt;&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/8.png&quot; alt=&quot;&quot;&gt;等待他部署完成，会给一个 &lt;em&gt;xxxxx.pages.dev&lt;/em&gt; 的域名，点进去也是能够访问的&lt;/p&gt;
&lt;h3&gt;绑定域名&lt;/h3&gt;
&lt;p&gt;打开项目，点 &lt;strong&gt;自定义域&lt;/strong&gt; → &lt;code&gt;设置自定义域&lt;/code&gt;，跟着引导走，等到呈现&lt;strong&gt;活动&lt;/strong&gt;状态就能够通过自定义域访问了&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/9.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h2&gt;EdgeOne Pages&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;腾讯的玩意儿，在国内的访问速度确实不错，后续也可以通过添加&lt;code&gt;A记录&lt;/code&gt;优选
&lt;strong&gt;已备案的域名&lt;/strong&gt;最推荐的方式&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;开始&lt;/h3&gt;
&lt;p&gt;登录&lt;a href=&quot;https://console.tencentcloud.com/edgeone&quot;&gt;EdgeOne&lt;/a&gt;，&lt;/p&gt;
&lt;p&gt;点&lt;strong&gt;Pages&lt;/strong&gt; → &lt;code&gt;创建项目&lt;/code&gt; → &lt;code&gt;导入 Git 仓库&lt;/code&gt;，授权一下GitHub，&lt;br&gt;
选择前面创建的仓库，会自动匹配&lt;strong&gt;框架预设&lt;/strong&gt;，我们就直接点&lt;code&gt;开始部署&lt;/code&gt;就好了&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/10.png&quot; alt=&quot;&quot;&gt;部署完毕后会有一个 &lt;code&gt;xxxxx.edgeone.xxx&lt;/code&gt; 域名，三个小时后过期，打开后也是能够访问的&lt;/p&gt;
&lt;h4&gt;绑定域名&lt;/h4&gt;
&lt;p&gt;打开项目，点到&lt;strong&gt;项目设置&lt;/strong&gt;，找到&lt;code&gt;添加自定义域&lt;/code&gt;，跟着引导走就行了，等到&lt;code&gt;DNS记录&lt;/code&gt;&amp;#x26;&lt;code&gt;证书&lt;/code&gt;都呈现已部署状态就能通过自定义域名访问了&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/11.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Vercel&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;大陆访问速度还行，后续也可以通过优选提高访问速度，具体方法参考&lt;a href=&quot;/posts/better-cerlify/#vercel--netlify&quot;&gt;此文章&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;开始&lt;/h3&gt;
&lt;p&gt;登录&lt;a href=&quot;https://vercel.com&quot;&gt;Vercel&lt;/a&gt;，&lt;em&gt;新账号会引导创建团队&lt;/em&gt;，&lt;/p&gt;
&lt;p&gt;点右上角的&lt;strong&gt;Add New…&lt;/strong&gt;，选&lt;code&gt;Project&lt;/code&gt;，授权一下你的GitHub，&lt;br&gt;
选择前面创建的仓库，会自动匹配预设，若未自动匹配请自行选择&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/12.jpg&quot; alt=&quot;&quot;&gt;
然后点&lt;code&gt;Deploy&lt;/code&gt;，等待一会就部署好啦，点&lt;strong&gt;Go to Dashboard&lt;/strong&gt;，就能看到一个 &lt;em&gt;xxxxx.vercel.app&lt;/em&gt; 的域名，打开也是能够访问的&lt;/p&gt;
&lt;h3&gt;绑定域名&lt;/h3&gt;
&lt;p&gt;点&lt;strong&gt;Domains&lt;/strong&gt;旁的&quot;➕&quot;，&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/13.jpg&quot; alt=&quot;&quot;&gt;然后点&lt;code&gt;Add Domain&lt;/code&gt;，输入你想绑定的域名，点&lt;code&gt;Save&lt;/code&gt;或回车，再把给出的&lt;strong&gt;CNAME&lt;/strong&gt;记录vi添加到域名管理商，耐心等待一会，直至呈现可用（&lt;strong&gt;Valid Configuration&lt;/strong&gt;）就行啦&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/14.jpg&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Netlify&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;同Vercel，&lt;strong&gt;但其IP容易被GFW阻断&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;开始&lt;/h3&gt;
&lt;p&gt;登录&lt;a href=&quot;https://app.netlify.com&quot;&gt;Netlify&lt;/a&gt;，&lt;em&gt;新账号会引导创建团队&lt;/em&gt;，&lt;/p&gt;
&lt;p&gt;点右上角的&lt;strong&gt;Add new project&lt;/strong&gt;，选&lt;code&gt;Import an existing project&lt;/code&gt;，授权一下你的GitHub，&lt;br&gt;
选择前面创建的仓库，项目名称（&lt;strong&gt;Project name&lt;/strong&gt;）随便。会自动识别并填写关键信息，否则请自行填写&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/15.png&quot; alt=&quot;&quot;&gt;
部署完成后，打开 &lt;em&gt;;name.netlify.app&lt;/em&gt; 也是可以访问的&lt;/p&gt;
&lt;h3&gt;绑定域名&lt;/h3&gt;
&lt;p&gt;切到&lt;strong&gt;Domain management&lt;/strong&gt;，右边点&lt;strong&gt;Add a domain&lt;/strong&gt;下的&lt;code&gt;Add a domain you already own&lt;/code&gt;，&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/16.png&quot; alt=&quot;&quot;&gt;
填入你的域名，然后点&lt;code&gt;Verify&lt;/code&gt;，会要求进行&lt;strong&gt;TXT域名所有权验证&lt;/strong&gt;，我们可以直接点击下方的&lt;code&gt;Add subdomain&lt;/code&gt;跳过验证&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/2/17.webp&quot; alt=&quot;&quot;&gt;
此时到域名管理商添加值为&lt;code&gt;;name.netlify.app&lt;/code&gt;的&lt;strong&gt;CNAME&lt;/strong&gt;记录，解析成功后会自动申请并部署SSL证书&lt;/p&gt;
&lt;h1&gt;结束&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;其实也可以直接用&lt;strong&gt;hexo-deployer-git&lt;/strong&gt;插件一键生成静态资源并部署到仓库，具体请看&lt;a href=&quot;https://hexo.io/zh-cn/docs/one-command-deployment#Git&quot;&gt;官方文档&lt;/a&gt;，但是我个人不推荐&lt;/li&gt;
&lt;li&gt;有考虑专门出一篇文章介绍&lt;strong&gt;如何部署到cf workers&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>用Termux部署Hexo</title><link>https://astro-pure.js.org/blog/hexo-d-termux</link><guid isPermaLink="true">https://astro-pure.js.org/blog/hexo-d-termux</guid><description>轻松使用Termux部署一个属于自己的博客</description><pubDate>Sat, 16 Aug 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;import { Collapse } from &apos;astro-pure/user&apos;&lt;/p&gt;
&lt;h1&gt;前言&lt;/h1&gt;
&lt;p&gt;此篇文章结合网络上的方法已经我个人的一些经验撰写，可能有些许不足，请谅解
桌面端的同志仅终端不一样，其他过程都大差不差&lt;/p&gt;
&lt;h1&gt;安装Termux&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;可以使用&lt;a href=&quot;https://github.com/termux/termux-app/releases/latest&quot;&gt;原版Termux&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;或第三方的类似于&lt;a href=&quot;https://github.com/hanxinhao000/ZeroTermux/releases/latest&quot;&gt;ZeroTermux&lt;/a&gt;（以此做演示）&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;打开后跟着向导，授予基本权限，然后我们就可以开始&lt;/p&gt;
&lt;h2&gt;换源&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;目的提高国内网络环境下载速度&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;运行&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;termux-change-repo
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;并回车，此时会出现&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/1/1.png&quot; alt=&quot;这样的界面&quot;&gt;&lt;/p&gt;
&lt;p&gt;使用&lt;strong&gt;右下角的方向按钮&lt;/strong&gt;操控，选择第二个选项，便会出现&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/1/2.png&quot; alt=&quot;这样的界面&quot;&gt;
选带有&lt;code&gt;tuna&lt;/code&gt;&lt;a href=&quot;%E6%B8%85%E5%8D%8E%E5%A4%A7%E5%AD%A6%E6%BA%90%E3%80%82%E4%B9%9F%E5%8F%AF%E8%87%AA%E8%A1%8C%E9%80%89%E6%8B%A9%E5%85%B6%E4%BB%96%E5%9B%BD%E5%86%85%E9%95%9C%E5%83%8F%E6%BA%90&quot;&gt;^1&lt;/a&gt;的空格并回车，等待它自动更新软件包库&lt;/p&gt;
&lt;h1&gt;安装Node.js&lt;a href=&quot;%E5%AE%89%E8%A3%85%E7%9A%84%E6%98%AF%E9%95%BF%E6%9C%9F%E7%89%88%E3%80%82%E4%B9%9F%E5%8F%AF%E9%80%9A%E8%BF%87%E4%BB%A5%E4%B8%8B%E5%91%BD%E4%BB%A4%E5%AE%89%E8%A3%85%E7%A8%B3%E5%AE%9A%E7%89%88%EF%BC%9A&quot;&gt;^2&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;pkg install nodejs-lts -y
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;等待进程跑完，然后继续&lt;/p&gt;
&lt;h1&gt;部署Hexo框架及测试&lt;/h1&gt;
&lt;h2&gt;部署&lt;/h2&gt;
&lt;p&gt;输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;npm i hexo-cli -g
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;安装Hexo框架，然后再输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;hexo init &amp;#x3C;folder&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;&amp;#x3C;folder&gt;&lt;/code&gt;[^3]即文件夹名，本教程以&lt;code&gt;blog&lt;/code&gt;为例&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;运行结束后&lt;code&gt;/data/data/com.termux/files/home/&lt;/code&gt;下就会有一个名为&lt;code&gt;blog&lt;/code&gt;的文件夹，这个文件夹就储存着Hexo的必备文件了&lt;/p&gt;
&lt;h2&gt;用户差异&lt;/h2&gt;
&lt;p&gt;|用户||
|-|-|
|SU|可直接访问&lt;code&gt;blog&lt;/code&gt;文件夹|
|普通用户|需借助第三方文件管理器|&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;普通用户可以先在Termux运行
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;termux-setup-storage
&lt;/code&gt;&lt;/pre&gt;
并授予访问存储权限，然后使用&lt;a href=&quot;https://mt2.cn&quot;&gt;MT管理器&lt;/a&gt;的&lt;code&gt;添加本地存储功能&lt;/code&gt;，操作过后就能够方便地使用图形化界面访问&lt;code&gt;blog&lt;/code&gt;文件夹&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/1/4.gif&quot; alt=&quot;操作流程&quot;&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;测试&lt;/h2&gt;
&lt;p&gt;输入&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;hexo s
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;运行后&lt;a href=&quot;http://localhost:4000&quot;&gt;本地4000端口&lt;/a&gt;会映射出内容，在浏览器中打开它，不出所料，你就能看到&lt;img src=&quot;https://www.zeas.top/api/raw?path=/img/p/1/5.png&quot; alt=&quot;这样的页面&quot;&gt;
这就说明你的&lt;strong&gt;Hexo已经部署成功了！&lt;/strong&gt;&lt;/p&gt;
&lt;h1&gt;常用的操作命令[^4]&lt;/h1&gt;
&lt;p&gt;|命令|注释|
|-|-|
|hexo s| 映射本地预览网页，端口4000|
|hexo g| 以当前配置生成文件，生成在&lt;code&gt;./public&lt;/code&gt;下|
|hexo d[^5]| 部署到远程仓库|
|hexo cl| 清理先前生成的文件|
|hexo n post ~| 新建文章，&lt;code&gt;~&lt;/code&gt;即文章名字，生成在&lt;code&gt;./source/_posts&lt;/code&gt;下|
|hexo n draft ~| 新建草稿，&lt;code&gt;~&lt;/code&gt;即草稿名字，生成在&lt;code&gt;./source/_drafts&lt;/code&gt;下|
|hexo n page ~ | 生成页面，&lt;code&gt;~&lt;/code&gt;即页面名字，生成友链和关于等页面会用到|
|hexo p ~| 发布草稿为文章，&lt;code&gt;~&lt;/code&gt;即要发布的草稿名字|&lt;/p&gt;
&lt;h1&gt;结尾&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;由于各个主题之间的差异，在此不对安装主题做任何讲解，具体请查看官方文档或查阅资料&lt;/li&gt;
&lt;li&gt;安装过程中涉及到&lt;code&gt;pkg&lt;/code&gt;命令都可以换成&lt;code&gt;apt&lt;/code&gt;命令&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;&lt;code&gt;shell     pkg install nodejs     &lt;/code&gt;
[^3]: 不得使用&lt;strong&gt;中文&lt;/strong&gt;、&lt;strong&gt;Emoji&lt;/strong&gt;等其他非法字符
[^4]: 均为缩写命令，具体请参阅&lt;a href=&quot;https://hexo.io/zh-cn/docs/commands&quot;&gt;官方文档&lt;/a&gt;
[^5]: 具体请参阅&lt;a href=&quot;https://hexo.io/zh-cn/docs/one-command-deployment&quot;&gt;官方文档&lt;/a&gt;&lt;/p&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item></channel></rss>