0%

1.准备github

2.安装git

3.将git与github绑定

参考文章:
    [个人博客第3篇——绑定GitHub并提交文件 - 知乎 (zhihu.com)](https://zhuanlan.zhihu.com/p/103391101)
    [创建GitHub仓库并与本地Git绑定_ttxs_hc的博客-CSDN博客](https://blog.csdn.net/hc_ttxs/article/details/79375788)
出现的一些问题及解决方案参考:
    [git生成密钥 bash: ssh-keygen-t: command not found_怪 咖@的博客-CSDN博客](https://blog.csdn.net/weixin_43888891/article/details/112429980)
    [error: src refspec master does not match any. 错误的解决办法_oliverhoo的博客-CSDN博客](https://blog.csdn.net/qq_38198952/article/details/82792279)
    [解决git error: src refspec master does not match any._Sensente的博客-CSDN博客](https://blog.csdn.net/Sensente/article/details/124138062?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-2-124138062-blog-82792279.235%5Ev38%5Epc_relevant_default_base3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-2-124138062-blog-82792279.235%5Ev38%5Epc_relevant_default_base3&utm_relevant_index=3)
    [git问题error: remote origin already exists._remote origin already exit_阿迪不想上班的博客-CSDN博客](https://blog.csdn.net/weixin_43916997/article/details/123645376)
    [解决:git SSL certificate problem: unable to get local issuer certificate_付少华的博客-CSDN博客](https://blog.csdn.net/weixin_44014995/article/details/109900149)
    

4.购买域名

考虑因素:

  1. 价格 ;购买价格和续费价格以及转网价格

  2. 域名的易收录程度

  3. 域名名称

  4. 域名备案

  5. 域名历史

5.安装node.js和hexo

参考文章:

[个人博客第5篇——安装node.js和Hexo - 知乎 (zhihu.com)](https://zhuanlan.zhihu.com/p/105715224
node.js 安装详细步骤教程_node官网怎么下载_程序员老油条的博客-CSDN博客
Nodejs安装教程_西晋的no1的博客-CSDN博客
文档 | Hexo

安装hexo

1
2
3
4
5
6
7
8
	安装hexo代码
npm install -g cnpm --registry=https://registry.npm.taobao.org -verbose

npm install -g hexo-cli

npm cache clean --force
命令清除缓存,然后重新执行安装命令。|

出现的问题及解决方案:

  1. 确认系统环境是否满足要求:Hexo 需要 Node.js 环境,确保已经安装并配置了正确的 Node.js 版本。可以在终端执行 node -vnpm -v 命令来查看是否正确安装。
  2. 检查网络连接:如果安装过程中出现网络错误,尝试使用代理或者切换到稳定的网络环境再次安装。
  3. 检查镜像源:有时候下载速度慢或者无法下载的原因是镜像源的问题。可以尝试切换到其他镜像源,例如国内的淘宝镜像或者使用 VPN。
  4. 清除缓存并重新安装:有时候安装过程中可能会出现一些缓存问题,可以尝试清除缓存并重新安装。可以使用 npm cache clean --force 命令清除缓存,然后重新执行安装命令。(我是用这个方法成功的)
    git命令卸载hexo:npm uninstall hexo-cli -g 在我第一次安装hexo时,用的是windows的dos命令安装,学艺不精导致初始化hexo失败,于是决定卸载hexo改用git自带命令安装,在操作之前先清理一下hexo。
  5. 查看安装日志:执行安装命令时可以加上 -verbose 参数,查看详细的安装日志,以便更好地排查问题。如果以上方法无法解决问题,可以提供更具体的错误信息或日志,以便给出更准确的解决方案。
  6. hexo  的path路径
    ![[Pasted image 20230829213432.png]]
    ![[Pasted image 20230829213451.png]]
    注意最后在  _config.yml 文件中的最后branch中的内容根据具体情况而定

6. 解析域名

参考文章:
https://zhuanlan.zhihu.com/p/103813944

7.设置主题

参考文章:
https://zhuanlan.zhihu.com/p/105584373

8.主题优化

参考文章:
https://zhuanlan.zhihu.com/p/106060640

cname文件的配置决定GitHub仓库和网址的连接 DNS

要在本地目录下的source中保存才有效,不会出现每次上传就消失的情况,且cname文件无后缀(不是.txt后缀)
https://www.zhihu.com/question/28814437

Hexo+Next主题搭建个人博客+优化全过程(完整详细版)

https://zhuanlan.zhihu.com/p/618864711
Hexo Matery主题添加百度统计_scluis的博客-CSDN博客
Hexo 好看的主题推荐_hexo主题推荐_浮沉半生的博客-CSDN博客
[Hexo 修改导航栏、标签、分类、归档图标,一分钟搞定_hexo 通知栏_Hyper9999的博客-CSDN博客](https://blog.csdn.net/h_kaka/article/details/119655493

hexo博客换主题

https://zhuanlan.zhihu.com/p/385525053

9.写博客

配置文件命名规则和路由地址

Hexo 默认以标题作为文件名称,可以通过 Hexo 的配置文件 _config.yml 中的 new_post_name 参数来改变默认的文件名称,例如:

new_post_name::year-:month-:day-:title.md

当创建博客时,就会以这种格式生成Markdown文件,如这篇博客的文件名就生成 2017-01-13-hexo-blog.md 这种形式。其中相关变量说明如下表:

变量 说明
:title 标题(小写, 空格将会被替换为短杠)
:year 创建的年份,如:2017
:month 创建的月份(有前导零),如:01
:i_month 创建的月份(无前导零),如:1
:day 创建的日期(有前导零),如:09
:i_day 创建的月份(无前导零),如:9

配置浏览器地址栏中的URL。同样在 Hexo 的配置文件 _config.yml 中, 配置 permalink 属性 ,例如:

permalink:/blog/:year/:month/:day/:title/

当在地址栏访问时,就会如下方式呈现出来:

http://localhost:4000/blog/2017/01/13/hexo-blog/

创建博客

在命令行中用如下命令创建一篇新的文章

`hexo new[layout]</p> <table> <thead> <tr> <th></th> <th></th> <th></th> </tr> </thead> <tbody><tr> <td>布局(layout)</td> <td>存储路径</td> <td>说明</td> </tr> <tr> <td>post</td> <td>source/_posts</td> <td>默认,可以直接发布</td> </tr> <tr> <td>page</td> <td>source</td> <td>在source下新建一个文件夹</td> </tr> <tr> <td>draft</td> <td>source/_drafts</td> <td>新建文件将保持到_drafts中</td> </tr> </tbody></table> <p>可以用 publish 命令将草稿移动到 source/_posts 文件夹下</p> <blockquote> <p>hexo publish [layout]<title></p> </blockquote> <h2 id="写作的md文件的代码"><a href="#写作的md文件的代码" class="headerlink" title="写作的md文件的代码"></a>写作的md文件的代码</h2><pre><code>--- title: 测试——怎么发blog date: 2023-07-19 19:04:56 tags:     - test     - markdown categories: 使用指南 ---  正文 </code></pre> <h1 id="10-上传文章"><a href="#10-上传文章" class="headerlink" title="10.上传文章"></a>10.上传文章</h1><pre><code>清除:hexo clean 生成:hexo  generate 部署:hexo deploy 预览: hexo server </code></pre> <h2 id="出现的问题及其解决方案"><a href="#出现的问题及其解决方案" class="headerlink" title="出现的问题及其解决方案"></a>出现的问题及其解决方案</h2><blockquote> <p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_36759224/article/details/92443159">Hexo 博客本地预览报错:Error: listen EADDRINUSE 0.0.0.0:4000_IT.BOB的博客-CSDN博客</a></p> </blockquote> <pre><code>1. 删除.deploy_git文件夹; 2. 输入git config --global core.autocrlf false 3. 然后,依次执行: hexo clean hexo g hexo d </code></pre> <blockquote> <p><a target="_blank" rel="noopener" href="https://blog.csdn.net/HTL2018/article/details/106876940">hexo发生error:spawn failed错误的解决方法_error: spawn failed_HuangTLhit的博客-CSDN博客</a></p> </blockquote> <pre><code>打开 Git Shell 进入创建的文件夹,依次输入以下命令: hexo clean hexo generate hexo deploy 如果出现下图错误,不要着急: ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATUAAAA1CAYAAAAgaHywAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAsISURBVHhe7Z37bxTXFcf9dxVo1ERKIrVRpCrpD1FoAT8wD2PspGrUlpSmChKKmkpUpVJStVUT0khEaiOVVAkPU2hqKCCCwYDf6wfYYGNjHv31dO7MnN2zZ8+9d2ZnZ9djnx8+yp7vOefOnTv3fjNrQ9JWmrwNyOrDB/BGfy+0tbUpiqIUEzU1RVHWFWpqiqKsK0pTdlM7e/ZsFVWNGeDjNXr8JGS5JvY2e871kNdc6biNHltRMjFtMTW+WdNuXldt1rEbRZbrtmrO9ZDnXIu0DsoGQTI1aaO6NK7THNelnKs2b+q9divnnJY851qkdVA2CMbU0NhcpiaBdbZaW47rUh1qrpxLw5jrEklqOLRH6kfNlXNpGHM9Kbyfj5Ekx+toDWLL0T5X3hYrSt2gqRnSmloSpLFQ49h6eMw1nvfFEklqKFiPPbbPUsw1nvfFPnz9vjhpjU3nWr01ilIXeZuagY+XNOZgXqqTdFvM8eUleA+N8TMHa3kPz3FNqnHh68eYg3lXD62x6Vyrt0ZR6iKp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 type 改成 git,然后再在 Git Shell 中运行以下命令: npm install hexo-deployer-git --save 再重新来一遍: hexo clean hexo generate hexo deploy </code></pre> </div> <footer class="post-footer"> <div class="post-eof"></div> </footer> </article> <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN"> <link itemprop="mainEntityOfPage" href="http://example.com/fd65ce3ba538.html"> <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person"> <meta itemprop="image" content="/images/avatar.jpg"> <meta itemprop="name" content="LXing"> <meta itemprop="description" content=""> </span> <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization"> <meta itemprop="name" content="摆摆🐟"> </span> <header class="post-header"> <h2 class="post-title" itemprop="name headline"> <a href="/fd65ce3ba538.html" class="post-title-link" itemprop="url">markdown语法</a> </h2> <div class="post-meta"> <span class="post-meta-item"> <span class="post-meta-item-icon"> <i class="far fa-calendar"></i> </span> <span class="post-meta-item-text">发表于</span> <time title="创建时间:2023-07-19 19:04:56" itemprop="dateCreated datePublished" datetime="2023-07-19T19:04:56+08:00">2023-07-19</time> </span> <span class="post-meta-item"> <span class="post-meta-item-icon"> <i class="far fa-calendar-check"></i> </span> <span class="post-meta-item-text">更新于</span> <time title="修改时间:2023-08-29 21:55:06" itemprop="dateModified" datetime="2023-08-29T21:55:06+08:00">2023-08-29</time> </span> <span class="post-meta-item"> <span class="post-meta-item-icon"> <i class="far fa-folder"></i> </span> <span class="post-meta-item-text">分类于</span> <span itemprop="about" itemscope itemtype="http://schema.org/Thing"> <a href="/categories/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" itemprop="url" rel="index"><span itemprop="name">博客搭建</span></a> </span> </span> <br> <span class="post-meta-item" title="本文字数"> <span class="post-meta-item-icon"> <i class="far fa-file-word"></i> </span> <span class="post-meta-item-text">本文字数:</span> <span>3.1k</span> </span> <span class="post-meta-item" title="阅读时长"> <span class="post-meta-item-icon"> <i class="far fa-clock"></i> </span> <span class="post-meta-item-text">阅读时长 ≈</span> <span>3 分钟</span> </span> </div> </header> <div class="post-body" itemprop="articleBody"> <h1 id="markdown-语法"><a href="#markdown-语法" class="headerlink" title="markdown 语法"></a>markdown 语法</h1><p>使用两个中括号[[]],可以链接到本地文件,也可以输入先【#】可以链接到标题,也可以先输入【^】链接文本块,也可以先输入【|】指定的文本</p> <p>反向链接到文件示例:<a href="Obsidian%E5%8F%8D%E5%90%91%E9%93%BE%E6%8E%A5%E6%96%87%E4%BB%B6.md">Obsidian反向链接文件</a></p> <p>备注,支持以下文件的嵌入:</p> <ul> <li>Markdown 文件:md;</li> <li>图像文件:png, jpg, jpeg, gif, bmp, svg; 其中外引图片不会直接显示图片;</li> <li>音频文件:mp3, webm, wav, m4a, ogg, 3gp, flac;</li> <li>视频文件:mp4, webm, ogv;</li> <li>PDF 文件:pdf.</li> </ul> <h1 id="标题"><a href="#标题" class="headerlink" title="标题"></a>标题</h1><h1 id="一级标题"><a href="#一级标题" class="headerlink" title="一级标题"></a>一级标题</h1><h2 id="二级标题"><a href="#二级标题" class="headerlink" title="二级标题"></a>二级标题</h2><h3 id="三级标题"><a href="#三级标题" class="headerlink" title="三级标题"></a>三级标题</h3><h4 id="四级标题"><a href="#四级标题" class="headerlink" title="四级标题"></a>四级标题</h4><h5 id="五级标题"><a href="#五级标题" class="headerlink" title="五级标题"></a>五级标题</h5><h6 id="六级标题"><a href="#六级标题" class="headerlink" title="六级标题"></a>六级标题</h6><p>备注:最高支持六级标题</p> <h1 id="引用"><a href="#引用" class="headerlink" title="引用"></a>引用</h1><p>引用的使用方式:></p> <h1 id="代码块"><a href="#代码块" class="headerlink" title="代码块"></a>代码块</h1><pre><code>咋收费的 </code></pre> <p>行内代码使用方式:``</p> <pre><code>双重身份 </code></pre> <p>代码块使用方式:```+ 编程语言</p> <h1 id="表格的使用"><a href="#表格的使用" class="headerlink" title="表格的使用"></a>表格的使用</h1><table> <thead> <tr> <th>表头1</th> <th>表头2</th> <th>表头3</th> </tr> </thead> <tbody><tr> <td>单元格1</td> <td>单元格2</td> <td>单元格3</td> </tr> </tbody></table> <p>备注:必须要存在第二行的|-|-|-|<br>如需复制示例,请将隐藏起来的 br 标签去掉 </p> <h1 id="序列列表"><a href="#序列列表" class="headerlink" title="序列列表"></a>序列列表</h1><ol> <li>有序列表使用语法:数值 + . + 空格 </li> <li>无序列表使用语法:+ 或者 - 或者 * + 空格</li> </ol> <h1 id="任务列表(复选框)"><a href="#任务列表(复选框)" class="headerlink" title="任务列表(复选框)"></a>任务列表(复选框)</h1><p>使用语法:- + 空格 + [ + 空格 + ]</p> <h1 id="注释"><a href="#注释" class="headerlink" title="注释"></a>注释</h1><blockquote> <p>行内注释和跨行注释:</p> </blockquote> <p>% % abd % %</p> <h1 id="插入图片"><a href="#插入图片" class="headerlink" title="插入图片"></a>插入图片</h1><ol> <li>直接复制粘贴</li> <li>直接将图片拖进来</li> </ol> <h1 id="字体样式"><a href="#字体样式" class="headerlink" title="字体样式"></a>字体样式</h1><p>字体加粗:<strong>需要加粗的字体</strong>;<br>字体倾斜:<em>需要倾斜的字体</em>;<br>字体倾斜加粗:<em><strong>需要倾斜和加粗的字体</strong></em>;<br>字体居中:< center > 文本居中 < /center > ;<br>字体高亮:==需要高亮的文本==; </p> <h1 id="线的样式"><a href="#线的样式" class="headerlink" title="线的样式"></a>线的样式</h1><p>删除线:<del>删除线的内容</del>;<br>下划线:<u>下划线的内容</u> ;<br>水平分割线:*** 或者 — </p> <h1 id="超链接"><a href="#超链接" class="headerlink" title="超链接"></a>超链接</h1><ol> <li><p>第一种超链接 </p> <p><链接地址>,使用尖括号的形式,中间存放链接地址,即为超链接 </p> </li> <li><p>第二种超链接 </p> <p>使用[] ()的形式,其中[]存放显示的内容,()存放具体链接</p> </li> </ol> <h1 id="HTML-语法"><a href="#HTML-语法" class="headerlink" title="HTML 语法"></a>HTML 语法</h1><p>在 md 文档中可以直接使用 HTML 语法<br>HTML语法之字体<br>相关链接:<a target="_blank" rel="noopener" href="https://unicode-table.com/cn/">https://unicode-table.com/cn/</a></p> <h1 id="数学表达式"><a href="#数学表达式" class="headerlink" title="数学表达式"></a>数学表达式</h1><p>mathjax 官网:<a target="_blank" rel="noopener" href="https://www.mathjax.org/">https://www.mathjax.org/</a><br>katex 官网:<a target="_blank" rel="noopener" href="https://katex.org/">https://katex.org/</a><br>参考链接:<a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_42521409/article/details/120019337">https://blog.csdn.net/weixin_42521409/article/details/120019337</a><br>参考链接:<a target="_blank" rel="noopener" href="https://blog.csdn.net/See_Star/article/details/103388949">https://blog.csdn.net/See_Star/article/details/103388949</a></p> <ol> <li>行内数学表达式使用语法:$数学公式$ </li> <li>独行数据表达式使用语法:$ $数学公式$ $</li> </ol> <h2 id="上标、下标"><a href="#上标、下标" class="headerlink" title="上标、下标"></a>上标、下标</h2><ol> <li>上标符号,符合^,如: x 4 x ^ 4 x4,显示为: x 4 x^4 x4</li> <li>下标符号,符号_,如: C O 2 CO _ 2 CO2​,显示为: C O 2 CO_2 CO2​</li> </ol> <h2 id="基础运算"><a href="#基础运算" class="headerlink" title="基础运算"></a>基础运算</h2><ol> <li>加法运算:符号:+,如: x + y = z x + y = z x+y=z,显示为 x + y = z x + y = z x+y=z</li> <li>减法运算:符号:-,如: x − y = z x - y = z x−y=z,显示为: x − y = z x - y = z x−y=z</li> <li>加减运算:符号:\pm,如: x ± y = z x \pm y = z x±y=z,显示为: x ± y = z x \pm y = z x±y=z</li> <li>减加运算:符号:\mp,如: x ∓ y = z x \mp y = z x∓y=z,显示为: x ∓ y = z x \mp y = z x∓y=z</li> <li>点乘运算:符号:\cdot,如: x ⋅ y = z x \cdot y = z x⋅y=z,显示为: x ⋅ y = z x \cdot y = z x⋅y=z</li> <li>星乘运算:符号:\ast,如: x ∗ y = z x \ast y = z x∗y=z,显示为: x ∗ y = z x \ast y = z x∗y=z</li> <li>除法运算:符号:/,如: x / y = z x / y = z x/y=z,显示为: x / y = z x / y = z x/y=z</li> <li>分式表示1:符号:\frac{分子}{分母},如: x + y x − y \frac{x+y}{x-y} x−yx+y​,显示为: x + y x − y \frac{x+y}{x-y} x−yx+y​</li> <li>分式表示2:符号:{分子}\over{分母},如: x + y x − y {x+y}\over{x-y} x−yx+y​,显示为: x + y x − y {x+y}\over{x-y} x−yx+y​</li> <li>绝对值:符号:||,如 ∣ x ∣ |x| ∣x∣,显示为: ∣ x ∣ |x| ∣x∣</li> </ol> <h2 id="高级运算"><a href="#高级运算" class="headerlink" title="高级运算"></a>高级运算</h2><ol> <li><p>平均数运算: </p> </li> <li><p>开二次方运算:符号:\sqrt,如 x \sqrt{x} x ​,显示为: x \sqrt{x} x ​ </p> </li> <li><p>开方运算:符号:\sqrt<a target="_blank" rel="noopener" href="https://www.csdn.net/tags/NtzaMg4sNTgwNTUtYmxvZwO0O0OO0O0O.html"></a>,如 y x \sqrt[x]{y} xy ​,显示为: y x \sqrt[x]{y} xy ​ </p> </li> <li><p>对数运算:符号:\log,如 log ⁡ ( x ) \log(x) log(x),显示为: log ⁡ ( x ) \log(x) log(x) </p> </li> <li><p>极限运算:符号:\lim,如 lim ⁡ y → 0 x → ∞ x y \lim^{x \to \infty}<em>{y \to 0}{\frac{x}{y}} limy→0x→∞​yx​,显示为: lim ⁡ y → 0 x → ∞ x y \lim^{x \to \infty}</em>{y \to 0}{\frac{x}{y}} limy→0x→∞​yx​ </p> </li> <li><p>极限运算:符号:\displaystyle \lim,如 lim ⁡ y → 0 x → ∞ x y \displaystyle \lim^{x \to \infty}<em>{y \to 0}{\frac{x}{y}} y→0limx→∞​yx​,显示为: lim ⁡ y → 0 x → ∞ x y \displaystyle \lim^{x \to \infty}</em>{y \to 0}{\frac{x}{y}} y→0limx→∞​yx​ </p> </li> <li><p>求和运算:符号:\sum,如 ∑ y → 0 x → ∞ x y \sum^{x \to \infty}<em>{y \to 0}{\frac{x}{y}} ∑y→0x→∞​yx​,显示为: ∑ y → 0 x → ∞ x y \sum^{x \to \infty}</em>{y \to 0}{\frac{x}{y}} ∑y→0x→∞​yx​ </p> </li> <li><p>求和运算:符号:\dispalystyle \sum,如 ∑ y → 0 x → ∞ x y \displaystyle \sum^{x \to \infty}<em>{y \to 0}{\frac{x}{y}} y→0∑x→∞​yx​,显示为: ∑ y → 0 x → ∞ x y \displaystyle \sum^{x \to \infty}</em>{y \to 0}{\frac{x}{y}} y→0∑x→∞​yx​ </p> </li> <li><p>积分运算:符号:\int,如 ∫ 0 ∞ x d x \int^{\infty}<em>{0}{xdx} ∫0∞​xdx,显示为: ∫ 0 ∞ x d x \int^{\infty}</em>{0}{xdx} ∫0∞​xdx </p> </li> <li><p>积分运算:符号:\dispalystyle \int,如 ∫ 0 ∞ x d x \displaystyle \int^{\infty}<em>{0}{xdx} ∫0∞​xdx,显示为: ∫ 0 ∞ x d x \displaystyle \int^{\infty}</em>{0}{xdx} ∫0∞​xdx </p> </li> <li><p>微分运算:符号:\partial,如 ∂ x ∂ y \frac{\partial x}{\partial y} ∂y∂x​,显示为: ∂ x ∂ y \frac{\partial x}{\partial y} ∂y∂x​</p> </li> </ol> <h1 id="字符"><a href="#字符" class="headerlink" title="字符"></a>字符</h1><ul> <li>空格字符:& nbsp;</li> </ul> </div> <footer class="post-footer"> <div class="post-eof"></div> </footer> </article> <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN"> <link itemprop="mainEntityOfPage" href="http://example.com/48932956c8bb.html"> <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person"> <meta itemprop="image" content="/images/avatar.jpg"> <meta itemprop="name" content="LXing"> <meta itemprop="description" content=""> </span> <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization"> <meta itemprop="name" content="摆摆🐟"> </span> <header class="post-header"> <h2 class="post-title" itemprop="name headline"> <a href="/48932956c8bb.html" class="post-title-link" itemprop="url">Hello World</a> </h2> <div class="post-meta"> <span class="post-meta-item"> <span class="post-meta-item-icon"> <i class="far fa-calendar"></i> </span> <span class="post-meta-item-text">发表于</span> <time title="创建时间:2023-07-18 02:18:54" itemprop="dateCreated datePublished" datetime="2023-07-18T02:18:54+08:00">2023-07-18</time> </span> <span class="post-meta-item"> <span class="post-meta-item-icon"> <i class="far fa-calendar-check"></i> </span> <span class="post-meta-item-text">更新于</span> <time title="修改时间:2023-08-29 17:24:52" itemprop="dateModified" datetime="2023-08-29T17:24:52+08:00">2023-08-29</time> </span> <br> <span class="post-meta-item" title="本文字数"> <span class="post-meta-item-icon"> <i class="far fa-file-word"></i> </span> <span class="post-meta-item-text">本文字数:</span> <span>367</span> </span> <span class="post-meta-item" title="阅读时长"> <span class="post-meta-item-icon"> <i class="far fa-clock"></i> </span> <span class="post-meta-item-text">阅读时长 ≈</span> <span>1 分钟</span> </span> </div> </header> <div class="post-body" itemprop="articleBody"> <p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p> <h1 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h1><h2 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure> <p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p> <h2 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure> <p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p> <h2 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure> <p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p> <h2 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure> <p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p> </div> <footer class="post-footer"> <div class="post-eof"></div> </footer> </article> </div> <script> window.addEventListener('tabs:register', () => { let { activeClass } = CONFIG.comments; if (CONFIG.comments.storage) { activeClass = localStorage.getItem('comments_active') || activeClass; } if (activeClass) { let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`); if (activeTab) { activeTab.click(); } } }); if (CONFIG.comments.storage) { window.addEventListener('tabs:click', event => { if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return; let commentClass = event.target.classList[1]; localStorage.setItem('comments_active', commentClass); }); } </script> </div> <div class="toggle sidebar-toggle"> <span class="toggle-line toggle-line-first"></span> <span class="toggle-line toggle-line-middle"></span> <span class="toggle-line toggle-line-last"></span> </div> <aside class="sidebar"> <div class="sidebar-inner"> <ul class="sidebar-nav motion-element"> <li class="sidebar-nav-toc"> 文章目录 </li> <li class="sidebar-nav-overview"> 站点概览 </li> </ul> <!--noindex--> <div class="post-toc-wrap sidebar-panel"> </div> <!--/noindex--> <div class="site-overview-wrap sidebar-panel"> <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person"> <img class="site-author-image" itemprop="image" alt="LXing" src="/images/avatar.jpg"> <p class="site-author-name" itemprop="name">LXing</p> <div class="site-description" itemprop="description"></div> </div> <div class="site-state-wrap motion-element"> <nav class="site-state"> <div class="site-state-item site-state-posts"> <a href="/archives/"> <span class="site-state-item-count">3</span> <span class="site-state-item-name">日志</span> </a> </div> <div class="site-state-item site-state-categories"> <a href="/categories/"> <span class="site-state-item-count">1</span> <span class="site-state-item-name">分类</span></a> </div> <div class="site-state-item site-state-tags"> <a href="/tags/"> <span class="site-state-item-count">1</span> <span class="site-state-item-name">标签</span></a> </div> </nav> </div> <div class="links-of-author motion-element"> <span class="links-of-author-item"> <a href="https://github.com/LXingPeng" title="GitHub → https://github.com/LXingPeng" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a> </span> <span class="links-of-author-item"> <a href="mailto:1803941125@qq.com" title="E-Mail → mailto:1803941125@qq.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a> </span> </div> </div> </div> </aside> <div id="sidebar-dimmer"></div> </div> </main> <footer class="footer"> <div class="footer-inner"> <div class="copyright"> © <span itemprop="copyrightYear">2023</span> <span class="with-love"> <i class="fa fa-heart"></i> </span> <span class="author" itemprop="copyrightHolder">LXing</span> <span class="post-meta-divider">|</span> <span class="post-meta-item-icon"> <i class="fa fa-chart-area"></i> </span> <span title="站点总字数">11k</span> <span class="post-meta-divider">|</span> <span class="post-meta-item-icon"> <i class="fa fa-coffee"></i> </span> <span title="站点阅读时长">10 分钟</span> </div> <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动 </div> <!-- 网站运行时间的设置 --> <span id="timeDate">载入天数...</span> <span id="times">载入时分秒...</span> <script> var now = new Date(); function createtime() { var grt= new Date("03/01/2023 10:00:00"); //此处修改你的建站时间或者网站上线时间 now.setTime(now.getTime()+250); days = (now - grt ) / 1000 / 60 / 60 / 24; dnum = Math.floor(days); hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum); hnum = Math.floor(hours); if(String(hnum).length ==1 ){hnum = "0" + hnum;} minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum); mnum = Math.floor(minutes); if(String(mnum).length ==1 ){mnum = "0" + mnum;} seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum); snum = Math.round(seconds); if(String(snum).length ==1 ){snum = "0" + snum;} document.getElementById("timeDate").innerHTML = "本站已安全运行 "+dnum+" 天 "; document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒."; } setInterval("createtime()",250); </script> <div class="busuanzi-count"> <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script> <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;"> <span class="post-meta-item-icon"> <i class="fa fa-user"></i> </span> <span class="site-uv" title="总访客量"> <span id="busuanzi_value_site_uv"></span> </span> </span> <span class="post-meta-divider">|</span> <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;"> <span class="post-meta-item-icon"> <i class="fa fa-eye"></i> </span> <span class="site-pv" title="总访问量"> <span id="busuanzi_value_site_pv"></span> </span> </span> </div> </div> </footer> </div> <script src="/lib/anime.min.js"></script> <script src="/lib/velocity/velocity.min.js"></script> <script src="/lib/velocity/velocity.ui.min.js"></script> <script src="/js/utils.js"></script> <script src="/js/motion.js"></script> <script src="/js/schemes/pisces.js"></script> <script src="/js/next-boot.js"></script> <script src="/js/local-search.js"></script> </body> </html>