-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
84 lines (70 loc) · 3.9 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# If you want to see the full configuration, please check `full-config.toml` .
# And see https://gohugo.io/getting-started/configuration/ .
baseURL = "/"
title = "Finalhome"
enableRobotsTXT = true
enableEmoji = true
theme = "jane"
hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
paginate = 3 # Number of articles displayed on the homepage # 首页每页显示的文章数
rssLimit = 20 # Limit Entry Count to Rss file # 限制 Rss 文章输出数量
googleAnalytics = "G-X03GCCD846" # 自定义了 _internal/google_analytics_async.html, 使用 gtags.js 方式
copyright = "" # default: author.name ↓ # 默认为下面配置的author.name ↓
# language support # en / zh-cn / other... translations present in i18n/
defaultContentLanguage = "zh-cn" # Default language to use
[languages.zh-cn]
languageCode = "zh-cn"
[author] # essential # 必需
name = "Leo Hui"
[sitemap] # essential # 必需
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
# config your menu # 配置目录
[[menu.main]]
name = "文章"
weight = 20
identifier = "archives"
url = "/post/"
[[menu.main]]
name = "分类"
weight = 40
identifier = "categories"
url = "/categories/"
[params]
since = "2016" # Site creation time # 站点建立时间
homeFullContent = false # if false, show post summaries on home page. Otherwise show full content.
rssFullContent = true # if false, Rss feed instead of the summary
# show word count and read time ? # 是否显示字数统计与阅读时间
moreMeta = true
# site info (optional) # 站点信息(可选,不需要的可以直接注释掉)
logoTitle = "FINALHOME" # default: the title value # 默认值: 上面设置的title值
description = "最初的梦想"
keywords = ["Hugo", "leohxj"]
# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
dateFormatToUse = "2006-01-02"
# 一些全局开关,你也可以在每一篇内容的 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 # 是否开启目录
photoswipe = true # see https://github.com/dimsemenov/PhotoSwipe # 是否启用PhotoSwipe(图片可点击)
contentCopyright = '<a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a>'
# Link custom CSS and JS assets
# (relative to /static/css and /static/js respectively)
customCSS = ['custom.css'] # if ['custom.css'], load '/static/css/custom.css' file
customJS = [] # if ['custom.js'], load '/static/js/custom.js' file
customFooter = '<div><a class="theme-link" href="https://beian.miit.gov.cn/" target="_blank">苏ICP备2021004874号-1</a></div>'
[params.social] # 社交链接
a-email = "mailto:[email protected]"
g-github = "https://github.com/leohxj"
c-twitter = "https://twitter.com/leohxj"
j-douban = "https://www.douban.com/people/leohxj"
# customFooter = "京ICP备10000000号-1"
[params.commentCount.disqus] # show counts of comments for Disqus
enable = false
[params.utteranc] # utteranc is a comment system based on GitHub issues.
enable = true
repo = "leohxj/blog" # The repo to store comments
issueTerm = "title"
theme="github-light"
[params.counter.busuanzi] # a Chinese visitor counter # 不蒜子计数器
enable = true