yaozhixing / hexo-theme-Danny

hexo 的 Danny 主题

Home Page:https://yaozhixing.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[hexo] hexo-theme-Danny

这个由Danny创作的Danny主题,是从原来的 HuWeihuangYenYuHsuan 改编而来的。

Demo

Danny Blog : https://yaozhixing.github.io/

首页截图↓: enter image description here

归档↓: enter image description here

Tags标签↓: enter image description here

关于我↓: enter image description here

博文示例↓: enter image description here


Install Hexo

首先必须安装 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 文件,配置自己需要的文件信息。 修改配置信息文件如下:

1、站点配置信息
# 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
2、设置首页banner图片地址
header-img: /img/header_img/home.jpg
3、设置博文的默认banner图片地址
article-img: /img/article_header/article_bg.jpg
4、设置github账户连接名称
github_username:    yaozhixing
5、侧边栏设置
sidebar: true    
sidebar-about-description: "<your description>"
sidebar-avatar: /img/avatar/myAvatar.jpg 	#头像
6、开启评论插件

本博客为例,采用来必力社区评论,请先去来必力申请账号,获取账号复制到这里

livere_uid:  xxxxx
7、Deployment选项

很重要 很重要 很重要, 请正确配置,如果不会,请看上一节 [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 tag

设置博文是否显示post标签。

home_posts_tag: true

Hexo 基础语法

  • 新建博文: hexo new post "xxx"
  • 清空静态缓存文件: hexo clean
  • 生成静态文件: hexo generate (简写: hexo g)
  • 启动本地服务器: hexo server (简写:hexo s)
  • 提交服务: hexo deploy (简写:hexo d)

点亮Star

<script async defer src="https://buttons.github.io/buttons.js"></script>

如果您喜欢这篇hexo主题,就请赞一个 Star 小星星! 可以关注我的github账户,来吧,一起相互学习吧~Follow

About

hexo 的 Danny 主题

https://yaozhixing.github.io/

License:Apache License 2.0


Languages

Language:HTML 53.9%Language:CSS 36.0%Language:JavaScript 10.1%