Compare commits
4 Commits
bbd59b1d73
...
0044fbd13b
Author | SHA1 | Date | |
---|---|---|---|
0044fbd13b | |||
a005d28d1d | |||
7cda139e67 | |||
6fa4f3db96 |
File diff suppressed because one or more lines are too long
1
2022/09/14/Hexo安装摸索/index.html
Normal file
1
2022/09/14/Hexo安装摸索/index.html
Normal file
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 |
103
atom.xml
103
atom.xml
@ -8,11 +8,112 @@
|
||||
<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"><h1 id="hexo博客安装"><a class="anchor" href="#hexo博客安装">#</a> hexo 博客安装</h1>
|
||||
<ol>
|
||||
<li>
|
||||
<p><span class="exturl" data-url="aHR0cHM6Ly9ub2RlanMub3JnL2VuLw==">安装 nodejs</span></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><span class="exturl" data-url="aHR0cHM6Ly9naXQtc2NtLmNvbS8=">安装 git</span></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装 hexo(windows 需进入 git bash)</p>
|
||||
<p><code>npm install -g hexo-cli</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>初始化博客目录</p>
|
||||
<p><code>hexo init blog</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>进入博客目录</p>
|
||||
<p><code>cd blog</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>初始化 hexo 到博客目录</p>
|
||||
<p><code>npm install</code></p>
|
||||
</li>
|
||||
</ol>
|
||||
<h1 id="shoka主题安装"><a class="anchor" href="#shoka主题安装">#</a> shoka 主题安装</h1>
|
||||
<ol>
|
||||
<li>
|
||||
<p>下载主题 </p>
|
||||
<p><code>git clone </code> <span class="exturl" data-url="aHR0cHM6Ly9naXRodWIuY29tL2FtZWhpbWUvaGV4by10aGVtZS1zaG9rYS5naXQ=">https://github.com/amehime/hexo-theme-shoka.git</span> <code> ./themes/shoka</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>卸载 hexo-renderer-marked 以及别的 markdown 文件渲染器 </p>
|
||||
<p><code>npm un hexo-renderer-marked --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(md 文件渲染器,压缩 css/js/html)</p>
|
||||
<p><code>npm i hexo-renderer-multi-markdown-it --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(给生成的 css 文件们添加浏览器前缀)</p>
|
||||
<p><code>npm i hexo-autoprefixer --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(站内搜索功能) </p>
|
||||
<p><code>npm i hexo-algoliasearch --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(文章或站点字数及阅读时间统计)</p>
|
||||
<p><code>npm i hexo-symbols-count-time --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(生成 Feed 文件)</p>
|
||||
<p><code>npm i hexo-feed --save</code></p>
|
||||
</li>
|
||||
</ol>
|
||||
<h1 id="hexo部分常用命令"><a class="anchor" href="#hexo部分常用命令">#</a> Hexo 部分常用命令</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<p>清除静态文件</p>
|
||||
<p><code>hexo clean</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>生成静态文件</p>
|
||||
<p><code>hexo g</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装 git 推送插件 </p>
|
||||
<p><code>npm install hexo-deployer-git --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>推送静态文件到 git </p>
|
||||
<p><code>hexo d</code></p>
|
||||
</li>
|
||||
</ul>
|
||||
<h1 id="安装hexo-admin编写博客插件"><a class="anchor" href="#安装hexo-admin编写博客插件">#</a> 安装 hexo-admin(编写博客插件)</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>npm install hexo-admin --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>hexo-admin 编辑 url</p>
|
||||
<p><a href="http://localhost:4000/admin"> <code>http://localhost:4000/admin</code> </a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>settings 设置用户名、密码、Secret</p>
|
||||
<p><a href="http://localhost:4000/admin/#/settings"> <code>http://localhost:4000/admin/#/settings</code> </a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>把底部生成的配置拷入 hexo 配合文件中 (_config.yml)</p>
|
||||
</li>
|
||||
</ul>
|
||||
<figure class="highlight yml"><figcaption data-lang="YAML"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token key atrule">admin</span><span class="token punctuation">:</span></pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token key atrule">username</span><span class="token punctuation">:</span> username</pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token key atrule">password_hash</span><span class="token punctuation">:</span> xxxxxx</pre></td></tr><tr><td data-num="4"></td><td><pre><span class="token key atrule">secret</span><span class="token punctuation">:</span> <span class="token string">'my super secret phrase'</span> <span class="token comment">#用单引号包裹</span></pre></td></tr><tr><td data-num="5"></td><td><pre><span class="token key atrule">deployCommand</span><span class="token punctuation">:</span> <span class="token string">'hexo-publish.sh'</span> <span class="token comment">#windows 用 hexo-publish.bat,linux 用 hexo-publish.sh</span></pre></td></tr></table></figure><h4 id="hexo-publishsh"><a class="anchor" href="#hexo-publishsh">#</a> <span class="exturl" data-url="aHR0cDovL2hleG8tcHVibGlzaC5zaA==">hexo-publish.sh</span></h4>
|
||||
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token shebang important">#!/usr/bin/env sh</span></pre></td></tr><tr><td data-num="2"></td><td><pre>hexo clean</pre></td></tr><tr><td data-num="3"></td><td><pre>hexo g</pre></td></tr><tr><td data-num="4"></td><td><pre>hexo d</pre></td></tr></table></figure><h4 id="hexo-publishbat"><a class="anchor" href="#hexo-publishbat">#</a> hexo-publish.bat</h4>
|
||||
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>@echo off</pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token builtin class-name">cd</span> D:<span class="token punctuation">\</span>blog</pre></td></tr><tr><td data-num="3"></td><td><pre>d:</pre></td></tr><tr><td data-num="4"></td><td><pre>@cmd /c <span class="token string">"hexo clean&amp;&amp; hexo g&amp;&amp;hexo d&amp;&amp;echo success"</span></pre></td></tr></table></figure></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
@ -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>简介: 琉璃的医学 & 编程笔记</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
105
rss.xml
105
rss.xml
@ -10,12 +10,113 @@
|
||||
</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[ <h1 id="hexo博客安装"><a class="anchor" href="#hexo博客安装">#</a> hexo 博客安装</h1>
|
||||
<ol>
|
||||
<li>
|
||||
<p><span class="exturl" data-url="aHR0cHM6Ly9ub2RlanMub3JnL2VuLw==">安装 nodejs</span></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><span class="exturl" data-url="aHR0cHM6Ly9naXQtc2NtLmNvbS8=">安装 git</span></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装 hexo(windows 需进入 git bash)</p>
|
||||
<p><code>npm install -g hexo-cli</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>初始化博客目录</p>
|
||||
<p><code>hexo init blog</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>进入博客目录</p>
|
||||
<p><code>cd blog</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>初始化 hexo 到博客目录</p>
|
||||
<p><code>npm install</code></p>
|
||||
</li>
|
||||
</ol>
|
||||
<h1 id="shoka主题安装"><a class="anchor" href="#shoka主题安装">#</a> shoka 主题安装</h1>
|
||||
<ol>
|
||||
<li>
|
||||
<p>下载主题 </p>
|
||||
<p><code>git clone </code> <span class="exturl" data-url="aHR0cHM6Ly9naXRodWIuY29tL2FtZWhpbWUvaGV4by10aGVtZS1zaG9rYS5naXQ=">https://github.com/amehime/hexo-theme-shoka.git</span> <code> ./themes/shoka</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>卸载 hexo-renderer-marked 以及别的 markdown 文件渲染器 </p>
|
||||
<p><code>npm un hexo-renderer-marked --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(md 文件渲染器,压缩 css/js/html)</p>
|
||||
<p><code>npm i hexo-renderer-multi-markdown-it --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(给生成的 css 文件们添加浏览器前缀)</p>
|
||||
<p><code>npm i hexo-autoprefixer --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(站内搜索功能) </p>
|
||||
<p><code>npm i hexo-algoliasearch --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(文章或站点字数及阅读时间统计)</p>
|
||||
<p><code>npm i hexo-symbols-count-time --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装(生成 Feed 文件)</p>
|
||||
<p><code>npm i hexo-feed --save</code></p>
|
||||
</li>
|
||||
</ol>
|
||||
<h1 id="hexo部分常用命令"><a class="anchor" href="#hexo部分常用命令">#</a> Hexo 部分常用命令</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<p>清除静态文件</p>
|
||||
<p><code>hexo clean</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>生成静态文件</p>
|
||||
<p><code>hexo g</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>安装 git 推送插件 </p>
|
||||
<p><code>npm install hexo-deployer-git --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>推送静态文件到 git </p>
|
||||
<p><code>hexo d</code></p>
|
||||
</li>
|
||||
</ul>
|
||||
<h1 id="安装hexo-admin编写博客插件"><a class="anchor" href="#安装hexo-admin编写博客插件">#</a> 安装 hexo-admin(编写博客插件)</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>npm install hexo-admin --save</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>hexo-admin 编辑 url</p>
|
||||
<p><a href="http://localhost:4000/admin"> <code>http://localhost:4000/admin</code> </a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>settings 设置用户名、密码、Secret</p>
|
||||
<p><a href="http://localhost:4000/admin/#/settings"> <code>http://localhost:4000/admin/#/settings</code> </a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>把底部生成的配置拷入 hexo 配合文件中 (_config.yml)</p>
|
||||
</li>
|
||||
</ul>
|
||||
<figure class="highlight yml"><figcaption data-lang="YAML"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token key atrule">admin</span><span class="token punctuation">:</span></pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token key atrule">username</span><span class="token punctuation">:</span> username</pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token key atrule">password_hash</span><span class="token punctuation">:</span> xxxxxx</pre></td></tr><tr><td data-num="4"></td><td><pre><span class="token key atrule">secret</span><span class="token punctuation">:</span> <span class="token string">'my super secret phrase'</span> <span class="token comment">#用单引号包裹</span></pre></td></tr><tr><td data-num="5"></td><td><pre><span class="token key atrule">deployCommand</span><span class="token punctuation">:</span> <span class="token string">'hexo-publish.sh'</span> <span class="token comment">#windows 用 hexo-publish.bat,linux 用 hexo-publish.sh</span></pre></td></tr></table></figure><h4 id="hexo-publishsh"><a class="anchor" href="#hexo-publishsh">#</a> <span class="exturl" data-url="aHR0cDovL2hleG8tcHVibGlzaC5zaA==">hexo-publish.sh</span></h4>
|
||||
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token shebang important">#!/usr/bin/env sh</span></pre></td></tr><tr><td data-num="2"></td><td><pre>hexo clean</pre></td></tr><tr><td data-num="3"></td><td><pre>hexo g</pre></td></tr><tr><td data-num="4"></td><td><pre>hexo d</pre></td></tr></table></figure><h4 id="hexo-publishbat"><a class="anchor" href="#hexo-publishbat">#</a> hexo-publish.bat</h4>
|
||||
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>@echo off</pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token builtin class-name">cd</span> D:<span class="token punctuation">\</span>blog</pre></td></tr><tr><td data-num="3"></td><td><pre>d:</pre></td></tr><tr><td data-num="4"></td><td><pre>@cmd /c <span class="token string">"hexo clean&amp;&amp; hexo g&amp;&amp;hexo d&amp;&amp;echo success"</span></pre></td></tr></table></figure> ]]></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
Loading…
x
Reference in New Issue
Block a user