diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-12-06 20:34:22 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-12-06 20:34:22 +0800 |
commit | 1bb6eea8a84cbf67a7396abb63223f6a719aad60 (patch) | |
tree | e74741aaa70ad3002ff64aff4843a10f10cf6212 /exampleSite | |
parent | 8c078104847c7f0698407a3b97ab106f43d6aad2 (diff) |
feat: allow set something for a single content
* Now, you can open or close toc, copyright, reward and mathjax for a single content.
* Also change the default global settings: autoCollapseToc = true -> false; mathjax = true -> false
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 8 | ||||
-rw-r--r-- | exampleSite/content/_index.md | 3 | ||||
-rw-r--r-- | exampleSite/content/post/chinese-preview.md | 14 | ||||
-rw-r--r-- | exampleSite/content/post/english-preview.md | 13 | ||||
-rw-r--r-- | exampleSite/content/post/even-preview.md | 16 | ||||
-rw-r--r-- | exampleSite/content/post/japanese-preview.md | 13 | ||||
-rw-r--r-- | exampleSite/content/post/syntax-highlighting.md | 13 |
7 files changed, 41 insertions, 39 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index bdcf877..373a33c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -60,13 +60,13 @@ copyright = "" # default: author.name ↓ # 默认为下面配 # show word count and read time ? # 是否显示字数统计与阅读时间 moreMeta = false - # 一些全局开关,你可以在每一篇内容的 front matter 中单独关闭某些选项 - # Some global options, you can close something in front matter. + # 一些全局开关,你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能,在 archetypes/default.md 查看更多信息。 + # Some global options, you can also close or open something in front matter for a single post, see more information from `archetypes/default.md`. toc = true # 是否开启目录 - autoCollapseToc = true # Auto expand and collapse toc # 目录自动展开/折叠 + autoCollapseToc = false # Auto expand and collapse toc # 目录自动展开/折叠 fancybox = true # see https://github.com/fancyapps/fancybox # 是否启用fancybox(图片可点击) bootcdn = false # In china. @Deprecated: use [params.publicCDN] # 是否使用bootcdn(@Deprecated: 请使用[params.publicCDN]) - mathjax = true # see https://www.mathjax.org/ # 是否使用mathjax(数学公式) + mathjax = false # see https://www.mathjax.org/ # 是否使用mathjax(数学公式) linkToMarkDown = false # if you config contentCopyright and hugo output .md files. # 是否在链接到markdown原始文件(如果你配置了下面的许可协议并允许hugo生成markdown文件) contentCopyright = '<a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a>' diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md deleted file mode 100644 index 8acc5aa..0000000 --- a/exampleSite/content/_index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -mathjax: false ---- diff --git a/exampleSite/content/post/chinese-preview.md b/exampleSite/content/post/chinese-preview.md index 5371f9b..8694688 100644 --- a/exampleSite/content/post/chinese-preview.md +++ b/exampleSite/content/post/chinese-preview.md @@ -6,14 +6,16 @@ draft: false tags: ["preview", "中文", "tag-1"] categories: ["中文"] author: "Wikipedia" -# you can close something for this content if you open it in config.toml. -comment: false -# toc: false -# reward: false -mathjax: false -# you can define another contentCopyright. e.g. contentCopyright: "This is an another copyright." +# 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 --- >《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。 diff --git a/exampleSite/content/post/english-preview.md b/exampleSite/content/post/english-preview.md index 811cd6e..032f14f 100644 --- a/exampleSite/content/post/english-preview.md +++ b/exampleSite/content/post/english-preview.md @@ -7,14 +7,15 @@ tags: ["preview", "English", "tag-2"] categories: ["English"] author: "Michael Henderson" -# you can close something for this content if you open it in config.toml. -comment: false +# You can also close(false) or open(true) something for this content. +# P.S. comment can only be closed +# comment: false # toc: false -# reward: false -mathjax: false - -# you can define another contentCopyright. e.g. contentCopyright: "This is an another copyright." +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 diff --git a/exampleSite/content/post/even-preview.md b/exampleSite/content/post/even-preview.md index ab826c9..98ea597 100644 --- a/exampleSite/content/post/even-preview.md +++ b/exampleSite/content/post/even-preview.md @@ -5,19 +5,19 @@ lastmod: 2017-08-23T18:03:09+08:00 draft: false tags: ["preview", "Theme preview", "tag-3"] categories: ["Theme preview", "category-2", "category-3"] +author: '<a href="https://laozhu.me" rel="noopener" target="_blank">米老朱</a>' weight: 10 -# you can close something for this content if you open it in config.toml. -comment: false +# 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 -# reward: false -# mathjax: false - -# you can define another contentCopyright. e.g. contentCopyright: "This is an another copyright." -author: '<a href="https://laozhu.me" rel="noopener" target="_blank">米老朱</a>' +# 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/) diff --git a/exampleSite/content/post/japanese-preview.md b/exampleSite/content/post/japanese-preview.md index 7f8473e..6625d8d 100644 --- a/exampleSite/content/post/japanese-preview.md +++ b/exampleSite/content/post/japanese-preview.md @@ -9,14 +9,15 @@ tags: ["preview", "日本語", "tag-4"] categories: ["日本語"] author: "Wikipedia" -# you can close something for this content if you open it in config.toml. -comment: false +# You can also close(false) or open(true) something for this content. +# P.S. comment can only be closed +# comment: false # toc: false -# reward: false -mathjax: false - -# you can define another contentCopyright. e.g. contentCopyright: "This is an another copyright." +# 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分類を示している。 diff --git a/exampleSite/content/post/syntax-highlighting.md b/exampleSite/content/post/syntax-highlighting.md index 686ba08..e53d5c1 100644 --- a/exampleSite/content/post/syntax-highlighting.md +++ b/exampleSite/content/post/syntax-highlighting.md @@ -6,14 +6,15 @@ draft: false tags: ["preview", "Syntax Highlighting", "tag-5"] categories: ["Syntax Highlighting"] -# you can close something for this content if you open it in config.toml. -comment: false +# You can also close(false) or open(true) something for this content. +# P.S. comment can only be closed +# comment: false toc: false -# reward: false -mathjax: false - -# you can define another contentCopyright. e.g. contentCopyright: "This is an another copyright." +# autoCollapseToc: false +# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright." # contentCopyright: false +# reward: false +# mathjax: false --- |