<渊澄HEXO系列篇一>三分钟教你搭建自己的个人网站-本地安排HEXO
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/35cc1c239b4c4de49945119b3917d231~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1722831062&x-signature=61wyWnNr7LhfWa1qChuuqRJefhg%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">HEXO是一个开源纯静态的CMS内容管理系统,原生支持MarkDown语言,无需数据库,易<span style="color: black;">安排</span>和<span style="color: black;">守护</span>,可<span style="color: black;">以避免</span>费托管到Github、Vercel以及Cloudflare等三方平台。<span style="color: black;">咱们</span><span style="color: black;">能够</span>用它来创建自己的个人站点。</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">下面我将用通俗易懂的语言让纯小白<span style="color: black;">亦</span>能<span style="color: black;">容易</span>搭建。该系列<span style="color: black;">文案</span>预计分为四期更新完成,分别为</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.HEXO的本地<span style="color: black;">安排</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2.<span style="color: black;">怎样</span>更新HEXO。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.<span style="color: black;">怎样</span>更换<span style="color: black;">爱好</span>的主题。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4.<span style="color: black;">怎样</span>将HEXO免费托管到三方平台。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">倘若</span>你感兴趣,和我<span style="color: black;">一块</span>来操作吧。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span><span style="color: black;">咱们</span>需要在电脑上装Git和NodeJS两个环境,安装包<span style="color: black;">能够</span><span style="color: black;">自动</span>搜索安装,<span style="color: black;">倘若</span>找不到,<span style="color: black;">能够</span>评论区或私信浏览,看到后会给你发送下载链接。软件的安装过程<span style="color: black;">亦</span>很简单,<span style="color: black;">按照</span>提示一路“下一步”就<span style="color: black;">能够</span>了。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">1.在本地创建一个用于<span style="color: black;">保留</span>HEXO程序的文件夹,名字随意,我这边以“hexo”为例。</h1>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/e3cd4790137f438ea51989e0c5d4620f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1722831062&x-signature=c07Y%2FRNPAHt%2FL5hO%2BcTp%2Bp9jjLc%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">2.在文件夹内空白处右键<span style="color: black;">选取</span>“Open Git Bash here”。</h1>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/a0d0f3eae5fc40f8b84c053bd6161681~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1722831062&x-signature=PVLwGJape1Tl3nhakzayTnfUBnc%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">3.在弹出的命令框中输入下面代码,等待安装完毕。<span style="color: black;">倘若</span><span style="color: black;">显现</span>下图提示,则<span style="color: black;">暗示</span>安装完成,<span style="color: black;">能够</span>继续下一步了。<span style="color: black;">倘若</span><span style="color: black;">显现</span>报错,<span style="color: black;">能够</span>把报错信息发到评论区,我看到后会<span style="color: black;">第1</span>时间回复。</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">npm install hexo-cli -g</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/eaa73cc9ceb944ee98d33cc92755f2b9~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1722831062&x-signature=y3I9%2BlAgpx6dypNhPhI1huK2%2BlA%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">4.运行下面的命令行来初始化一个新的HEXO站点。<span style="color: black;">一样</span>的,<span style="color: black;">倘若</span><span style="color: black;">显现</span>下图提示,则<span style="color: black;">暗示</span>安装完成,<span style="color: black;">能够</span>继续下一步了。<span style="color: black;">倘若</span><span style="color: black;">显现</span>报错,<span style="color: black;">能够</span>把报错信息发到评论区,我看到后会<span style="color: black;">第1</span>时间回复。</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">hexo init</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/41d68737d03a4e08900e4491f3acb380~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1722831062&x-signature=m6FBF223%2Bl58E81YYFSmEVDhrjc%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">5.运行下面的命令行来进入hexo本地预览模式。在浏览器输入localhost:4000就<span style="color: black;">能够</span>打开<span style="color: black;">咱们</span><span style="color: black;">刚才</span>搭建好的HEXO站点了。</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">hexo s</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/e8b57433f59644e298950171cb729aea~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1722831062&x-signature=7Rn5R%2FI3k6swqFhvkE2q585UmHI%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">6.下一节<span style="color: black;">咱们</span>来学习一下<span style="color: black;">怎样</span>用HEXO来写博客。</h1>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/b38bc59d1d72484684b70ebdace6efe9~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1722831062&x-signature=pBqv5xytQ0VnWDLy1vpYtDWd3e4%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">倘若</span>你觉得我的内容对你有<span style="color: black;">帮忙</span>,欢迎关注、转发、评论、点赞!</p>
你的话语如春风拂面,让我心生暖意。 外贸B2B平台有哪些? 楼主节操掉了,还不快捡起来! 你的努力一定会被看见,相信自己,加油。
页:
[1]