+
-Start a new journey for Hugo's theme of NexT.
+## Hugo NexT
-# Our Vision
+«Hugo NexT» is a high quality elegant [Hugo](https://gohugo.io) theme. Migrate it from `Hexo` engine themes which name is [`NexT`](https://github.com/next-theme/hexo-theme-next), keep all kind page layout designs and 4 different shcemes, start new journey with :heart: and hope you would like it.
-Make `NexT` theme is easily & powerful.
+> All page designs & configuration compatibility with Hexo NexT, it's very easy migrate your site from Hexo to Hugo and enjoy yourself.
-# Preview
+[](https://gitter.im/hugo-next/community) [](https://github.com/gohugoio/hugo/releases/latest) [](https://github.com/hugo-next/hugo-theme-next) [](https://github.com/hugo-next/hugo-theme-next/find/main) [](https://github.com/hugo-next/hugo-theme-next/blob/main/LICENSE)
+
+## 4 Scheme
+
+* :heart_decoration: Muse
+* :six_pointed_star: Mist
+* :pisces: Pisces
+* :gemini: Gemini (**default**)
+
+## Live Preview
| Environment | :gemini: (**Default**) | :heart_decoration: | :six_pointed_star: | :pisces: | Status |
| :---: | :---: | :---: | :---: | :---: | :---: |
| Preliminary | [Gemini](https://preview.hugo-next.eu.org/) | [Muse](https://preview.hugo-next.eu.org/muse/) | [Mist](https://preview.hugo-next.eu.org/mist/) | [Pisces](https://preview.hugo-next.eu.org/pisces/) |  |
-| Production | [Gemini](https://hugo-next.eu.org/) | [Muse](https://hugo-next.eu.org/muse/) | [Mist](https://hugo-next.eu.org/mist/) | [Pisces](https://hugo-next.eu.org/pisces/) |  |
\ No newline at end of file
+| Production | [Gemini](https://hugo-next.eu.org/) | [Muse](https://hugo-next.eu.org/muse/) | [Mist](https://hugo-next.eu.org/mist/) | [Pisces](https://hugo-next.eu.org/pisces/) |  |
+
+> Preliminary: all new feature developments will be previewed as soon as possible.
+> Production: Only the features that are tested stably and meet the requirements will be officially released.
+
+## Quick Start
+
+Before use `Hugo NexT` theme, please make sure installed `Git` & `Hugo Extened` software in your PC, then use `submodule` to lead into the theme, see below commands:
+
+```shell
+$ hugo new site hugo-next-exmaple
+$ cd hugo-next-exmaple
+$ git init
+$ hugo submodule add https://github.com/hugo-next/hugo-theme-next.git themes/hugo-theme-next
+$ cp -r themes/hugo-theme-next/exampleSite/* .
+$ rm -rf config.toml
+$ hugo server
+```
+
+Done that input adrress http://127.0.0.1:1313/ on browser will see the effect & good luck for you! :tada::tada::tada:
+
+## New Post
+
+There had ready a new post template for you, It is recommended to use the following Hugo command to quickly create a new post:
+
+```sh
+$ hugo new posts/hello-world.md
+```
+
+Descript front matter in post as below:
+
+
+```yml
+---
+title: "{{ replace .Name "-" " " | title }}"
+description: "{{ .Name }}"
+keywords: "{{replace .Name "-" ","}}"
+
+date: {{ .Date }}
+lastmod: {{ .Date }}
+
+categories:
+ -
+tags:
+ -
+ -
+
+# Post's origin author name
+#author:
+# Post's origin link URL
+#link:
+# Image source link that will use in open graph and twitter card
+#imgs:
+# Expand content on the home page
+#expand: true
+# It's means that will redirecting to external links
+#extlink:
+# Switch to enabled or disabled comment plugins in this post
+#comment:
+# enable: false
+# Enable table of content
+#toc: false
+# Absolute link for visit
+#url: "{{ lower .Name }}.html"
+# Sticky post set-top in home page and the smaller nubmer will more forward.
+#weight: 1
+---
+```
+
+## Feedback
+
+- Join us [GitHub Discussions](https://github.com/hugo-next/hugo-theme-next/discussions) or [Gitter](https://gitter.im/hugo-next/community) to chat :beers:
+- [GitHub Issues](https://github.com/hugo-next/hugo-theme-next/issues/new?labels=Bug&template=bug-report.md) submit a new bug :bug:
+- [GitHub Feature](https://github.com/hugo-next/hugo-theme-next/issues/new?labels=Feature+Request&template=feature-request.md) tell me your ideas :sparkles:
+
+## Join us
+
+All features development progress and new request in [Hugo NexT V4 Roadmap](https://github.com/hugo-next/hugo-theme-next/issues/9), welcome to join us and compelete it together.
+
+## License
+
+[MIT License](LICENSE)
+
+## Thanks
+
+That's my hobby to develop `Hugo NexT` theme, thanks all people who gived the donate, and let we follow it growth up.
+
+List of Donors(Order by Date):
+
+| Donation time | Donors | Donation mode | Donation content | Message |
+| ------- | ------ | ------ | ---- | ---- |
+| 2021.12.21 | z*y | wechat pay | RMB 18.88 | / |
+| 2022.05.08 | *泉 | wechat pay | RMB 6.60 | Good luck with next develop. |
\ No newline at end of file
diff --git a/README.zh.md b/README.zh.md
new file mode 100644
index 0000000..32011f6
--- /dev/null
+++ b/README.zh.md
@@ -0,0 +1,125 @@
+[中文](#) | [English](README.md)
+
+
+
+
+
+## Hugo NexT
+
+«Hugo NexT» 是一款高质量且优雅的 [Hugo](https://gohugo.io) 主题,从原来 `Hexo` 引擎的 [`NexT`](https://github.com/next-theme/hexo-theme-next) 主题中移植过来,继续保留其经典的设计和 4 种不同页面布局模式,一切因 :heart: 重新出发愿你也能喜欢。
+
+> 本主题的所有页面设计和配置项都与原来 `Hexo` 引擎的 `NexT` 主题保持了良好的兼容性,可以非常平滑的从 `Hexo` 迁移至 `Hugo` 引擎,欢迎大家使用并反馈。
+
+[](https://gitter.im/hugo-next/community) [](https://github.com/gohugoio/hugo/releases/latest) [](https://github.com/hugo-next/hugo-theme-next) [](https://github.com/hugo-next/hugo-theme-next/find/main) [](https://github.com/hugo-next/hugo-theme-next/blob/main/LICENSE)
+
+## 4 种页面模式
+
+* :heart_decoration: 冥想 (Muse)
+* :six_pointed_star: 迷雾 (Mist)
+* :pisces: 双鱼座 (Pisces)
+* :gemini: 双子座 (Gemini) (**默认**)
+
+## 在线预览
+
+| 环境 | :gemini: (**Default**) | :heart_decoration: | :six_pointed_star: | :pisces: | 状态 |
+| :---: | :---: | :---: | :---: | :---: | :---: |
+| 开发版本 | [双子座](https://preview.hugo-next.eu.org/) | [冥想](https://preview.hugo-next.eu.org/muse/) | [迷雾](https://preview.hugo-next.eu.org/mist/) | [双鱼座](https://preview.hugo-next.eu.org/pisces/) |  |
+| 正式版本 | [双子座](https://hugo-next.eu.org/) | [冥想](https://hugo-next.eu.org/muse/) | [迷雾](https://hugo-next.eu.org/mist/) | [双鱼座](https://hugo-next.eu.org/pisces/) |  |
+
+> 开发版本: 所有的新功能开发都会在此第一时间发布预览
+> 正式版本: 只有测试稳定且符合要求的功能才会正式发布
+
+## 快速开始
+
+在使用 `Hugo NexT` 主题之前,请确认你的电脑上已经安装 `Git` 和 `Hugo Extened` 两款软件,然后通过 `submodule` 模式引用本主题,参考如下命令:
+
+```shell
+$ hugo new site hugo-next-exmaple
+$ cd hugo-next-exmaple
+$ git init
+$ hugo submodule add https://github.com/hugo-next/hugo-theme-next.git themes/hugo-theme-next
+$ cp -r themes/hugo-theme-next/exampleSite/* .
+$ rm -rf config.toml
+$ hugo server
+```
+打开浏览器,在地址栏输入 http://127.0.0.1:1313/ 查看主题效果,祝你好运!:tada::tada::tada:
+
+> 本主题的代码同时也同步到 `Gitee` 仓库,在国内环境可切换用 [https://gitee.com/hugo-next/hugo-theme-next.git](https://gitee.com/hugo-next/hugo-theme-next.git) 镜像速度更快,也更稳定。
+
+## 发表新文章
+
+主题已经配置了默认的文章模板,建议使用如下 Hugo 命令快速创建新的文章:
+
+```sh
+$ hugo new posts/hello-world.md
+```
+
+关于文章头部的那些标记作用的说明参考如下:
+
+
+```yml
+---
+# 文章标题
+title: "{{ replace .Name "-" " " | title }}"
+# 文章内容摘要
+description: "{{ .Name }}"
+# 文章内容关键字
+keywords: "{{replace .Name "-" ","}}"
+# 发表日期
+date: {{ .Date }}
+# 最后修改日期
+lastmod: {{ .Date }}
+# 分类
+categories:
+ -
+# 标签
+tags:
+ -
+ -
+
+# 原文作者
+#author:
+# 原文链接
+#link:
+# 图片链接,用在open graph和twitter卡片上
+#imgs:
+# 在首页展开内容
+#expand: true
+# 外部链接地址,访问时直接跳转
+#extlink:
+# 在当前页面开启或关闭评论功能
+#comment:
+# enable: false
+# 开启文章目录功能
+#toc: false
+# 绝对访问路径
+#url: "{{ lower .Name }}.html"
+# 开启文章置顶,数字越小越靠前
+#weight: 1
+---
+```
+
+## 使用反馈
+
+- 加入 [GitHub Discussions](https://github.com/hugo-next/hugo-theme-next/discussions) 或 [Gitter](https://gitter.im/hugo-next/community) 在线讨论 :beers:
+- [GitHub Issues](https://github.com/hugo-next/hugo-theme-next/issues/new?labels=Bug&template=bug-report.md) 提交错误报告 :bug:
+- [GitHub Feature](https://github.com/hugo-next/hugo-theme-next/issues/new?labels=Feature+Request&template=feature-request.md) 表新功能的想法 :sparkles:
+
+## 欢迎加入
+
+关于本主题的开发进度和后续的发展路线图,可访问 [Hugo NexT V4 Roadmap](https://github.com/hugo-next/hugo-theme-next/issues/9) 查看详情,也欢迎大家参与一起来完善。
+
+## 许可证
+
+[MIT License](LICENSE)
+
+## 致谢
+
+开发 `Hugo NexT` 主题原本是个人的业余爱好,但没想到网友们这么的热情,感谢有你们的支持,让我们一起来见证它的成长。
+
+以下是捐助名单列表(按时间顺序):
+
+| 捐助时间 | 捐助者 | 捐助方式 | 捐助内容 | 留言 |
+| :-------: | ------ | ------ | ---- | ---- |
+| 2021.12.21 | z*y | 微信支付 | ¥18.88 | / |
+| 2022.05.08 | *泉 | 微信支付 | ¥6.60 | 祝开发next顺利 |
\ No newline at end of file
diff --git a/assets/css/_common/scaffolding/highlight/copy-code.scss b/assets/css/_common/scaffolding/highlight/copy-code.scss
index 369854f..63d538c 100644
--- a/assets/css/_common/scaffolding/highlight/copy-code.scss
+++ b/assets/css/_common/scaffolding/highlight/copy-code.scss
@@ -1,6 +1,3 @@
-.highlight:hover .copy-btn, pre:hover .copy-btn {
- opacity: 1;
-}
.highlight {
@@ -15,38 +12,45 @@
}
}
-.copy-btn {
- color: $black-dim;
- cursor: pointer;
- line-height: 1.6;
- opacity: 0;
- padding: 2px 6px;
- position: absolute;
- right: 8px;
- top: 4px;
- transition: opacity $transition-ease;
- background: var(--highlight-background);
+@if $codeblock_copy_btn_enable {
- @if $codeblock_copy_btn_style == 'flat' {
- background: white;
- border: 0;
- font-size: $font-size-smaller;
-
- } @else if $codeblock_copy_btn_style == 'mac' {
- color: var(--highlight-foreground);
- font-size: 14px;
- border-radius: 3px;
- } @else {
- background-color: $gainsboro;
- background-image: linear-gradient(#fcfcfc, $gainsboro);
- border: 1px solid #d5d5d5;
- border-radius: 3px;
- font-size: $font-size-smaller;
-
+ .highlight:hover .copy-btn, pre:hover .copy-btn {
+ opacity: 1;
+ }
+
+ .copy-btn {
+ color: $black-dim;
+ cursor: pointer;
+ line-height: 1.6;
+ opacity: 0;
+ padding: 2px 6px;
+ position: absolute;
+ right: 8px;
+ top: 4px;
+ transition: opacity $transition-ease;
+ background: var(--highlight-background);
+
+ @if $codeblock_style == 'flat' {
+ background: white;
+ border: 0;
+ font-size: $font-size-smaller;
+
+ } @else if $codeblock_style == 'mac' {
+ color: var(--highlight-foreground);
+ font-size: 14px;
+ border-radius: 3px;
+ } @else {
+ background-color: $gainsboro;
+ background-image: linear-gradient(#fcfcfc, $gainsboro);
+ border: 1px solid #d5d5d5;
+ border-radius: 3px;
+ font-size: $font-size-smaller;
+
+ }
}
}
-@if $codeblock_copy_btn_style == 'mac' {
+@if $codeblock_style == 'mac' {
.highlight {
border-radius: 5px;
box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .4);
@@ -65,4 +69,4 @@
@include round-icon(12px);
}
}
-}
+}
\ No newline at end of file
diff --git a/assets/css/_common/scaffolding/highlight/index.scss b/assets/css/_common/scaffolding/highlight/index.scss
index b4c686e..68c6fcc 100644
--- a/assets/css/_common/scaffolding/highlight/index.scss
+++ b/assets/css/_common/scaffolding/highlight/index.scss
@@ -10,7 +10,7 @@ pre {
margin: 0;
}
-p > code {
+p > code, li > code {
@extend %code-inline;
border-radius: 3px;
padding: 3px 6px;
diff --git a/assets/css/_schemes/Pisces/_sidebar.scss b/assets/css/_schemes/Pisces/_sidebar.scss
index 4d6e9b1..d3ec63c 100644
--- a/assets/css/_schemes/Pisces/_sidebar.scss
+++ b/assets/css/_schemes/Pisces/_sidebar.scss
@@ -83,7 +83,7 @@
// Only when back2top.sidebar is true, apply the following styles
.back-to-top {
background: var(--body-bg-color);
- margin: 8px - $sidebar-offset -10px -18px;
+ margin: 8px -#{$sidebar-offset} -10px -18px;
&.back-to-top-on {
margin-top: 16px;
diff --git a/assets/css/main.scss b/assets/css/main.scss
index 5f4f2d2..718a92c 100644
--- a/assets/css/main.scss
+++ b/assets/css/main.scss
@@ -52,7 +52,8 @@ $highlight_dark_foreground : #fff;
$highlight_light_background : #565656;
$highlight_light_foreground : #fff;
-$codeblock_copy_btn_style : {{ $P.codeblock.copyBtn.style }};
+$codeblock_copy_btn_enable : {{ $P.codeblock.copyBtn }};
+$codeblock_style : {{ $P.codeblock.style }};
// Sidebar
$sidebar_offset : {{ $P.sidebar.offset }};
@@ -113,7 +114,9 @@ $reading_progress_reversed : {{ $P.readingProgress.reversed }};
// Thirdparty
$math_mathjax_enable : {{ $P.math.mathjax.enable }};
-$related_posts_enable : {{ $P.relatedPosts.enable }};
+// TODO
+//$related_posts_enable : {{ $P.relatedPosts.enable }};
+$related_posts_enable : false;
$pdf_enable : {{ $P.pdf.enable }};
$pdf_height : {{ $P.pdf.height }};
@@ -122,14 +125,16 @@ $algolia_search_enable : {{ $P.algoliaSearch.enable }};
$local_search_enable : {{ $P.localSearch.enable }};
// Online IM
-$gitalk_enable : {{ $P.gitalk.enable }};
+//$gitalk_enable : {{ $P.gitalk.enable }};
+$gitalk_enable : false;
$gitter_enable : {{ $P.gitter.enable }};
// Comment
-$disqusjs_enable : {{ $P.disqusjs.enable }};
-$livere_enable : {{ $P.livere.enable }};
-$utterances_enable : {{ $P.utterances.enable }};
-$waline_enable : {{ $P.waline.enable }};
+//$disqusjs_enable : {{ $P.disqusjs.enable }};
+$disqusjs_enable : false;
+$livere_enable : {{ isset $P.livere "uid" }};
+$utterances_enable : {{ isset $P.utterances "utterances" }};
+$waline_enable : {{ isset $P.waline "serverurl" }};
{{- with .Site.Params.comments }}
{{- $tce := and (isset . "nav") (and .storage (gt (len .nav) 1)) }}
$two_comments_enable : {{ $tce }};
diff --git a/assets/js/config.js b/assets/js/config.js
index 992939b..cde3ea8 100644
--- a/assets/js/config.js
+++ b/assets/js/config.js
@@ -10,10 +10,9 @@ if (!window.NexT) window.NexT = {};
"darkmode" : {{ .Site.Params.darkmode }},
"version" : "{{ .Site.Data.config.version }}",
"sidebar" : {{ .Site.Params.sidebar | jsonify }},
- "copycode" : {{ .Site.Params.codeblock.copyBtn | jsonify }},
+ "copybtn" : {{ .Site.Params.codeblock.copyBtn }},
"bookmark" : {{ .Site.Params.bookmark | jsonify }},
"comments" : {{ .Site.Params.comments | jsonify }},
- "mediumzoom" : {{ .Site.Params.mediumzoom }},
"lazyload" : {{ .Site.Params.lazyload }},
"pangu" : {{ .Site.Params.pangu }},
"stickytabs" : {{ .Site.Params.tabs.sticky }},
diff --git a/assets/js/next-boot.js b/assets/js/next-boot.js
index a37e40e..66bb821 100644
--- a/assets/js/next-boot.js
+++ b/assets/js/next-boot.js
@@ -45,7 +45,7 @@ NexT.boot.refresh = function() {
CONFIG.pangu && window.pangu.spacingPage();
CONFIG.isPage && NexT.utils.replacePostCRLink();
- CONFIG.isPage && NexT.utils.registerCopyCode();
+ CONFIG.isPage && CONFIG.copybtn && NexT.utils.registerCopyCode();
NexT.utils.registerTabsTag();
/*NexT.utils.registerActiveMenuItem();
NexT.utils.registerLangSelect();*/
diff --git a/assets/js/utils.js b/assets/js/utils.js
index 0a80fc2..3baa4de 100644
--- a/assets/js/utils.js
+++ b/assets/js/utils.js
@@ -41,7 +41,7 @@ NexT.utils = {
*/
registerCopyCode: function() {
let figure = document.querySelectorAll('.highlight pre');
- if (figure.length === 0 || !CONFIG.copycode) return;
+ if (figure.length === 0 || !CONFIG.copybtn) return;
figure.forEach(element => {
let cn = element.querySelector('code').className;
// TODO seems hard code need find other ways fixed it.
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 6f96d14..646ca35 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -1,21 +1,39 @@
# ===============================================================
-# It's recommended to use Alternate Theme Config to configure NexT
-# Modifying this file may result in merge conflict
-# See: https://theme-next.js.org/docs/getting-started/configuration
+# 根据如下的配置说明完善自己的站点配置,建议另外拷贝进行调整避免冲突
+# Improve your site configuration according to the following
+# configuration instructions. It is recommended to make
+# additional copies for adjustment to avoid conflicts
# ===============================================================
+# ---------------------------------------------------------------
+# Hugo 引擎的基础配置
+# Basic configure for Hugo engine
+# ---------------------------------------------------------------
+
+# 站点域名,比如: https://hugo-next.eu.org
+# Website domain, eg: https://hugo-next.eu.org
baseURL: /
-
+# 站点标题
+# Website title
+title: Hugo NexT
+# 主题名称
+# Theme name
theme: hugo-theme-next
-canonifyURLs: true
-
-paginate: 8
-
+# 站点默认的语言和代码
+# Default laguage & code for website
+defaultContentLanguage: zh-cn
+languageCode: zh-CN
+# 是否包含中文,日语,韩文
+# Whether contains Chinese, Japanese and Korean
+hasCJKLanguage: true
+# 每页显示文章数量
+# Display items per page
+paginate: 10
+# 开启支持表情符号
+# Enable Emoji support
enableEmoji: true
-
-relativeurls: true
-
-# Make markdown content support HTML syntax
+# 让 Makedown 文档支持 HTML 语法,高亮,文章目录等功能
+# Make markdown content support HTML syntax, highlight, toc etc.
markup:
goldmark:
renderer:
@@ -25,62 +43,34 @@ markup:
lineNos: true
lineNumbersInTable: true
noClasses: true
+ # 高亮代码的样式名称,可选:monokai | emacs | api | dracula | friendly
+ # 更多的样式:https://xyproto.github.io/splash/docs/all.html
+ # Highlight style: monokai | emacs | api | dracula | friendly
+ # More: https://xyproto.github.io/splash/docs/all.html
+ style: "monokai"
tableOfContents:
+ # 开始/结束标题级别:1-6
+ # Heading title level of start or end: 1-6
+ startLevel: 1
endLevel: 3
ordered: false
- startLevel: 1
-
-defaultContentLanguage: zh-cn
-languages:
- zh-cn:
- title: Hugo NexT
- languageName: 中文
- languageCode: zh-CN
- hasCJKLanguage: true
- weight: 1
- en:
- title: Hugo NexT
- languageName: English
- languageCode: en
- hasCJKLanguage: false
- weight: 2
- menus:
- main:
- - identifier: home
- name: Home
- pageref: /
- pre: home
- weight: 1
- - identifier: about
- name: About
- pageref: /about.html
- pre: user
- weight: 2
- - identifier: archives
- name: Archives
- pageref: /posts
- pre: archive
- weight: 3
- - identifier: commonweal
- name: Commonweal 404
- url: /404.html
- pre: heartbeat
- weight: 4
- params:
- author: Theme NexT
- subtitle: Theme for Hugo
- description: Stay easily & powerful.
- keywords: Hugo,NexT,Theme,easily,powerful
- linksSets:
- icon: fa fa-globe
- title: Friends
- postFooter:
- endLineTip: "~ End of this post ~"
#--------------------------------------
+# 菜单配置说明
+# identifier : 唯一标识不可重复
+# name : 菜单显示名称
+# pageref : 本站点链接地址,与 URL 选其一
+# url : 站点外部链接地址,以 http 或者 https 开头
+# pre : 菜单小图标
+# weight : 显示顺序,字数越小越靠前
+#
# Menus Settings
-# Attribute pre is Font Awesome icon name without prefix "fa-".
-# External url should start with http:// or https:// .
+# identifier : Unique ID cannot be repeated
+# name : Menu name
+# pageref : Link of webiste and not appeare same time with url
+# url : Exteneral link out of website and start with http or https
+# pre : Icon of menu
+# weight : Order number and smaller is top
# -------------------------------------
menus:
main:
@@ -105,86 +95,73 @@ menus:
pre: heartbeat
weight: 4
+#-----------------------------------------
+# Hugo NexT 主题参数配置
+# Configure Settings for Hugo NexT theme
+#-----------------------------------------
params:
+ # 需要显示文章的部分,即content目录下的文件夹名称
+ # Sections for show in home & archive page
+ # and it's forlder name which under content
mainSections: ["posts"]
+ # 年,月,日及时间的格式化样式
+ # Format style for year,month,date & time
yearFormat: "2006"
monthFormat: "01-02"
dateFormat: "2006-01-02"
timeFormat: "2006-01-02T15:04:05-07:00"
- # ---------------------------------------------------------------
- # Theme Core Configuration Settings
- # See: https://theme-next.js.org/docs/theme-settings/
- # ---------------------------------------------------------------
-
- # Allow to cache content generation.
- #cache:
- # enable: true
-
- # Remove unnecessary files after hexo generate.
- # minify: false
-
- # Define custom file paths.
- # Create your custom files in site directory `source/_data` and uncomment needed files below.
- customFilePath:
- #head: source/_data/head.njk
- #header: source/_data/header.njk
- #sidebar: source/_data/sidebar.njk
- #postMeta: source/_data/post-meta.njk
- #postBodyEnd: source/_data/post-body-end.njk
- #footer: source/_data/footer.njk
- #bodyEnd: source/_data/body-end.njk
- #variable: source/_data/variables.styl
- #mixin: source/_data/mixins.styl
- #style: source/_data/styles.styl
-
-
- # ---------------------------------------------------------------
- # Scheme Settings
- # ---------------------------------------------------------------
+ # 页面模式
# Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini
+ # 开启暗模式
# Dark Mode
darkmode: true
- # ---------------------------------------------------------------
+ # 站点基本信息
# Site Information Settings
- # ---------------------------------------------------------------
author: NexT 主题
subtitle: 为 Hugo 打造的主题
description: 保持简单的易用性和强大的功能。
keywords: Hugo,NexT,主题,简单,强大
+ # 不同尺寸站点图标
+ # Different size of favicon
favicon:
icon: /imgs/icons/favicon.ico
small: /imgs/icons/favicon_16x16_next.png
medium: /imgs/icons/favicon_32_32_next.png
appleTouchIcon: /imgs/icons/apple_touch_icon_next.png
- #android_manifest: /manifest.json
+ # 自定义 Logo (目前只支持 Mist 页面模式)
# Custom Logo (Warning: Do not support scheme Mist)
customLogo: #/imgs/hugo_next_logo.png
+ # 知识共享国际许可 4.0
+ # 更多信息: https://creativecommons.org/about/cclicenses/
# Creative Commons 4.0 International License.
# See: https://creativecommons.org/about/cclicenses/
creativeCommons:
+ # 可选配置: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | cc-zero
# Available values: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | cc-zero
license: by-nc-sa
+ # 可选配置: big | small
# Available values: big | small
size: big
+ # 侧边栏显示
+ # Show in sidebar
sidebar: true
+ # 文章底部显示
+ # Show in post footer
post: true
- # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
- # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
- # language:
+ # OG SEO 配置
# Open graph settings
- # See: https://hexo.io/docs/helpers#open-graph
openGraph:
enable: true
#twitter:
@@ -196,46 +173,38 @@ params:
# admins: