aboutsummaryrefslogtreecommitdiff
path: root/exampleSite
diff options
context:
space:
mode:
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml10
-rw-r--r--exampleSite/content/post/english-preview.md2
-rw-r--r--exampleSite/content/post/even-preview.md5
-rw-r--r--exampleSite/content/post/syntax-highlighting.md8
4 files changed, 17 insertions, 8 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index ac0eb83..bdcf877 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -7,15 +7,15 @@ enableEmoji = true
theme = "even"
hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
-paginate = 3 # (可选)首页显示的文章条目数量,默认为10
+paginate = 3 # 首页每页显示的文章数
disqusShortname = "" # disqus_shortname
googleAnalytics = "" # UA-XXXXXXXX-X
copyright = "" # default: author.name ↓ # 默认为下面配置的author.name ↓
-[author] # require # 必需
+[author] # essential # 必需
name = "olOwOlo"
-[sitemap] # require # 必需
+[sitemap] # essential # 必需
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
@@ -46,12 +46,12 @@ copyright = "" # default: author.name ↓ # 默认为下面配
since = "2017" # Site creation time # 站点建立时间
- # site info (option) # 站点信息(可选)
+ # site info (optional) # 站点信息(可选,不需要的可以直接注释掉)
logoTitle = "Even" # default: the title value # 默认值: 上面设置的title值
keywords = ["Hugo", "theme","even"]
description = "Hugo theme even example site."
- # paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目
+ # paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目,建议修改为一个较大的值
archive-paginate = 3
# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
diff --git a/exampleSite/content/post/english-preview.md b/exampleSite/content/post/english-preview.md
index 18cde73..811cd6e 100644
--- a/exampleSite/content/post/english-preview.md
+++ b/exampleSite/content/post/english-preview.md
@@ -9,7 +9,7 @@ author: "Michael Henderson"
# you can close something for this content if you open it in config.toml.
comment: false
-toc: false
+# toc: false
# reward: false
mathjax: false
diff --git a/exampleSite/content/post/even-preview.md b/exampleSite/content/post/even-preview.md
index b3a7166..ab826c9 100644
--- a/exampleSite/content/post/even-preview.md
+++ b/exampleSite/content/post/even-preview.md
@@ -4,13 +4,14 @@ date: 2017-08-23T18:03:09+08:00
lastmod: 2017-08-23T18:03:09+08:00
draft: false
tags: ["preview", "Theme preview", "tag-3"]
-categories: ["Theme preview"]
+categories: ["Theme preview", "category-2", "category-3"]
weight: 10
# you can close something for this content if you open it in config.toml.
comment: false
# toc: false
+autoCollapseToc: false
# reward: false
# mathjax: false
@@ -137,7 +138,7 @@ if (document.getElementById('my-player') !== null) {
带标题的图片,如下图👇
-{{% figure src="https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png" alt="hugo even showcase" title="showcase.png" %}}
+{{% figure class="center" src="https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png" alt="hugo even showcase" title="showcase.png" %}}
## 8. 表格
diff --git a/exampleSite/content/post/syntax-highlighting.md b/exampleSite/content/post/syntax-highlighting.md
index c9b4490..686ba08 100644
--- a/exampleSite/content/post/syntax-highlighting.md
+++ b/exampleSite/content/post/syntax-highlighting.md
@@ -33,6 +33,14 @@ public class HelloWorld {
}
```
+```kotlin
+package hello
+
+fun main(args: Array<String>) {
+ println("Hello World!")
+}
+```
+
```c
#include <stdio.h>