diff --git a/.gitignore b/.gitignore index 6b89457..ac41c2c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,9 @@ exampleSite/* # Exclude special files in content folder +exampleSite/content/**/ !exampleSite/content -exampleSite/content/* +!exmapleSite/content/about.md !exampleSite/content/archives !exampleSite/content/post diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md new file mode 100644 index 0000000..ca58c5f --- /dev/null +++ b/exampleSite/content/about.md @@ -0,0 +1,27 @@ +--- +title: "关于 Hugo NexT 组织" +description: "" + +date: 2022-06-09T20:12:52+08:00 +lastmod: 2022-06-09T20:12:52+08:00 + +share: false +followme: false +nav: false +copyright: false +url: about.html +--- + +`Hugo NexT` 组织是由众多喜爱 `NexT` 主题及风格的世界各地友人共同组建而成,为的就是让这个主题继续在 `Hugo` 引擎中也能得到发扬光大,在此也欢迎你的加入! + +# 我们的愿景 + +延续 `NexT` 经典的黑白调搭配,保持简单的易用性及强大的功能。 + +# 使用反馈 + +- 加入 [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: + +> 同时国内用户也可加入 QQ 群交流: 604710815 \ No newline at end of file diff --git a/exampleSite/start.sh b/exampleSite/start.sh index 59f814c..ff1ab60 100644 --- a/exampleSite/start.sh +++ b/exampleSite/start.sh @@ -20,4 +20,4 @@ EOT next `cat ../VERSION` -hugo server -D -t ../.. --port 1414 --panicOnWarning --config config.dev.yaml +hugo server -t ../.. --port 1414 --panicOnWarning --config config.yaml diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 19015ab..ea48856 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,3 @@ -{{- if and .Page.IsSection (eq .Section "archives") }} - {{- $paginator := (.Paginate (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections)).Pages.GroupByDate "2006" }} - {{ partial "list.html" $paginator }} -{{ else }} - {{- $paginator := .Paginator.Pages.GroupByDate "2006" }} - {{ partial "list.html" $paginator }} -{{- end }} +{{ $paginator := .Paginator.Pages.GroupByDate "2006" }} +{{ partial "list.html" $paginator }} + diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 9e73648..6c2dfba 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,39 +1,15 @@ {{- define "title" }} {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "AllSome" }} - {{ .Site.Title -}} {{- end -}} -{{ define "main_inner_class" }}archive posts-collapse{{ end }} -{{- define "main" }} -