Skip to content

Commit 3b80ac4

Browse files
committed
feature: 添加 Even 主题和 Hugo 配置
Hugo 配置是按照 Even 主题来配置的
1 parent fc40e5c commit 3b80ac4

File tree

4 files changed

+152
-0
lines changed

4 files changed

+152
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
_site/
22
build/
3+
public/
4+
5+
# Local Netlify folder
6+
.netlify

.gitmodules

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
[submodule "themes/even"]
3+
path = themes/even
4+
url = https://github.com/olOwOlo/hugo-theme-even.git

config.toml

+143
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
baseURL = "https://affectionate-tesla-fb7bad.netlify.com"
2+
3+
title = "cdlug"
4+
theme = "even"
5+
6+
languageCode = "zh-cn"
7+
defaultContentLanguage = "zh-cn"
8+
hasCJKLanguage = true # en / zh-cn / ... (This field determines which i18n file to use)
9+
10+
enableRobotsTXT = true
11+
enableEmoji = true
12+
13+
enableGitInfo = false # use git commit log to generate lastmod record # 可根据 Git 中的提交生成最近更新记录。
14+
15+
pygmentsCodefences = true
16+
pygmentsUseClasses = true
17+
18+
paginate = 10 # 首页每页显示的文章数
19+
googleAnalytics = "" # UA-XXXXXXXX-X
20+
copyright = "" # default: author.name ↓ # 默认为下面配置的author.name ↓
21+
22+
[permalinks]
23+
post = "/:year/:month/:day/:slug"
24+
pages = "/:slug"
25+
26+
[author] # essential # 必需
27+
name = "CDLUG"
28+
29+
[sitemap] # essential # 必需
30+
changefreq = "weekly"
31+
priority = 0.5
32+
filename = "sitemap.xml"
33+
34+
[[menu.main]]
35+
name = "博客"
36+
weight = 10
37+
identifier = "post"
38+
url = "/post/"
39+
[[menu.main]]
40+
name = "关于"
41+
weight = 20
42+
identifier = "about"
43+
url = "/about"
44+
[[menu.main]]
45+
name = "财务状况"
46+
weight = 30
47+
identifier = "finance"
48+
url = "/finance"
49+
[[menu.main]]
50+
name = "荣耀堂"
51+
weight = 40
52+
identifier = "hall-of-fame"
53+
url = "/hall-of-fame"
54+
55+
[params]
56+
version = "4.x" # Used to give a friendly message when you have an incompatible update
57+
debug = false # If true, load `eruda.min.js`. See https://github.com/liriliri/eruda
58+
59+
since = "2016" # Site creation time # 站点建立时间
60+
61+
# site info (optional) # 站点信息(可选,不需要的可以直接注释掉)
62+
logoTitle = "CDLUG" # default: the title value # 默认值: 上面设置的title值
63+
keywords = ["LUG", "Linux User Group", "Chengdu"]
64+
description = "Chengdu Linux User Group"
65+
66+
# paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目,建议修改为一个较大的值
67+
archivePaginate = 20
68+
69+
# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
70+
dateFormatToUse = "2006-01-02"
71+
72+
# show word count and read time ? # 是否显示字数统计与阅读时间
73+
moreMeta = false
74+
75+
# Syntax highlighting by highlight.js
76+
highlightInClient = false
77+
78+
postMetaInFooter = true # contain author, lastMod, markdown link, license # 包含作者,上次修改时间,markdown链接,许可信息
79+
linkToMarkDown = false # Only effective when hugo will output .md files. # 链接到markdown原始文件(仅当允许hugo生成markdown文件时有效)
80+
contentCopyright = '' # e.g. '<a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a>'
81+
82+
baiduAnalytics = "" # Baidu Analytics
83+
baiduVerification = "" # Baidu Verification
84+
googleVerification = "" # Google Verification # 谷歌
85+
86+
# Link custom CSS and JS assets
87+
# (relative to /static/css and /static/js respectively)
88+
customCSS = []
89+
customJS = []
90+
91+
uglyURLs = false # please keep same with uglyurls setting
92+
93+
[params.publicCDN] # load these files from public cdn # 启用公共CDN,需自行定义
94+
enable = true
95+
jquery = '<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>'
96+
slideout = '<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>'
97+
fancyboxJS = '<script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>'
98+
fancyboxCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">'
99+
timeagoJS = '<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/timeago.min.js" integrity="sha256-jwCP0NAdCBloaIWTWHmW4i3snUNMHUNO+jr9rYd2iOI=" crossorigin="anonymous"></script>'
100+
timeagoLocalesJS = '<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/timeago.locales.min.js" integrity="sha256-ZwofwC1Lf/faQCzN7nZtfijVV6hSwxjQMwXL4gn9qU8=" crossorigin="anonymous"></script>'
101+
flowchartDiagramsJS = '<script src="https://cdn.jsdelivr.net/npm/[email protected]/raphael.min.js" integrity="sha256-67By+NpOtm9ka1R6xpUefeGOY8kWWHHRAKlvaTJ7ONI=" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/release/flowchart.min.js" integrity="sha256-zNGWjubXoY6rb5MnmpBNefO0RgoVYfle9p0tvOQM+6k=" crossorigin="anonymous"></script>'
102+
sequenceDiagramsCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/bramp/[email protected]/dist/sequence-diagram-min.css" integrity="sha384-6QbLKJMz5dS3adWSeINZe74uSydBGFbnzaAYmp+tKyq60S7H2p6V7g1TysM5lAaF" crossorigin="anonymous">'
103+
sequenceDiagramsJS = '<script src="https://cdn.jsdelivr.net/npm/[email protected]/webfontloader.js" integrity="sha256-4O4pS1SH31ZqrSO2A/2QJTVjTPqVe+jnYgOWUVr7EEc=" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/snap.svg-min.js" integrity="sha256-oI+elz+sIm+jpn8F/qEspKoKveTc5uKeFHNNVexe6d8=" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/underscore-min.js" integrity="sha256-obZACiHd7gkOk9iIL/pimWMTJ4W/pBsKu+oZnSeBIek=" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/gh/bramp/[email protected]/dist/sequence-diagram-min.js" integrity="sha384-8748Vn52gHJYJI0XEuPB2QlPVNUkJlJn9tHqKec6J3q2r9l8fvRxrgn/E5ZHV0sP" crossorigin="anonymous"></script>'
104+
105+
# Display a message at the beginning of an article to warn the readers that it's content may be outdated.
106+
# 在文章开头显示提示信息,提醒读者文章内容可能过时。
107+
[params.outdatedInfoWarning]
108+
enable = false
109+
hint = 30 # Display hint if the last modified time is more than these days ago. # 如果文章最后更新于这天数之前,显示提醒
110+
warn = 180 # Display warning if the last modified time is more than these days ago. # 如果文章最后更新于这天数之前,显示警告
111+
112+
[params.utterances] # https://utteranc.es/
113+
owner = "" # Your GitHub ID
114+
repo = "" # The repo to store comments
115+
116+
[params.social] # 社交链接
117+
a-email = "mailto:[email protected]"
118+
g-github = "http://localhost:1313"
119+
120+
# See https://gohugo.io/about/hugo-and-gdpr/
121+
[privacy]
122+
[privacy.googleAnalytics]
123+
anonymizeIP = true # 12.214.31.144 -> 12.214.31.0
124+
[privacy.youtube]
125+
privacyEnhanced = true
126+
127+
# 将下面这段配置取消注释可以使 hugo 生成 .md 文件
128+
# Uncomment these options to make hugo output .md files.
129+
#[mediaTypes]
130+
# [mediaTypes."text/plain"]
131+
# suffixes = ["md"]
132+
#
133+
#[outputFormats.MarkDown]
134+
# mediaType = "text/plain"
135+
# isPlainText = true
136+
# isHTML = false
137+
#
138+
#[outputs]
139+
# home = ["HTML", "RSS"]
140+
# page = ["HTML", "MarkDown"]
141+
# section = ["HTML", "RSS"]
142+
# taxonomy = ["HTML", "RSS"]
143+
# taxonomyTerm = ["HTML"]

themes/even

Submodule even added at d39d3e4

0 commit comments

Comments
 (0)