个人博客搭建

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

开启博客评论
<!-- 来必力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. 个人保姆级教程-Nginx篇

    2024-06-09 11:50:02       45 阅读
  2. 个人】(13)SqlSugar仓储实现

    2024-06-09 11:50:02       9 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-09 11:50:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-09 11:50:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-09 11:50:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-09 11:50:02       20 阅读

热门阅读

  1. Visual 怎么编程:一场视觉与逻辑的奇妙旅程

    2024-06-09 11:50:02       8 阅读
  2. Linux | 标准IO编程

    2024-06-09 11:50:02       9 阅读
  3. 43.bug:mapper接口参数使用@param重命名导致的错误

    2024-06-09 11:50:02       9 阅读
  4. 如何评价GPT-4o?【模板】

    2024-06-09 11:50:02       10 阅读
  5. 新电脑必装的7款软件,缺一不可

    2024-06-09 11:50:02       9 阅读
  6. Docker无法stop或者rm指定容器

    2024-06-09 11:50:02       10 阅读
  7. 「前端+鸿蒙」鸿蒙应用开发-TS函数

    2024-06-09 11:50:02       9 阅读
  8. 轻量管理内核复杂级别的项目

    2024-06-09 11:50:02       11 阅读