diff options
-rw-r--r-- | exampleSite/config.toml | 10 | ||||
-rw-r--r-- | exampleSite/content/post/english-preview.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/even-preview.md | 5 | ||||
-rw-r--r-- | exampleSite/content/post/syntax-highlighting.md | 8 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 2 | ||||
-rw-r--r-- | src/package.json | 2 |
7 files changed, 20 insertions, 11 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> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f590d6c..086adee 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -57,7 +57,7 @@ {{- end }} <!-- Styles --> -<link href="{{ "dist/even.min.css?v=2.6.6" | relURL }}" rel="stylesheet"> +<link href="{{ "dist/even.min.css?v=2.7.0" | relURL }}" rel="stylesheet"> {{ if .Site.Params.bootcdn -}} {{ if .Site.Params.fancybox }}<link href="https://cdn.bootcss.com/fancybox/3.1.20/jquery.fancybox.min.css" rel="stylesheet" crossorigin="anonymous">{{ end }} {{- else if .Site.Params.publicCDN.enable -}} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 2d06c0e..6d4b51b 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -13,7 +13,7 @@ <script type="text/javascript" src="{{ "lib/slideout/slideout-1.0.1.min.js" | relURL }}"></script> {{ if .Site.Params.fancybox }}<script type="text/javascript" src="{{ "lib/fancybox/jquery.fancybox-3.1.20.min.js" | relURL }}"></script>{{ end }} {{- end }} -<script type="text/javascript" src="{{ "dist/even.min.js?v=2.6.6" | relURL }}"></script> +<script type="text/javascript" src="{{ "dist/even.min.js?v=2.7.0" | relURL }}"></script> {{- if and (and .Site.Params.mathjax (ne .Params.mathjax false)) (or .IsPage .IsHome) }} <script type="text/javascript"> diff --git a/src/package.json b/src/package.json index 1e5c9a7..69bb8fe 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "even-src", - "version": "2.6.6", + "version": "2.7.0", "description": "even source file", "main": "index.js", "scripts": { |