Skip to content

Commit

Permalink
feat: Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-touret committed Nov 1, 2024
1 parent 35a55ce commit 7382580
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 25 deletions.
14 changes: 0 additions & 14 deletions config/_default/author.toml

This file was deleted.

2 changes: 0 additions & 2 deletions config/_default/hugo.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ languageCode = "en"
languageName = "English"
# whether to include Chinese/Japanese/Korean
hasCJKLanguage = false
# default amount of posts in each pages
paginate = 12
# copyright description used only for seo schema
copyright = "This work is licensed under a Creative Commons Attribution 4.0 International License."
5 changes: 5 additions & 0 deletions config/_default/markup.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# whether to use HTML tags directly in the document
# 是否在文档中直接使用 HTML 标签
unsafe = true
[goldmark.extensions.passthrough]
enable = false
[goldmark.extensions.passthrough.delimiters]
block = [['\[', '\]'], ['$$', '$$']]
inline = [['\(', '\)']]
# Table Of Contents settings
# 目录设置
[tableOfContents]
Expand Down
2 changes: 2 additions & 0 deletions config/_default/pagination.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The number of pages per pager
pagerSize = 12
38 changes: 30 additions & 8 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,31 @@ enablePWA = false
license = '<a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a>'
# [Experimental] Bundle js
bundle = false
# [Experimental] cache remote images, more info: https://github.com/HEIGE-PCloud/DoIt/pull/860#issue-1574342372
# [试验性功能] 缓存图床图片,详情请见:https://github.com/HEIGE-PCloud/DoIt/pull/860#issue-1574342372
cacheRemoteImages = false

[author]
name = "Alexandre Touret"
email = ""
link = "https://blog.touret.info"
avatar = "/images/alexandre.touret.webp"
gravatarEmail = ""
links = [
{ link = { href = "https://github.com/jpanther/lynx/blob/stable/README.md", text = "View the readme", icon = "github" } },
{ link = { href = "styles/", text = "All the link styles", target = "_self" } },
{ github = "https://github.com/jpanther/lynx" },
{ twitter = "https://twitter.com/jpanther" }

]


[image]
# cache remote images for better optimisations
# 缓存图片链接到本地
cacheRemote = true
# Image resizing and optimisation
# 图片缩放和优化
optimise = true


# Header config
# 页面头部导航栏配置
[header]
Expand Down Expand Up @@ -145,9 +167,7 @@ cacheRemoteImages = false
# whether to enable the fraction extended syntax
# 是否使用 fraction 扩展语法
fraction = true
# whether to enable the fontawesome extended syntax
# 是否使用 fontawesome 扩展语法
fontawesome = true

# whether to show link to Raw Markdown content of the content
# 是否显示原始 Markdown 文档内容的链接
linkToMarkdown = true
Expand Down Expand Up @@ -181,6 +201,8 @@ cacheRemoteImages = false
# whether to enable reading time estimation
# 是否启用阅读时间估计
enableReadingTime = true
[page.instantpage]
enable = true
# Display a message at the beginning of an article to warn the reader that its content might be outdated.
# 在文章开头显示提示信息,提醒读者文章内容可能过时。
[page.outdatedArticleReminder]
Expand Down Expand Up @@ -541,10 +563,10 @@ cacheRemoteImages = false
[seo]
# image URL
# 图片 URL
image = "/images/Apple-Devices-Preview.png"
image = "/images/alexandre.touret.webp"
# thumbnail URL
# 缩略图 URL
thumbnailUrl = "/images/screenshot.png"
thumbnailUrl = "images/alexandre.touret.webp"

# Analytics config
# 网站分析配置
Expand Down
2 changes: 1 addition & 1 deletion themes/DoIt
Submodule DoIt updated 3160 files

0 comments on commit 7382580

Please sign in to comment.