-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.xml
More file actions
86 lines (41 loc) · 22 KB
/
search.xml
File metadata and controls
86 lines (41 loc) · 22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title>Obsidian+Hexo+Git 博客方案</title>
<link href="/2023/07/d37bf00289d3.html"/>
<url>/2023/07/d37bf00289d3.html</url>
<content type="html"><</code><br><img src="https://img.bingt.top/img/20230716214316.png" alt="image.png"></p></li><li><p>点击直接执行<br><img src="https://img.bingt.top/img/20230716214402.png" alt="image.png"></p><h2 id="安装Button插件"><a href="#安装Button插件" class="headerlink" title="安装Button插件"></a>安装Button插件</h2><p>用此插件可以将其美化为按钮</p></li><li>在第三方插件搜索<code>Buttons</code>安装并打开<br><img src="https://img.bingt.top/img/20230716213245.png" alt="image.png"></li><li>使用快捷键<kbd>Ctrl</kbd> + <kbd>P</kbd>打开命令面板,输入并打开<code>Button Maker</code><br><img src="https://img.bingt.top/img/20230716214647.png" alt="image.png"><h2 id="设置按钮信息"><a href="#设置按钮信息" class="headerlink" title="设置按钮信息"></a>设置按钮信息</h2></li><li>按钮名称<code>Button Name</code>输入<strong>运行博客</strong></li><li>按钮类型<code>Button Type</code>中选择<strong>Link - open a url or uri</strong></li><li>链接<code>Link</code>中输入<strong>obsidian://open?file=hexo-source-Repo/RunBlog.bat</strong>(这里hexo-source-Repo换成自己的博客目录)<br><img src="https://img.bingt.top/img/20230716215727.png" alt="image.png"></li><li>拉到下面,点击<code>Insert Button</code>来插入按钮<br><img src="https://img.bingt.top/img/20230716215916.png" alt="image.png"></li><li>此时的按钮点击后就可以快速执行命令来运行博客<br><img src="https://img.bingt.top/img/20230716220102.png" alt="image.png"><br><strong>同样也可以用来上传同步博客功能等等</strong></li></ul>]]></content>
<categories>
<category> 博客方案 </category>
</categories>
<tags>
<tag> hexo </tag>
<tag> obsidian </tag>
</tags>
</entry>
<entry>
<title>Hexo博客 更换设备</title>
<link href="/2023/07/b46fd6a08ce8.html"/>
<url>/2023/07/b46fd6a08ce8.html</url>
<content type="html"><![CDATA[<p>hexo博客部署在github上,由于更换电脑,需要重新搭建环境</p><h1 id="前期准备"><a href="#前期准备" class="headerlink" title="前期准备"></a>前期准备</h1><ul><li><p>下载并安装好Nodejs和git<br><a href="https://nodejs.org/en/download">Nodejs</a><br><a href="https://git-scm.com/">git</a></p></li><li><p>设置git全局邮箱和用户名</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git config --global user.name <span class="string">"yourgithubname"</span></span><br><span class="line">git config --global user.email <span class="string">"yourgithubemail"</span></span><br></pre></td></tr></table></figure></li><li><p>设置ssh key</p><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">ssh-keygen -t rsa -C <span class="string">"youremail"</span></span><br></pre></td></tr></table></figure><p>生成秘钥后,到显示的相应目录找到公钥,将对应的公钥填到自己的Github中</p></li><li><p>验证是否成功</p><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">ssh -T git@github.com</span><br></pre></td></tr></table></figure></li><li><p>安装hexo</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-cli -g</span><br></pre></td></tr></table></figure></li></ul><h1 id="本地项目部署"><a href="#本地项目部署" class="headerlink" title="本地项目部署"></a>本地项目部署</h1><ul><li>将项目clone到本地<br>在要放的文件夹下<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git clone git@......</span><br></pre></td></tr></table></figure></li><li>装好依赖<br>进入clone的文件夹下并安装<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">npm isntall</span><br><span class="line">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure></li><li>部署<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">hexo cl</span><br><span class="line">hexo g</span><br><span class="line">hexo d</span><br></pre></td></tr></table></figure></li></ul>]]></content>
<categories>
<category> 博客方案 </category>
</categories>
<tags>
<tag> hexo </tag>
</tags>
</entry>
<entry>
<title>Github图床方案</title>
<link href="/2023/03/34273fe9a31f.html"/>
<url>/2023/03/34273fe9a31f.html</url>
<content type="html"><)</p><p>选择适合自己的版本(我的是windows的64位)</p><p><img src="https://img.bingt.top/img/image-20230306170159112.png" alt="image-20230306170159112"></p></li><li><p>在插件中搜索<code>github-plus</code>并下载</p><p><img src="https://img.bingt.top/img/image-20230306170405945.png" alt="image-20230306170405945"></p></li><li><p>安装好插件,点击<code>图床设置</code>—-><code>githubPlus</code>进入githubPlus设置</p><p><img src="https://img.bingt.top/img/image-20230306170720248.png" alt="image-20230306170720248"></p></li><li><p>填写相应内容:</p><p><code>repo</code>:github用户名/仓库名</p><p><code>branch</code>:main</p><p><code>token</code>:获取自己的token(classic token,记得勾选repo)</p><p><code>path</code>:填入自己仓库下的文件保存路径</p><p><code>customUrl</code>:自定义域名</p><p><code>orgin</code>:github</p><p>确定并设为默认图床</p></li><li><p>进入Typora设置并修改为下面所示</p><p><img src="https://img.bingt.top/img/image-20230306171703455.png" alt="image-20230306171703455"></p><p>设置完毕,点击<code>验证图片上传选项</code>,验证成功。</p></li></ol>]]></content>
<categories>
<category> 博客方案 </category>
</categories>
<tags>
<tag> 图床 </tag>
<tag> Github </tag>
</tags>
</entry>
</search>