Site updated: 2022-09-14 12:31:27

This commit is contained in:
無言 2022-09-14 12:31:28 +08:00
parent bbd59b1d73
commit 6fa4f3db96
18 changed files with 130 additions and 32 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 KiB

View File

@ -8,11 +8,65 @@
<author>
<name>Hito li</name>
</author>
<updated>2022-09-13T00:03:19.511Z</updated>
<updated>2022-09-14T04:23:55.000Z</updated>
<category term="hito" />
<category term="無言" />
<category term="博客" />
<category term="公告栏" />
<entry>
<id>https://blog.jingxiyuan.cn/2022/09/14/Hexo%E5%AE%89%E8%A3%85%E6%91%B8%E7%B4%A2/</id>
<title>Hexo安装摸索</title>
<link rel="alternate" href="https://blog.jingxiyuan.cn/2022/09/14/Hexo%E5%AE%89%E8%A3%85%E6%91%B8%E7%B4%A2/"/>
<content type="html">&lt;h1 id=&#34;hexo博客安装&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#hexo博客安装&#34;&gt;#&lt;/a&gt; hexo 博客安装&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;&#34;&gt;安装 nodejs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;&#34;&gt;安装 git&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;安装 hexowindows 需进入 git bash&lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm install -g hexo-cli&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;初始化博客目录&lt;/p&gt;
&lt;p&gt;&lt;code&gt;hexo init blog&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;进入博客目录&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cd blog&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;初始化 hexo 到博客目录&lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm install&lt;/code&gt;&lt;/p&gt;
&lt;h1 id=&#34;shoka主题安装&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#shoka主题安装&#34;&gt;#&lt;/a&gt; shoka 主题安装&lt;/h1&gt;
&lt;p&gt;下载主题 &lt;/p&gt;
&lt;p&gt;&lt;code&gt;git clone &lt;/code&gt; &lt;a href=&#34;https://github.com/amehime/hexo-theme-shoka.git&#34;&gt; &lt;code&gt;https://github.com/amehime/hexo-theme-shoka.git&lt;/code&gt; &lt;/a&gt; &lt;code&gt; ./themes/shoka&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;卸载 hexo-renderer-marked 以及别的 markdown 文件渲染器 &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm un hexo-renderer-marked --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装md 文件渲染器,压缩 css/js/html&lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-renderer-multi-markdown-it --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装(给生成的 css 文件们添加浏览器前缀) &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-autoprefixer --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装(站内搜索功能) &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-algoliasearch --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装(文章或站点字数及阅读时间统计) &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-symbols-count-time --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装(生成 Feed 文件) &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-feed --save&lt;/code&gt;&lt;/p&gt;
&lt;h1 id=&#34;hexo部分常用命令&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#hexo部分常用命令&#34;&gt;#&lt;/a&gt; Hexo 部分常用命令&lt;/h1&gt;
&lt;p&gt;清除静态文件&lt;/p&gt;
&lt;p&gt;&lt;code&gt;hexo clean&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;生成静态文件 &lt;/p&gt;
&lt;p&gt;&lt;code&gt;hexo g&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装 git 推送插件 &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm install hexo-deployer-git --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;推送静态文件到 git &lt;/p&gt;
&lt;p&gt;&lt;code&gt;hexo d&lt;/code&gt;&lt;/p&gt;
&lt;h1 id=&#34;安装hexo-admin编写博客插件&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#安装hexo-admin编写博客插件&#34;&gt;#&lt;/a&gt; 安装 hexo-admin编写博客插件&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;npm install hexo-admin --save&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;hexo-admin 编辑 url&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://localhost:4000/admin&#34;&gt; &lt;code&gt;http://localhost:4000/admin&lt;/code&gt; &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;settings 设置用户名、密码、Secret&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://localhost:4000/admin/#/settings&#34;&gt; &lt;code&gt;http://localhost:4000/admin/#/settings&lt;/code&gt; &lt;/a&gt; &lt;/p&gt;
&lt;p&gt;把底部生成的配置拷入 hexo 配合文件中 (_config.yml)&lt;br /&gt;
&lt;code&gt;admin: username: username password_hash: ````10$L.XAIqIWgTc5S1zpvV3MEu7/rH34p4Is/nq824smv8EZ3lIPCp1su secret: &#39;my super secret phrase&#39; #用单引号包裹 deployCommand: &#39;hexo-publish.sh&#39; #windows用hexo-publish.batlinux用hexo-publish.sh&lt;/code&gt;&lt;/p&gt;
&lt;h2 id=&#34;hexo-publishsh&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#hexo-publishsh&#34;&gt;#&lt;/a&gt; &lt;span class=&#34;exturl&#34; data-url=&#34;aHR0cDovL2hleG8tcHVibGlzaC5zaA==&#34;&gt;hexo-publish.sh&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;#!/usr/bin/env sh hexo clean hexo g hexo d&lt;/code&gt;&lt;/p&gt;
&lt;h2 id=&#34;hexo-publishbat&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#hexo-publishbat&#34;&gt;#&lt;/a&gt; hexo-publish.bat&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;@echo off cd D:\blog d: @cmd /c &amp;quot;hexo clean&amp;amp;&amp;amp; hexo g&amp;amp;&amp;amp;hexo d&amp;amp;&amp;amp;echo success&amp;quot;&lt;/code&gt;&lt;/p&gt;
</content>
<updated>2022-09-14T04:23:55.000Z</updated>
</entry>
<entry>
<id>https://blog.jingxiyuan.cn/2022/09/13/hello-world/</id>
<title>Hello World</title>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,14 @@
"description": "hito的博客",
"home_page_url": "https://blog.jingxiyuan.cn",
"items": [
{
"id": "https://blog.jingxiyuan.cn/2022/09/14/Hexo%E5%AE%89%E8%A3%85%E6%91%B8%E7%B4%A2/",
"url": "https://blog.jingxiyuan.cn/2022/09/14/Hexo%E5%AE%89%E8%A3%85%E6%91%B8%E7%B4%A2/",
"title": "Hexo安装摸索",
"date_published": "2022-09-14T04:23:55.000Z",
"content_html": "<h1 id=\"hexo博客安装\"><a class=\"anchor\" href=\"#hexo博客安装\">#</a> hexo 博客安装</h1>\n<p><a href=\"\">安装 nodejs</a></p>\n<p><a href=\"\">安装 git</a> </p>\n<p>安装 hexowindows 需进入 git bash</p>\n<p><code>npm install -g hexo-cli</code></p>\n<p>初始化博客目录</p>\n<p><code>hexo init blog</code></p>\n<p>进入博客目录</p>\n<p><code>cd blog</code></p>\n<p>初始化 hexo 到博客目录</p>\n<p><code>npm install</code></p>\n<h1 id=\"shoka主题安装\"><a class=\"anchor\" href=\"#shoka主题安装\">#</a> shoka 主题安装</h1>\n<p>下载主题 </p>\n<p><code>git clone </code> <a href=\"https://github.com/amehime/hexo-theme-shoka.git\"> <code>https://github.com/amehime/hexo-theme-shoka.git</code> </a> <code> ./themes/shoka</code> </p>\n<p>卸载 hexo-renderer-marked 以及别的 markdown 文件渲染器 </p>\n<p><code>npm un hexo-renderer-marked --save</code> </p>\n<p>安装md 文件渲染器,压缩 css/js/html</p>\n<p><code>npm i hexo-renderer-multi-markdown-it --save</code> </p>\n<p>安装(给生成的 css 文件们添加浏览器前缀) </p>\n<p><code>npm i hexo-autoprefixer --save</code> </p>\n<p>安装(站内搜索功能) </p>\n<p><code>npm i hexo-algoliasearch --save</code> </p>\n<p>安装(文章或站点字数及阅读时间统计) </p>\n<p><code>npm i hexo-symbols-count-time --save</code> </p>\n<p>安装(生成 Feed 文件) </p>\n<p><code>npm i hexo-feed --save</code></p>\n<h1 id=\"hexo部分常用命令\"><a class=\"anchor\" href=\"#hexo部分常用命令\">#</a> Hexo 部分常用命令</h1>\n<p>清除静态文件</p>\n<p><code>hexo clean</code> </p>\n<p>生成静态文件 </p>\n<p><code>hexo g</code> </p>\n<p>安装 git 推送插件 </p>\n<p><code>npm install hexo-deployer-git --save</code> </p>\n<p>推送静态文件到 git </p>\n<p><code>hexo d</code></p>\n<h1 id=\"安装hexo-admin编写博客插件\"><a class=\"anchor\" href=\"#安装hexo-admin编写博客插件\">#</a> 安装 hexo-admin编写博客插件</h1>\n<p><code>npm install hexo-admin --save</code></p>\n<p>hexo-admin 编辑 url</p>\n<p><a href=\"http://localhost:4000/admin\"> <code>http://localhost:4000/admin</code> </a></p>\n<p>settings 设置用户名、密码、Secret</p>\n<p><a href=\"http://localhost:4000/admin/#/settings\"> <code>http://localhost:4000/admin/#/settings</code> </a> </p>\n<p>把底部生成的配置拷入 hexo 配合文件中 (_config.yml)<br />\n <code>admin: username: username password_hash: ````10$L.XAIqIWgTc5S1zpvV3MEu7/rH34p4Is/nq824smv8EZ3lIPCp1su secret: 'my super secret phrase' #用单引号包裹 deployCommand: 'hexo-publish.sh' #windows用hexo-publish.batlinux用hexo-publish.sh</code></p>\n<h2 id=\"hexo-publishsh\"><a class=\"anchor\" href=\"#hexo-publishsh\">#</a> <span class=\"exturl\" data-url=\"aHR0cDovL2hleG8tcHVibGlzaC5zaA==\">hexo-publish.sh</span></h2>\n<p><code>#!/usr/bin/env sh hexo clean hexo g hexo d</code></p>\n<h2 id=\"hexo-publishbat\"><a class=\"anchor\" href=\"#hexo-publishbat\">#</a> hexo-publish.bat</h2>\n<p><code>@echo off cd D:\\blog d: @cmd /c &quot;hexo clean&amp;&amp; hexo g&amp;&amp;hexo d&amp;&amp;echo success&quot;</code></p>\n",
"tags": []
},
{
"id": "https://blog.jingxiyuan.cn/2022/09/13/hello-world/",
"url": "https://blog.jingxiyuan.cn/2022/09/13/hello-world/",

View File

@ -1,19 +0,0 @@
<hr />
<h2 id="title-友情链接keywords-友情链接description-霜月琉璃的小伙伴们copyright-false"><a class="anchor" href="#title-友情链接keywords-友情链接description-霜月琉璃的小伙伴们copyright-false">#</a> title: 友情链接<br />
keywords: 友情链接<br />
description: 霜月琉璃的小伙伴们<br />
copyright: false</h2>
<h1 id="本站信息"><a class="anchor" href="#本站信息">#</a> 本站信息</h1>
<ul>
<li>站名: 優萌初華</li>
<li>站长: 霜月琉璃</li>
<li>地址: <a href="https://shoka.lostyu.me">https://shoka.lostyu.me</a></li>
<li>标志: <img src="https://cdn.jsdelivr.net/gh/amehime/shoka@latest/images/avatar.jpg" alt="霜月琉璃" height="100" width="100" /></li>
<li>简介: 琉璃的医学 &amp; 编程笔记</li>
</ul>
<h1 id="申请方法"><a class="anchor" href="#申请方法">#</a> 申请方法</h1>
<ul>
<li>添加本站后,在本页留言,格式如下</li>
</ul>
<figure class="highlight yml"><figcaption data-lang="YAML"></figcaption><table><tr><td data-num="1"></td><td><pre>```yml</pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token punctuation">-</span> <span class="token key atrule">site</span><span class="token punctuation">:</span> <span class="token comment">#网站的名字</span></pre></td></tr><tr><td data-num="3"></td><td><pre> <span class="token key atrule">owner</span><span class="token punctuation">:</span> <span class="token comment">#您的名字</span></pre></td></tr><tr><td data-num="4"></td><td><pre> <span class="token key atrule">url</span><span class="token punctuation">:</span> <span class="token comment">#您的网址</span></pre></td></tr><tr><td data-num="5"></td><td><pre> <span class="token key atrule">desc</span><span class="token punctuation">:</span> <span class="token comment">#简短描述</span></pre></td></tr><tr><td data-num="6"></td><td><pre> <span class="token key atrule">image</span><span class="token punctuation">:</span> <span class="token comment">#一张图片</span></pre></td></tr><tr><td data-num="7"></td><td><pre> <span class="token key atrule">color</span><span class="token punctuation">:</span> <span class="token comment">#方块颜色</span></pre></td></tr><tr><td data-num="8"></td><td><pre>```</pre></td></tr></table></figure><h1 id="小伙伴们"><a class="anchor" href="#小伙伴们">#</a> 小伙伴们</h1>
<p %="" linksfile="" friends_data.yml="" %=""></p>

File diff suppressed because one or more lines are too long

58
rss.xml
View File

@ -10,12 +10,66 @@
</author>
<description>hito的博客</description>
<language>zh-CN</language>
<pubDate>Tue, 13 Sep 2022 08:03:19 +0800</pubDate>
<lastBuildDate>Tue, 13 Sep 2022 08:03:19 +0800</lastBuildDate>
<pubDate>Wed, 14 Sep 2022 12:23:55 +0800</pubDate>
<lastBuildDate>Wed, 14 Sep 2022 12:23:55 +0800</lastBuildDate>
<category term="hito" />
<category term="無言" />
<category term="博客" />
<category term="公告栏" />
<item>
<guid isPermalink="true">https://blog.jingxiyuan.cn/2022/09/14/Hexo%E5%AE%89%E8%A3%85%E6%91%B8%E7%B4%A2/</guid>
<title>Hexo安装摸索</title>
<link>https://blog.jingxiyuan.cn/2022/09/14/Hexo%E5%AE%89%E8%A3%85%E6%91%B8%E7%B4%A2/</link>
<pubDate>Wed, 14 Sep 2022 12:23:55 +0800</pubDate>
<description><![CDATA[ &lt;h1 id=&#34;hexo博客安装&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#hexo博客安装&#34;&gt;#&lt;/a&gt; hexo 博客安装&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;&#34;&gt;安装 nodejs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;&#34;&gt;安装 git&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;安装 hexowindows 需进入 git bash&lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm install -g hexo-cli&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;初始化博客目录&lt;/p&gt;
&lt;p&gt;&lt;code&gt;hexo init blog&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;进入博客目录&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cd blog&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;初始化 hexo 到博客目录&lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm install&lt;/code&gt;&lt;/p&gt;
&lt;h1 id=&#34;shoka主题安装&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#shoka主题安装&#34;&gt;#&lt;/a&gt; shoka 主题安装&lt;/h1&gt;
&lt;p&gt;下载主题 &lt;/p&gt;
&lt;p&gt;&lt;code&gt;git clone &lt;/code&gt; &lt;a href=&#34;https://github.com/amehime/hexo-theme-shoka.git&#34;&gt; &lt;code&gt;https://github.com/amehime/hexo-theme-shoka.git&lt;/code&gt; &lt;/a&gt; &lt;code&gt; ./themes/shoka&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;卸载 hexo-renderer-marked 以及别的 markdown 文件渲染器 &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm un hexo-renderer-marked --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装md 文件渲染器,压缩 css/js/html&lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-renderer-multi-markdown-it --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装(给生成的 css 文件们添加浏览器前缀) &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-autoprefixer --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装(站内搜索功能) &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-algoliasearch --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装(文章或站点字数及阅读时间统计) &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-symbols-count-time --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装(生成 Feed 文件) &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm i hexo-feed --save&lt;/code&gt;&lt;/p&gt;
&lt;h1 id=&#34;hexo部分常用命令&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#hexo部分常用命令&#34;&gt;#&lt;/a&gt; Hexo 部分常用命令&lt;/h1&gt;
&lt;p&gt;清除静态文件&lt;/p&gt;
&lt;p&gt;&lt;code&gt;hexo clean&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;生成静态文件 &lt;/p&gt;
&lt;p&gt;&lt;code&gt;hexo g&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;安装 git 推送插件 &lt;/p&gt;
&lt;p&gt;&lt;code&gt;npm install hexo-deployer-git --save&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;推送静态文件到 git &lt;/p&gt;
&lt;p&gt;&lt;code&gt;hexo d&lt;/code&gt;&lt;/p&gt;
&lt;h1 id=&#34;安装hexo-admin编写博客插件&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#安装hexo-admin编写博客插件&#34;&gt;#&lt;/a&gt; 安装 hexo-admin编写博客插件&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;npm install hexo-admin --save&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;hexo-admin 编辑 url&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://localhost:4000/admin&#34;&gt; &lt;code&gt;http://localhost:4000/admin&lt;/code&gt; &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;settings 设置用户名、密码、Secret&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://localhost:4000/admin/#/settings&#34;&gt; &lt;code&gt;http://localhost:4000/admin/#/settings&lt;/code&gt; &lt;/a&gt; &lt;/p&gt;
&lt;p&gt;把底部生成的配置拷入 hexo 配合文件中 (_config.yml)&lt;br /&gt;
&lt;code&gt;admin: username: username password_hash: ````10$L.XAIqIWgTc5S1zpvV3MEu7/rH34p4Is/nq824smv8EZ3lIPCp1su secret: &#39;my super secret phrase&#39; #用单引号包裹 deployCommand: &#39;hexo-publish.sh&#39; #windows用hexo-publish.batlinux用hexo-publish.sh&lt;/code&gt;&lt;/p&gt;
&lt;h2 id=&#34;hexo-publishsh&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#hexo-publishsh&#34;&gt;#&lt;/a&gt; &lt;span class=&#34;exturl&#34; data-url=&#34;aHR0cDovL2hleG8tcHVibGlzaC5zaA==&#34;&gt;hexo-publish.sh&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;#!/usr/bin/env sh hexo clean hexo g hexo d&lt;/code&gt;&lt;/p&gt;
&lt;h2 id=&#34;hexo-publishbat&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#hexo-publishbat&#34;&gt;#&lt;/a&gt; hexo-publish.bat&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;@echo off cd D:\blog d: @cmd /c &amp;quot;hexo clean&amp;amp;&amp;amp; hexo g&amp;amp;&amp;amp;hexo d&amp;amp;&amp;amp;echo success&amp;quot;&lt;/code&gt;&lt;/p&gt;
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.jingxiyuan.cn/2022/09/13/hello-world/</guid>
<title>Hello World</title>

File diff suppressed because one or more lines are too long