基于Hexo搭建Next主题博客
Next
链接地址:https://github.com/caozongpeng/hexo-theme-next
NexT 是一个高质量并且优雅的Hexo 主题。这是精心制作做出来的 hexo 主题。
如果你对此主题非常喜欢,欢迎Star
& Fork
,非常感谢。
预览界面
首页
底部
相册
文章
搜索
安装 Installation
1. 在终端切换到hexo 根目录. 在hexo目录下一定有 node_modules
, source
, themes
和其他文件夹:
$ cd hexo
$ ls
_config.yml node_modules package.json public scaffolds source themes
2. 从 github 上获取主题 。
$ git clone git@github.com:caozongpeng/hexo-theme-next.git themes/next
3. 在 hexo 根目录下 的配置文件_config.yml
里设置主题:
theme: next
更新 Update
$ cd themes/next
$ git pull
如何使用这个特性 How to use this feature
- 请先确保你所使用的 Hexo 版本在 3 以上
- 在站点的
source/_data
目录下新建next.yml
文件(_data
目录可能需要新建) - 迁移站点配置文件和主题配置文件中的配置到
next.yml
中 - 使用
--config source/_data/next.yml
参数启动服务器, 生成或者部署。
例如:hexo clean --config source/_data/next.yml && hexo g --config source/_data/next.yml
。
支持多国语言, 包括:
?? 简体中文 & 繁体中文
?? 英语
?? 俄语
?? 法语
?? 德语
?? 日语
?? 印度尼西亚语
?? 葡萄牙语 (巴西)
?? 朝鲜语
?? 意大利语
?? 荷兰语
默认语言是英语。
language: en
# language: zh-Hans
# language: zh-hk
# language: zh-tw
# language: ru
# language: fr-FR
# language: de
# language: ja
# language: id
# language: pt
# language: pt-BR
# language: ko
# language: it
# language: nl-NL
在站点配置文件_config.yml
中可以将语言切换成中文
language: zh-Hans
评论支持 Comment support
NexT 已经原生支持 多说
and Disqus
评论系统。
添加以下代码到你的主题配置文件 _config.yml
:
duoshuo:enable: trueshortname: your-duoshuo-shortname
或者
disqus_shortname: your-disqus-shortname
或者
# Valine.
# You can get your appid and appkey from https://leancloud.cn
# more info please open https://valine.js.org
valine:enable: trueappid: # your leancloud application appidappkey: # your leancloud application appkeynotify: false # mail notifier , https://github.com/xCss/Valine/wikiverify: false # Verification codeplaceholder: 正确填写邮箱, 才能及时收到回复哦♪(^∇^*) # comment box placeholderavatar: mm # gravatar styleguest_info: nick,mail,link # custom comment headerpageSize: 10 # pagination size
标签页 Tags page
添加一个标签页面,里面包含您网站中的所有标签。
创建一个名为
tags
页面hexo new page "tags"
编辑标签页, 设置页面类型为
tags
.title: All tagsdate: 2014-12-22 12:39:04type: "tags"
添加
tags
到主题配置文件_config.yml
里:menu:home: /archives: /archivestags: /tags
分类页 Categories page
添加一个分类页面,里面包含您网站中的所有分类。
创建一个名为
categories
页面hexo new page "categories"
编辑分类页, 设置页面类型为
categories
.title: All categoriesdate: 2014-12-22 12:39:04type: "categories"
添加
categories
到主题配置文件_config.yml
里:menu:home: /archives: /archivescategories: /categories
社交媒体 Social Media
NexT 可以自动添加链接到您的社交媒体帐户里:
social:GitHub: https://github.com/caozongpeng || githubCSDN: https://blog.csdn.net/qq_22067469E-Mail: mailto:kyriecao@163.com || envelopeResume: https://caozongpeng.github.io#Google: https://plus.google.com/yourname || google#Twitter: https://twitter.com/yourname || twitter#FB Page: https://www.facebook.com/yourname || facebook#VK Group: https://vk.com/yourname || vk#StackOverflow: https://stackoverflow.com/yourname || stack-overflow#YouTube: https://youtube.com/yourname || youtube#Instagram: https://instagram.com/yourname || instagram#Skype: skype:yourname?call|chat || skype
Feed 链接 Feed link
显示 feed 链接。
在主题配置文件_config.yml
里设置rss
, 如下所示:
rss: false
会禁用 feed 链接。rss:
使用站点 feed 链接。这是默认的选项。按照插件hexo-generator-feed的README中的安装说明进行操作。在完成这个插件的配置后,Feed链接也生成好了
rss: http://your-feed-url
设置你的 feed 链接.
内置5种代码高亮主题 Up to 5 code highlight themes built-in
NexT 使用的是 Tomorrow 主题 ,一共有5种主题供你选择。
Next 默认使用 normal
. 下面是 normal
和 night
主题的预览:
查看更多信息点击Tomorrow 主题。
相册配置
请参考博文:https://malizhi.cn/HexoAlbum/
配置 Configuration
NexT 的配置很少
# Menu configuration.
menu:home: /archives: /archives# Favicon
favicon: /favicon.ico# Avatar (put the image into next/source/images/)
# can be any image format supported by web browsers (JPEG,PNG,GIF,SVG,..)
avatar: /default_avatar.png# Code highlight theme
# available: normal | night | night eighties | night blue | night bright
highlight_theme: normal# Fancybox for image gallery
fancybox: true# Specify the date when the site was setup
since: 2013
更多配置请详细查看_config.yml
文件。
更新日志
2019-01-28第一个版本
此外还有另一个非常 好看、简洁、大方 的主题:https://blog.csdn.net/qq_22067469/article/details/86685248
================================================================================
感谢阅读,写得不好的地方请指教,能帮助到你是对我最好的回报,不卑不亢,加油。
请你记住比你优秀的一定比你努力,比你努力的人一定比你优秀。
================================================================================
基于Hexo搭建Next主题博客相关推荐
- 基于hexo搭建个人免费博客——基本设置和了解
2017年最新基于hexo搭建个人免费博客--基本设置和了解 前言 前面的文章已经能让大家搭建起自己的博客,并通过网络访问了,通过基础的发布文章和编辑既可以实现博客的运作了,其他的一些包括分页和标签. ...
- 2017年最新基于hexo搭建个人免费博客——从零开始
前言 搭建此博客是因为通过github上了解到github pages进而知道了可以把静态网页博客托管给github仓库 或许您已经通Git + Hexo 搭建个人博客网站了解到如何通过HEXO + ...
- github page hexo博客gitee_利用Github和hexo搭建个人免费博客
利用Github和hexo搭建个人免费博客详细过程: 概述: 详细的介绍了利用github和hexo搭建免费的博客,内容详细,浅显易懂,容易上手,大家一起进来看看吧! 1.配置Github相关操作: ...
- github+hexo搭建自己的博客网站(六)进阶配置(搜索引擎收录,优化你的url,添加RSS)...
详细的可以查看hexo博客的演示:https://saucxs.github.io/ 绑定了域名: http://www.chengxinsong.cn hexo+github博客网站源码(可以clo ...
- 使用 Hexo 搭建自己的博客
使用 Hexo 搭建自己的博客 Hexo 是一个非常流行的静态站点生成工具,它可以把 Markdown 文档快速的解析成漂亮的静态页面,支持各种主题,让用户专注在写作上. 本文选自 <了不起的M ...
- hexo搭建自己的博客并部署至免费的github服务器教程
hexo搭建自己的博客并部署至免费的github服务器教程-mac版本 打开终端,输入sudo su -命令进入root用户 输入npm install -g hexo-cli (前提是按照了node ...
- 基于springboot搭建的个人博客系统
源码下载地址:blog blog是基于springboot搭建的个人博客,响应式 前端技术:html.css.js.jq.bootstrap 后台技术:springboot.thymeleaf.myb ...
- 【Hexo】Hexo-NexT主题-博客搭建
为了记录我的大学生活的学习,在2020春节前决定搭建一个自己的博客来记录自己大学四年的生活和学习,本文为参考b站up:Mackxin的教程来进行记录我对Hexo-next主题的学习过程以及练练手,以后 ...
- 四十四、Hexo搭建自己的博客
最近看了大佬 利用 GitHub 从零开始搭建一个博客文章,解决好久卡在自己的问题,那时看了极客的git课程还是很多问题,找了很多教程,发现都不太全,直到看到 https://mp.weixin.qq ...
最新文章
- 一次性掌握机器学习基础知识脉络 | 公开课笔记
- c# 中文字符(全角、半角)通用处理
- 程序员面试金典 - 面试题 16.19. 水域大小(BFS/DFS)
- linux 外壳的概念,Linux 与 Linux 发行版的一些概念
- Python List pop()方法
- 《DOOM启示录》读后感
- Java详细安装配置教程(Windows),从下载到配置——Java-1.8(jdk)安装
- 财务管理与计算机论文,计算机小论文--浅论计算机与财务管理.doc
- 软件开发工程师应该具备哪些证书_初级软件工程师证书简介
- idea创建Springboot项目时,出现Error:java: 读取C:\Users\HP\.m2\repository\com\vaadin\external\google\android-js
- 松翰单片机--SN8F5702学习笔记(五)PWM
- 1.Spring注解01、组件注册-@Configuration@Bean给容器中注册组件
- 服务器日志修改保存时间,日志服务保留时间
- 为什么你的前端工作经验不值钱?
- 解决 Windows 商店 0x800704cf 网络问题
- 【企业数智化转型】知识图谱(Knowledge Graph)
- Java虚拟机知识点快速复习手册(上)
- 深度学习中,偏置(bias)在什么情况下可以要,可以不要?
- 毕业设计:电子/通信/物联网/计算机专业选题目参考(嵌入式linux/单片机STM32/web/图像)
- MySQL for mac傻瓜式教程