-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
134 lines (117 loc) · 5.96 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# This is a simple configuration.
# If you want to see the full configuration, please check `full-config.toml` .
# And see https://gohugo.io/getting-started/configuration/ .
baseURL = "https://www.rool.me"
languageCode = "zh-cmn-Hans"
title = "rool - 我的生活经历"
enableRobotsTXT = true
enableEmoji = true
theme = "jane"
hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
paginate = 10 # Number of articles displayed on the homepage # 首页每页显示的文章数
rssLimit = 20 # Limit Entry Count to Rss file # 限制 Rss 文章输出数量
#disqusShortname = "" # disqus_shortname
#googleAnalytics = "" # UA-XXXXXXXX-X
copyright = 'rool - 我的生活经历 | <img style="width: 18px;" src="/备案图标.png"><a href="https://beian.mps.gov.cn/#/query/webSearch?code=51012202001920" rel="noreferrer" target="_blank">川公网安备51012202001920</a><a style="margin-left: 20px;" href="https://beian.miit.gov.cn/">蜀ICP备18031429号-2</a>' # default: author.name ↓ # 默认为下面配置的author.name ↓
# Highlight options. See https://gohugo.io/content-management/syntax-highlighting/
pygmentsStyle = "github-dark" # Pygments code highlighting style
pygmentsCodeFences = true # Enable syntax highlighting with GitHub flavoured code fences
pygmentsUseClasses = false # Use CSS classes to format highlighted code
pygmentsCodefencesGuessSyntax = true
pygmentsOptions = "linenos=table"
# language support # en / zh-cn / other... translations present in i18n/
defaultContentLanguage = "zh-cn" # Default language to use
[languages.zh-cn]
languageCode = "zh-cn"
[sitemap] # essential # 必需
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
[[menu.main]] # config your menu # 配置目录
name = "首页"
weight = 10
identifier = "home"
url = "/"
[[menu.main]]
name = "思绪"
weight = 20
url = "/categories/思绪"
[[menu.main]]
name = "技术"
weight = 30
url = "/categories/技术"
[[menu.main]]
name = "生活"
weight = 40
url = "/categories/生活"
[[menu.main]]
name = "归档"
weight = 50
url = "/post/"
[params]
since = "2014" # 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
author.name = "rool" # essential # 必需
author.email = "[email protected]" # optional, for RSS # 可选
author.url = "/about" # optional # 可选
# site info (optional) # 站点信息(可选,不需要的可以直接注释掉)
logoTitle = "rool - 我的生活经历" # default: the title value # 默认值: 上面设置的title值
keywords = ["linux", "笔记", "博客", "blog", "Hugo"]
description = "这是我的生活."
# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
dateFormatToUse = "2006-01-02"
# show word count and read time ? # 是否显示字数统计与阅读时间
moreMeta = true
# 一些全局开关,你也可以在每一篇内容的 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 = [] # if ['custom.css'], load '/static/css/custom.css' file
customJS = [] # if ['custom.js'], load '/static/js/custom.js' file
[params.social] # 社交链接
a-email = "mailto:[email protected]"
# b-stack-overflow = "http://localhost:1313"
# c-twitter = "http://localhost:1313"
# d-facebook = "http://localhost:1313"
# e-linkedin = "http://localhost:1313"
# f-google = "http://localhost:1313"
g-github = "https://github.com/hrool"
# h-weibo = "http://localhost:1313"
# i-zhihu = "http://localhost:1313"
# j-douban = "http://localhost:1313"
# k-pocket = "http://localhost:1313"
# l-tumblr = "http://localhost:1313"
# m-instagram = "http://localhost:1313"
# n-gitlab = "http://localhost:1313"
# o-goodreads = "http://localhost:1313"
# p-coding = "http://localhost:1313"
# q-bilibili = "http://localhost:1313"
# r-codeforces = "http://localhost:1313"
# s-mastodon = "http://localhost:1313"
# [params.utteranc] # utteranc is a comment system based on GitHub issues. see https://utteranc.es
# enable = true
# repo = "hrool/blog.rool.me" # The repo to store comments
# issueTerm = "pathname"
[params.reward] # 文章打赏
enable = true
wechat = "/img/reward_wechat.jpg" # 微信二维码
# alipay = "/img/" # 支付宝二维码
[params.giscus] # giscus is a comment system based on GitHub Discussions. see https://giscus.app
enable = true
repo = "hrool/blog.rool.me"
repoId = "MDEwOlJlcG9zaXRvcnkxMDEwNjU5NTY="
category = "Announcements"
categoryId = "DIC_kwDOBgYk5M4CiZzH"
mapping = "pathname" # comment value is the default value
strict = 0
reactionsEnabled = 1
emitMetadata = 0
inputPosition = "bottom"
theme = "light"
lang = "zh-CN"
lazyLoading = false
crossorigin="anonymous"