您的位置:首页 > 游戏 > 游戏 > 个人博客搭建

个人博客搭建

2024/9/24 23:22:02 来源:https://blog.csdn.net/qq_30220519/article/details/139548777  浏览:    关键词:个人博客搭建

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


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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com