aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml4
-rw-r--r--exampleSite/content/about.md3
-rw-r--r--exampleSite/content/post/chinese-preview.md13
-rw-r--r--exampleSite/content/post/english-preview.md12
-rw-r--r--exampleSite/content/post/even-preview.md11
-rw-r--r--exampleSite/content/post/japanese-preview.md13
-rw-r--r--exampleSite/content/post/shortcodes.md10
-rw-r--r--exampleSite/content/post/syntax-highlighting.md9
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: '<a rel="license noopener" href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" target="_blank">Creative Commons Attribution-ShareAlike License</a>'
-# reward: false
-# mathjax: false
+
---
>《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。
@@ -30,8 +23,6 @@ contentCopyright: '<a rel="license noopener" href="https://en.wikipedia.org/wiki
云鬓花颜金步摇,芙蓉帐暖度春宵。春宵苦短日高起,从此君王不早朝。
-<!--more-->
-
承欢侍宴无闲暇,春从春游夜专夜。后宫佳丽三千人,三千宠爱在一身。
金屋妆成娇侍夜,玉楼宴罢醉和春。姊妹弟兄皆列士,可怜光彩生门户。
diff --git a/exampleSite/content/post/english-preview.md b/exampleSite/content/post/english-preview.md
index 032f14f..02693ab 100644
--- a/exampleSite/content/post/english-preview.md
+++ b/exampleSite/content/post/english-preview.md
@@ -1,5 +1,5 @@
---
-title: "English Creating a New Theme"
+title: "[English] Creating a New Theme"
date: 2017-08-31T15:43:48+08:00
lastmod: 2017-08-31T15:43:48+08:00
draft: false
@@ -7,23 +7,15 @@ tags: ["preview", "English", "tag-2"]
categories: ["English"]
author: "Michael Henderson"
-# You can also close(false) or open(true) something for this content.
-# P.S. comment can only be closed
-# comment: false
-# toc: false
autoCollapseToc: true
-# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright."
contentCopyright: '<a href="https://github.com/gohugoio/hugoBasicExample" rel="noopener" target="_blank">See origin</a>'
-# 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.
-<!--more-->
-
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: '<a href="https://laozhu.me" rel="noopener" target="_blank">米老朱</a
weight: 10
-# 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: '<a href="https://laozhu.me/post/hugo-nuo-post-preview/" rel="noopener" target="_blank">See origin</a>'
-# reward: false
-mathjax: true
+
---
> Copy from [《Hugo 主题 Nuo 文章样式预览》](https://laozhu.me/post/hugo-nuo-post-preview/)
这篇文章集中说明主题所支持的 Markdown 语法和 Hugo Shortcodes 插件,你也可以在这里预览到他们的样子。如果你不喜欢某些样式,可以去修改 css/ 文件夹下的 .scss 文件。
-<!--more-->
-
# 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: '<a rel="license noopener" href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" target="_blank">Creative Commons Attribution-ShareAlike License</a>'
-# reward: false
-# mathjax: false
+
---
> 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに丁重語および美化語を含めた5分類を示している。
@@ -26,8 +19,6 @@ contentCopyright: '<a rel="license noopener" href="https://en.wikipedia.org/wiki
尊敬語は、動作の主体を高めることで、主体への敬意を表す言い方である。動詞に「お(ご)~になる」を付けた形、また、助動詞「(ら)れる」を付けた形などが用いられる。たとえば、動詞「取る」の尊敬形として、「(先生が)お取りになる」「(先生が)取られる」などが用いられる。
-<!--more-->
-
語によっては、特定の尊敬語が対応するものもある。たとえば、「言う」の尊敬語は「おっしゃる」、「食べる」の尊敬語は「召し上がる」、「行く・来る・いる」の尊敬語は「いらっしゃる」である。
# 謙譲語
diff --git a/exampleSite/content/post/shortcodes.md b/exampleSite/content/post/shortcodes.md
index bdd742d..4b05fe7 100644
--- a/exampleSite/content/post/shortcodes.md
+++ b/exampleSite/content/post/shortcodes.md
@@ -6,16 +6,6 @@ draft: false
tags: ["shortcodes"]
categories: ["shortcodes"]
-# 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
-# postMetaInFooter: false
-# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright."
-# contentCopyright: false
-# reward: false
-# mathjax: false
---
# center, right, left
diff --git a/exampleSite/content/post/syntax-highlighting.md b/exampleSite/content/post/syntax-highlighting.md
index e53d5c1..b2f0770 100644
--- a/exampleSite/content/post/syntax-highlighting.md
+++ b/exampleSite/content/post/syntax-highlighting.md
@@ -6,15 +6,8 @@ draft: false
tags: ["preview", "Syntax Highlighting", "tag-5"]
categories: ["Syntax Highlighting"]
-# 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: false
-# reward: false
-# mathjax: false
+
---