个人博客搭建

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主题的相关设置(持续更新) - 简书


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

相关推荐
cpolar技术支持1 小时前
把 agent-autoloop 装在 Mac 上:用本机 Node 实跑一次「接活—提问—拍板—接着干」,再用 cpolar 把它的状态页开给不在工位的自己
node.js·内网穿透·cpolar·ai agent·agent-autoloop
SEO_juper8 小时前
Node.js 全站 SEO 体检报告生成器:一次查完标题、描述、canonical、H1、图片
开发语言·前端·node.js·html·bash
木头左1 天前
【Node.js】Markdown 转带图片 Word 文档实战:docx 库转换器设计与 5 个踩坑
node.js·word·markdown·文档自动化
思特奇时空智能1 天前
大规模点要素地图渲染性能优化实践
vue.js·arcgis·性能优化·node.js·html·gis·webgl
svyee3 天前
Win11 砍掉的磁贴,我用一个周末写了回来(1.3MB 开源了)
开源软件·个人开发·ai编程
w3296362714 天前
飞书接单到月度结算:我用一个 DSH 插件跑通鞋类采购 WMS,附 22 项验收
pdf·node.js·飞书·后端开发·ai agent
濮水大叔4 天前
Cabloy/Vona 为什么不需要 NestJS 的 Dynamic Module
typescript·node.js·nestjs
匠云创新4 天前
读完一万段要两分钟:我们把标书读取从 WPS 对象模型搬到了 docx 解析
性能优化·node.js
某哈压力大4 天前
SSH 突然 Connection reset?不是密钥坏了,是 OpenSSL 把 sshd 干趴了
前端·node.js·命令行
回眸&啤酒鸭4 天前
【回眸】Node.js 新手从零到一实战指南
node.js