个人博客搭建

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


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

相关推荐
贩卖纯净水.1 小时前
Webpack依赖
前端·webpack·node.js
笑醉踏歌行4 小时前
NVM,Node.Js 管理工具
运维·ubuntu·node.js
chxii6 小时前
1.4 Node.js 的 TCP 和 UDP
node.js
xd0000219 小时前
11. vue pinia 和react redux、jotai对比
node.js
程序猿小D20 小时前
第16节 Node.js 文件系统
linux·服务器·前端·node.js·编辑器·vim
前端老六喔1 天前
🎉 开源项目推荐 | 让你的 TypeScript/React 项目瘦身更简单!
node.js·前端工程化
醉书生ꦿ℘゜এ1 天前
npm error Cannot read properties of null (reading ‘matches‘)
前端·npm·node.js
超级土豆粉1 天前
从0到1写一个适用于Node.js的User Agent生成库
linux·ubuntu·node.js
空中湖1 天前
‘pnpm‘ 不是内部或外部命令,也不是可运行的程序
npm·node.js
金孚媒1 天前
金孚媒重磅推出德国顶级媒体原生广告整合服务,覆盖12家主流媒体
科技·个人开发·媒体