这个由Danny创作的Danny主题,是从原来的 HuWeihuang和 YenYuHsuan 改编而来的。
Danny Blog : https://yaozhixing.github.io/
首先必须安装 Node.js 和Git 工具,这里就不在详细出教程了。
安装 hexo
npm install hexo-cli -g
git clone
cd hexo-Theme-Danny
npm install
hexo s
hexo s 运行一下,打开浏览器:http://localhost:4000/ 看看主题效果。(#^.^#)
修改 _config.yml
文件,配置自己需要的文件信息。
修改配置信息文件如下:
# Site
title: Danny Blog
subtitle: 每天多努力一点,进步就多一点
author: Danny
language:
timezone:
url: https://yaozhixing.github.io/
root: /
#permalink: :year/:month/:day/:title/
permalink: :category/:title/
permalink_defaults:
lang: en
header-img: /img/header_img/home.jpg
article-img: /img/article_header/article_bg.jpg
github_username: yaozhixing
sidebar: true
sidebar-about-description: "<your description>"
sidebar-avatar: /img/avatar/myAvatar.jpg #头像
本博客为例,采用来必力社区评论,请先去来必力申请账号,获取账号复制到这里
livere_uid: xxxxx
很重要
很重要
很重要
, 请正确配置,如果不会,请看上一节 [hexo]搭建github个人博客 基础入门(一)
deploy:
type: git
repository: git@github.com:yaozhixing/yaozhixing.github.io.git
branch: master
message: hexo init
type:提交方式采用git repository: 远程仓库的https地址和ssh的地址,我这里采用ssh地址,可根据上一节教程配置本地公钥,在github的添加公钥上去,就可以一件提交 branch: 远程地址提交的分支 message: 每次提交的提交说明
设置博文是否显示post标签。
home_posts_tag: true
- 新建博文: hexo new post "xxx"
- 清空静态缓存文件: hexo clean
- 生成静态文件: hexo generate (简写: hexo g)
- 启动本地服务器: hexo server (简写:hexo s)
- 提交服务: hexo deploy (简写:hexo d)
<script async defer src="https://buttons.github.io/buttons.js"></script>
如果您喜欢这篇hexo主题,就请赞一个 Star 小星星! 可以关注我的github账户,来吧,一起相互学习吧~Follow