From 1f992c4118fc5af2665c4757068c6b9a17750aff Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Mon, 12 Mar 2018 22:25:22 +0800 Subject: [PATCH] docs: update exampleSite * change default paginate * remove some `` * remove excess comments --- exampleSite/config.toml | 4 ++-- exampleSite/content/about.md | 3 --- exampleSite/content/post/chinese-preview.md | 13 ++----------- exampleSite/content/post/english-preview.md | 12 ++---------- exampleSite/content/post/even-preview.md | 11 +---------- exampleSite/content/post/japanese-preview.md | 13 ++----------- exampleSite/content/post/shortcodes.md | 10 ---------- exampleSite/content/post/syntax-highlighting.md | 9 +-------- 8 files changed, 10 insertions(+), 65 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8d8c433..fc1aae3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -7,7 +7,7 @@ enableEmoji = true theme = "even" hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文 -paginate = 3 # 首页每页显示的文章数 +paginate = 5 # 首页每页显示的文章数 disqusShortname = "" # disqus_shortname googleAnalytics = "" # UA-XXXXXXXX-X copyright = "" # default: author.name ↓ # 默认为下面配置的author.name ↓ @@ -53,7 +53,7 @@ copyright = "" # default: author.name ↓ # 默认为下面配 description = "Hugo theme even example site." # paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目,建议修改为一个较大的值 - archivePaginate = 3 + archivePaginate = 5 # The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/ dateFormatToUse = "2006-01-02" diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index d9e7028..0913c18 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -5,9 +5,6 @@ lastmod: 2017-08-28T21:41:52+08:00 menu: "main" weight: 50 -# you can close something for this content if you open it in config.toml. -comment: false -mathjax: false --- Hugo is a static site engine written in Go. diff --git a/exampleSite/content/post/chinese-preview.md b/exampleSite/content/post/chinese-preview.md index 8694688..08b3096 100644 --- a/exampleSite/content/post/chinese-preview.md +++ b/exampleSite/content/post/chinese-preview.md @@ -1,5 +1,5 @@ --- -title: "中文 《长恨歌》" +title: "[中文] 《长恨歌》" date: 2017-08-30T01:37:56+08:00 lastmod: 2017-08-30T01:37:56+08:00 draft: false @@ -7,15 +7,8 @@ tags: ["preview", "中文", "tag-1"] categories: ["中文"] author: "Wikipedia" -# You can also close(false) or open(true) something for this content. -# P.S. comment can only be closed -# comment: false -# toc: false -# autoCollapseToc: false -# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright." contentCopyright: 'Creative Commons Attribution-ShareAlike License' -# reward: false -# mathjax: false + --- >《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。 @@ -30,8 +23,6 @@ contentCopyright: 'See origin' -# reward: false -# mathjax: false + --- ## Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I'll explain how Hugo uses templates and how you can organize your templates to create a theme. I won't cover using CSS to style your theme. - - We'll start with creating a new site with a very basic template. Then we'll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites. In this tutorial, commands that you enter will start with the "$" prompt. The output will follow. Lines that start with "#" are comments that I've added to explain a point. When I show updates to a file, the ":wq" on the last line means to save the file. diff --git a/exampleSite/content/post/even-preview.md b/exampleSite/content/post/even-preview.md index 98ea597..8e905d0 100644 --- a/exampleSite/content/post/even-preview.md +++ b/exampleSite/content/post/even-preview.md @@ -9,22 +9,13 @@ author: '米老朱See origin' -# reward: false -mathjax: true + --- > Copy from [《Hugo 主题 Nuo 文章样式预览》](https://laozhu.me/post/hugo-nuo-post-preview/) 这篇文章集中说明主题所支持的 Markdown 语法和 Hugo Shortcodes 插件,你也可以在这里预览到他们的样子。如果你不喜欢某些样式,可以去修改 css/ 文件夹下的 .scss 文件。 - - # 1.标题 # H1 diff --git a/exampleSite/content/post/japanese-preview.md b/exampleSite/content/post/japanese-preview.md index 6625d8d..e9c715d 100644 --- a/exampleSite/content/post/japanese-preview.md +++ b/exampleSite/content/post/japanese-preview.md @@ -1,5 +1,5 @@ --- -title: "日本語 敬語体系" +title: "[日本語] 敬語体系" date: 2017-08-30T01:53:34+08:00 lastmod: 2017-08-30T01:53:34+08:00 draft: false @@ -9,15 +9,8 @@ tags: ["preview", "日本語", "tag-4"] categories: ["日本語"] author: "Wikipedia" -# You can also close(false) or open(true) something for this content. -# P.S. comment can only be closed -# comment: false -# toc: false -# autoCollapseToc: false -# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright." contentCopyright: 'Creative Commons Attribution-ShareAlike License' -# reward: false -# mathjax: false + --- > 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに丁重語および美化語を含めた5分類を示している。 @@ -26,8 +19,6 @@ contentCopyright: '