mirror of
https://github.com/flysnow-org/maupassant-hugo.git
synced 2026-08-24 15:28:55 +00:00
1d4222ed2f
* Update README * 增加从首页隐藏选项 * 可根据设置隐藏文章 * 增加Waline评论系统
107 lines
3.6 KiB
TOML
107 lines
3.6 KiB
TOML
baseURL = "https://www.flysnow.org"
|
|
languageCode = "zh-CN"
|
|
title = "飞雪无情的博客"
|
|
theme = "maupassant"
|
|
googleAnalytics = "" # UA-XXXXXXXX-X/G-XXXXXXXXXX
|
|
|
|
## 保持分类的原始名字(false会做转小写处理)
|
|
preserveTaxonomyNames = true
|
|
## 是否禁止URL Path转小写
|
|
disablePathToLower = true
|
|
|
|
hasCJKLanguage = true
|
|
summaryLength = 140
|
|
|
|
disqusShortname = "yourdiscussshortname" ## 是否开启disqus评论,不要和utteranc同时开启
|
|
|
|
[author]
|
|
name = "飞雪无情"
|
|
|
|
[params]
|
|
author = "飞雪无情"
|
|
subtitle = "专注于Android、Java、Go语言(golang)、移动互联网、项目管理、软件架构"
|
|
keywords = "golang,go语言,go语言笔记,飞雪无情,java,android,博客,项目管理,python,软件架构,公众号,小程序"
|
|
description = "专注于IT互联网,包括但不限于Go语言(golang)、Java、Android、Python、项目管理、抖音分析、软件架构等"
|
|
busuanzi = true #启用不算子网页统计
|
|
googleAd = "" #ca-pub-xxxxxxxxxxxxxx
|
|
localSearch = true # 启用本地搜索
|
|
|
|
# 这里我存放在了主题的static文件夹里,根目录的似乎也可以
|
|
customCSS = ['douban.css', 'other.css']
|
|
# if ['custom.css'], load '/static/css/custom.css' file
|
|
customJS = ['douban.js']
|
|
# if ['custom.js'], load '/static/js/custom.js' file
|
|
|
|
# 全局开关,你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能
|
|
toc = true # 是否开启目录
|
|
|
|
## 友情链接,可以多个
|
|
|
|
[[params.links]]
|
|
title = "飞雪无情的博客"
|
|
name = "飞雪无情的博客"
|
|
url = "https://www.flysnow.org/"
|
|
|
|
[[params.links]]
|
|
title = "Android Gradle权威指南"
|
|
name = "Android Gradle权威指南"
|
|
url = "http://yuedu.baidu.com/ebook/14a722970740be1e640e9a3e"
|
|
|
|
## 侧边栏广告位
|
|
[[params.ads]]
|
|
title = "【2019双12】ALL IN CLoud 低至1折"
|
|
url = "https://www.aliyun.com/minisite/goods?userCode=jdg9oj97&share_source=copy_link"
|
|
img = "https://img.alicdn.com/tfs/TB1_rYHo7P2gK0jSZPxXXacQpXa-690-388.jpg"
|
|
[[params.ads]]
|
|
title = "助力产业智慧升级,云服务器首年88元起,更有千元代金券礼包免费领!"
|
|
url = "https://cloud.tencent.com/act/cps/redirect?redirect=1048&cps_key=14ff722692ac784fa8c3301c8c28d924&from=console"
|
|
img = "https://upload-dianshi-1255598498.file.myqcloud.com/345-7c71532bd4935fbdd9a67c1a71e577b1767b805c.200%E7%89%88%E6%9C%ACB.jpg"
|
|
[[params.ads]]
|
|
title = "【渠道专享低折扣】11月特惠 限时2折"
|
|
url = "https://www.aliyun.com/acts/limit-buy?userCode=jdg9oj97"
|
|
img = "https://img.alicdn.com/tfs/TB1hblJl7Y2gK0jSZFgXXc5OFXa-750-400.jpg"
|
|
|
|
## 配置 utteranc评论,教程参考 https://utteranc.es/
|
|
[params.utteranc]
|
|
enable = true
|
|
repo = "your github repo" ##换成自己得
|
|
issueTerm = "pathname"
|
|
theme = "github-light"
|
|
## 配置 waline 评论系统,教程参考 https://waline.js.org/
|
|
[params.waline]
|
|
enable = false
|
|
placeholder = "说点什么吧..."
|
|
serverURL = "Your waline serverURL" #换成你的serverURL
|
|
## 开启版权声明,协议名字和链接都可以换
|
|
[params.cc]
|
|
name = "知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议"
|
|
link = "https://creativecommons.org/licenses/by-nc-nd/4.0/"
|
|
|
|
## 配置代码高亮
|
|
[markup]
|
|
[markup.highlight]
|
|
lineNos = true
|
|
style = "github"
|
|
|
|
## 配置网站菜单
|
|
|
|
[menu]
|
|
|
|
[[menu.main]]
|
|
identifier = "tools"
|
|
name = "工具"
|
|
url = "/tools/"
|
|
weight = 2
|
|
|
|
[[menu.main]]
|
|
identifier = "archives"
|
|
name = "归档"
|
|
url = "/archives/"
|
|
weight = 3
|
|
|
|
[[menu.main]]
|
|
identifier = "about"
|
|
name = "关于"
|
|
url = "/about/"
|
|
weight = 4
|