个人博客搭建

liupeng's blogs

环境搭建

版本环境:hexo3.8.0 + node12.17.0

https://www.cnblogs.com/fengxiongZz/p/7707219.html 搭建

https://www.cnblogs.com/fengxiongZz/p/7707568.html 进阶

https://www.cnblogs.com/chengxs/p/7496265.html

https://www.cnblogs.com/sun-haiyu/p/7027093.html 美化

示例:

https://github.com/saucxs/saucxs.github.io

cd blog2

npm config set registry https://registry.npm.taobao.org

npm config set registry http://registry.cnpmjs.org

npm info underscore (如果上面配置正确这个命令会有字符串response)

npm config get registry

cnpm install hexo -g

hexo -v

hexo init

npm update

npm install

npm cache verify

hexo g

hexo s

hexo server -p 端口号 --》改变端口号

hexo官网上下载自己喜欢的theme

新建一篇博客,并生成网页和部署到本地与服务器

npm rebuild node-sass

//npm install hexo-deployer-git --save //安装部署插件

npm install cnpm -g

cnpm install hexo-deployer-git --save

hexo new post "你好,Hexo"

hexo d -g //部署到github,并生成网页

hexo clean //清理缓存

hexo g

gulp //静态资源压缩

hexo d //部署到本地

cname文件配置

cnpm install hexo-generator-cname --save

在_config.yml中添加一条

url:https://liupeng2018.xyz

Plugins:

  • hexo-generator-cname

标签搜寻:

cnpm i hexo-generator-json-content --save

在_config.yml中添加一条

jsonContent:

meta: false

pages: false

posts:

title: true

date: true

path: true

text: false

raw: false

content: false

slug: false

updated: false

comments: false

link: false

permalink: false

excerpt: false

categories: false

tags: true

搜索引擎收录

cnpm install hexo-generator-sitemap --save

cnpm install hexo-generator-baidu-sitemap --save

开启博客评论
html 复制代码
<!-- 来必力City版安装代码 -->
<div id="lv-container" data-id="city" data-uid="MTAyMC80MTgwOS8xODM1NQ==">
	<script type="text/javascript">
   (function(d, s) {
       var j, e = d.getElementsByTagName(s)[0];

       if (typeof LivereTower === 'function') { return; }

       j = d.createElement(s);
       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
       j.async = true;

       e.parentNode.insertBefore(j, e);
   })(document, 'script');
	</script>
<noscript> 为正常使用来必力评论功能请激活JavaScript</noscript>
</div>
<!-- City版安装代码已完成 -->
博文置顶

cnpm uninstall hexo-generator-index --save

cnpm install hexo-generator-index-pin-top --save


title: 2018

date: 2018-10-25 16:10:03

top: 10


参考:

GitHub - EmbolismSoil/embolismsoil.github.io

GitHub - saucxs/hexo-blog-origin: hexo+github搭建的博客,原始项目代码,可以clone,运行,查看hexo-blog

GitHub - saucxs/saucxs.github.io: hexo+github搭建自己的博客网站,

GitHub - wwj718/wwj718.github.io: wwj718.github.io

GitHub - xudailong/xudailong.github.io: blog & blog theme🤘

号外号外!解决github+hexo+yilia评论插件的问题!!! - 阿♛正 - 博客园

数安时代证书签名工具_常用工具 - 数安时代(GDCA)SSL证书官网

hexo 增添宠物_hexo 吉祥物-CSDN博客

Hexo+yilia主题实现文章目录和添加视频_hexo 文章加入视频-CSDN博客

Hexo博客yilia主题使用cnzz统计网站访问量_hexo cnzz shana-CSDN博客

Github搭建个人博客(2019最新版,亲测)_如何在github上发布blog-CSDN博客

【持续更新】最全Hexo博客搭建+主题优化+插件配置+常用操作+错误分析 | 遇见西门

180928-hexo使用本地图片的一种方式 - 一灰灰Blog

https://www.cnblogs.com/chengxs/p/7440382.html

不蒜子新域名:<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js">

https://analytics.google.com

https://www.cnblogs.com/chengxs/p/7496236.html

Hexo和Next主题的相关设置(持续更新) - 简书


创作不易,小小的支持一下吧!

相关推荐
zhensherlock17 小时前
Protocol Launcher 系列:Overcast 一键订阅播客
前端·javascript·typescript·node.js·自动化·github·js
Bigger21 小时前
🚀 mini-cc:打造你的专属轻量级 AI 编程智能体
前端·node.js·claude
墨澜逸客1 天前
华胥祭坛志---文/墨澜逸客
开发语言·深度学习·学习·百度·php·学习方法·新浪微博
算是难了1 天前
TypeORM vs Prisma
数据库·typescript·node.js
xxjj998a1 天前
如何安装linux版本的node.js
linux·运维·node.js
墨澜逸客2 天前
《华胥文化》百回大纲
学习·其他·百度·学习方法·新浪微博
2501_916007472 天前
从零开始学习iOS开发:Xcode环境配置与项目创建完整指南
ide·vscode·学习·ios·个人开发·xcode·敏捷流程
青花瓷2 天前
Windows下Node.js的安装
node.js
暮雪倾风2 天前
【JS-Node】node.js环境安装及使用
开发语言·javascript·node.js
冴羽3 天前
请愿书:Node.js 核心代码不应该包含 AI 代码!
前端·javascript·node.js