Skip to content

Commit

Permalink
Site updated: 2024-08-16 15:07:32
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowang266 committed Aug 16, 2024
1 parent 4b36cc5 commit 00204e3
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="https://www.xiaowang266.top/atom.xml" rel="self"/>

<link href="https://www.xiaowang266.top/"/>
<updated>2024-08-16T06:56:55.691Z</updated>
<updated>2024-08-16T07:00:00.684Z</updated>
<id>https://www.xiaowang266.top/</id>

<author>
Expand All @@ -20,8 +20,8 @@
<title>博客功能更新!</title>
<link href="https://www.xiaowang266.top/blogs/blog-update-2/"/>
<id>https://www.xiaowang266.top/blogs/blog-update-2/</id>
<published>2024-08-16T08:00:00.000Z</published>
<updated>2024-08-16T06:56:55.691Z</updated>
<published>2024-08-16T07:00:00.000Z</published>
<updated>2024-08-16T07:00:00.684Z</updated>

<content type="html"><![CDATA[<p>因为<a href="https://waline.js.org/">Waline</a>依托的<a href="https://vercel.com/">Vercel</a>在内地几乎无法访问,所以大伙应该都评论不了。为了尽快解决这个问题,才有了这次更新。不过随着学习的推进,我又发现了一些新问题,有了一些新想法。</p><p>同时,我还把Waline不能调成暗黑模式的错误给修了,这个错误竟然没被博客主题作者发现。已提交至Issues:<a href="https://github.com/theme-kaze/hexo-theme-kaze/issues/87#issuecomment-2289421341">Waline无法跟随博客开关暗黑模式 · Issue #87</a>。</p><p>另外,我把<a href="https://rss.com/">RSS</a>功能给加上了(就是那个长得像歪了的WiFi的东西),虽然是老东西了,但应该还有人用吧。</p><p>省流:</p><p><u><mark><strong>博客新链接</strong></mark></u>:<a href="https://www.xiaowang266.top/">xiaowang266.top</a>或<a href="https://www.xiaowang266.top/">www.xiaowang266.top</a></p><h2 id="问题:Waline无法访问"><a href="#问题:Waline无法访问" class="headerlink" title="问题:Waline无法访问"></a>问题:Waline无法访问</h2><p>想要解决这个问题,必须要花钱租个域名,然后把域名解析到VercelCDN才行。这个很简单,一般的域名租赁网站,比如<a href="https://buy.cloud.tencent.com/domain">腾讯云</a>和<a href="https://wanwang.aliyun.com/domain">阿里云</a>,都支持解析。而且,只要不是什么特别好的域名,一般都不贵,最低第一年五块钱。</p><p><img src="https://s2.loli.net/2024/08/16/8bBzyMi6HjSNT1A.jpg" alt="Waline解析" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="https://s2.loli.net/2024/08/16/8bBzyMi6HjSNT1A.jpg" class="lozad post-image"></p><h3 id="引申:如何充分利用域名"><a href="#引申:如何充分利用域名" class="headerlink" title="引申:如何充分利用域名"></a>引申:如何充分利用域名</h3><p>既然花钱了,那我必须榨干域名的所有价值。如果只是<code>waline.xiaowang266.top</code>会解析成评论系统,那<code>www.xiaowang266.top</code>是不是可以解析成我的博客呢?</p><p>事实证明,可以。但是如果仅解析到VercelCDN和xiaowang266.github.io的话,会出现访问不稳定的情况,必须要把根域名解析到Vercel和Github的服务器才能稳定。这时问题就来了:Github要解析的不只是Github服务器,还要解析GIthub Pages服务器。加上Vercel服务器就总共是三个地址了,而腾讯云只能把根域名解析成两个IP。</p><p><img src="https://s2.loli.net/2024/08/16/35BdzslMePhf9wn.jpg" alt="两个" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="https://s2.loli.net/2024/08/16/35BdzslMePhf9wn.jpg" class="lozad post-image"></p><p>这……只能用不限数目的<a href="https://www.cloudflare-cn.com/">Cloudflare</a>解析了。也不太复杂就是了,只需要在腾讯云把域名DNS服务器改成Cloudflare的,然后在Cloudflare设置解析就行了。</p><p><img src="https://s2.loli.net/2024/08/16/7KAjcheVQL9XMZa.jpg" alt="解析" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="https://s2.loli.net/2024/08/16/7KAjcheVQL9XMZa.jpg" class="lozad post-image"></p><p>然后在博客的<code>source</code>文件夹里加一个<code>CNAME</code>文件(不要有后缀),内容是要解析成的博客地址。</p><p>最后,如果要实现根域名也能跳转到博客的话,还要在Github上设置总域名。</p><p><img src="https://s2.loli.net/2024/08/16/kpyAzrUdoveRaxf.jpg" alt="总域名" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="https://s2.loli.net/2024/08/16/kpyAzrUdoveRaxf.jpg" class="lozad post-image"></p><p>之后把Github给的信息设置成TXT类解析就行了。</p><div class="post-note note-warning"><p>解析博客会导致访问量和访问人次重新开始统计。 </p></div><h2 id="想法:搜索引擎推广"><a href="#想法:搜索引擎推广" class="headerlink" title="想法:搜索引擎推广"></a>想法:搜索引擎推广</h2><p>既然有专属域名了,那就不妨让我的博客在搜索引擎能搜到。这个一样不复杂,只需要在各大搜索引擎的站长平台把自己的域名添加上,然后创建站点地图提交给它们就行啦~</p><div class="post-note note-danger"><p>如果你也想要你的网站能在搜索引擎上被搜到的话,千万不要像网上教程教的那样通过<code>npm install hexo-generator-baidu-sitemap --save</code>安装baidu-sitemap来为百度生成站点地图。这个插件太老了,有好多别的插件都不兼容。 </p></div><p>不过搜索引擎需要一定时间准备,一般一两天就能搜到了。在你看到这篇文章的时候,你应该就已经能在谷歌上搜到我的网站了,必应相对慢一些,百度最慢。</p><p>如果想要上线搜索引擎更快一些的话,可以用“API提交”这个功能。这步就麻烦了。</p><p>最主要的麻烦就在于如何自动提交API。目前npm上有的自动提交API插件基本都有点儿问题:要么是有点儿老了,不兼容;要么是代理功能简陋,无法给谷歌提交API。最后找来找去,只有Github上的<a href="https://github.com/sudojia/hexo-auto-submit-urls">hexo-auto-submit-urls</a>没什么问题。</p>]]></content>

Expand Down
4 changes: 2 additions & 2 deletions blogs/blog-update-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ <h1 class="post-title">
</h1>
</header>
<div class="post-meta post-show-meta">
<time datetime="2024-08-16T08:00:00.000Z">
<time datetime="2024-08-16T07:00:00.000Z">
<i
class="iconfont icon-calendar"
style="margin-right: 2px;">
Expand Down Expand Up @@ -471,7 +471,7 @@ <h2 id="想法:搜索引擎推广"><a href="#想法:搜索引擎推广" clas
placeholder: '',
meta: ["nick","mail","link"],
requiredMeta: [],
dark: 'html:not([data-user-color-scheme])',
dark: ':root:not([data-user-color-scheme])',
login: 'enable',

wordLimit: 0,
Expand Down
2 changes: 1 addition & 1 deletion blogs/blog-update/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ <h3 id="二、评论系统"><a href="#二、评论系统" class="headerlink" tit
placeholder: '',
meta: ["nick","mail","link"],
requiredMeta: [],
dark: 'html:not([data-user-color-scheme])',
dark: ':root:not([data-user-color-scheme])',
login: 'enable',

wordLimit: 0,
Expand Down
2 changes: 1 addition & 1 deletion blogs/hello-world/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ <h1 class="post-title">
placeholder: '',
meta: ["nick","mail","link"],
requiredMeta: [],
dark: 'html:not([data-user-color-scheme])',
dark: ':root:not([data-user-color-scheme])',
login: 'enable',

wordLimit: 0,
Expand Down
2 changes: 1 addition & 1 deletion blogs/introduce-littlemaidmob/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ <h3 id="下载链接"><a href="#下载链接" class="headerlink" title="下载
placeholder: '',
meta: ["nick","mail","link"],
requiredMeta: [],
dark: 'html:not([data-user-color-scheme])',
dark: ':root:not([data-user-color-scheme])',
login: 'enable',

wordLimit: 0,
Expand Down
2 changes: 1 addition & 1 deletion blogs/notes-tutorial-and-update/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ <h2 id="四、结语"><a href="#四、结语" class="headerlink" title="四、
placeholder: '',
meta: ["nick","mail","link"],
requiredMeta: [],
dark: 'html:not([data-user-color-scheme])',
dark: ':root:not([data-user-color-scheme])',
login: 'enable',

wordLimit: 0,
Expand Down
2 changes: 1 addition & 1 deletion blogs/recommend-deadcells/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ <h3 id="游玩渠道"><a href="#游玩渠道" class="headerlink" title="游玩
placeholder: '',
meta: ["nick","mail","link"],
requiredMeta: [],
dark: 'html:not([data-user-color-scheme])',
dark: ':root:not([data-user-color-scheme])',
login: 'enable',

wordLimit: 0,
Expand Down
2 changes: 1 addition & 1 deletion blogs/recommend-thebindingofisaacrebirth/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ <h3 id="游玩渠道"><a href="#游玩渠道" class="headerlink" title="游玩
placeholder: '',
meta: ["nick","mail","link"],
requiredMeta: [],
dark: 'html:not([data-user-color-scheme])',
dark: ':root:not([data-user-color-scheme])',
login: 'enable',

wordLimit: 0,
Expand Down
2 changes: 1 addition & 1 deletion blogs/these-brands-are-not-worthy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ <h3 id="我们该怎么办?"><a href="#我们该怎么办?" class="headerlin
placeholder: '',
meta: ["nick","mail","link"],
requiredMeta: [],
dark: 'html:not([data-user-color-scheme])',
dark: ':root:not([data-user-color-scheme])',
login: 'enable',

wordLimit: 0,
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ <h1 class="post-title">
</div>
<div class="card-post-footer">
<div class="post-meta">
<time datetime="2024-08-16T08:00:00.000Z">
<time datetime="2024-08-16T07:00:00.000Z">
<i
class="iconfont icon-calendar"
style="margin-right: 2px;">
Expand Down

0 comments on commit 00204e3

Please sign in to comment.