feature(config): add config for home profile/posts
This commit is contained in:
@@ -112,84 +112,45 @@ dateFormatToUse = "2006-01-02"
|
||||
keywords = ["Theme", "Hugo"]
|
||||
# site default theme ("light", "dark", "auto")
|
||||
defaultTheme = "auto"
|
||||
# desktop header mode ("fixed", "normal", "auto")
|
||||
desktopHeaderMode = "fixed"
|
||||
# mobile header mode ("fixed", "normal", "auto")
|
||||
mobileHeaderMode = "auto"
|
||||
|
||||
# Home Page Info
|
||||
##home mode ("post", "other")
|
||||
home_mode = "post"
|
||||
## special amount of posts in each home post page
|
||||
home_paginate = 6
|
||||
## URL of avatar shown in home page
|
||||
avatar = "images/avatar.png"
|
||||
## subtitle shown in home page
|
||||
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
|
||||
|
||||
# whether to show social share links in post page
|
||||
socialShare = true
|
||||
|
||||
# Footer CopyRight Info
|
||||
## Site creation time
|
||||
since = 2019
|
||||
## ICP info only in China (HTML format is allowed)
|
||||
icp = ""
|
||||
## license info (HTML format is allowed)
|
||||
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>'
|
||||
|
||||
# public git repo url to link lastmod git commit only then enableGitInfo is true
|
||||
gitRepo = ""
|
||||
|
||||
# mathematical formulas (KaTeX)
|
||||
[params.math]
|
||||
enable = true
|
||||
block_left_delimiter = ""
|
||||
block_right_delimiter = ""
|
||||
inline_left_delimiter = "$"
|
||||
inline_right_delimiter = "$"
|
||||
# KaTeX extension copy_tex
|
||||
copy_tex = true
|
||||
# KaTeX extension mhchem
|
||||
mhchem = true
|
||||
# Header info
|
||||
[params.header]
|
||||
# desktop header mode ("fixed", "normal", "auto")
|
||||
desktopMode = "fixed"
|
||||
# mobile header mode ("fixed", "normal", "auto")
|
||||
mobileMode = "auto"
|
||||
|
||||
# whether to show link to Raw Markdown content of the post
|
||||
linkToMarkdown = true
|
||||
# Footer Copyright Info
|
||||
[params.footer]
|
||||
# Site creation time
|
||||
since = 2019
|
||||
# ICP info only in China (HTML format is allowed)
|
||||
icp = ""
|
||||
# license info (HTML format is allowed)
|
||||
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>'
|
||||
|
||||
# site verification code for Google/Bing/Yandex/Pinterest/Baidu
|
||||
google_verification = ""
|
||||
bing_verification = ""
|
||||
yandex_verification = ""
|
||||
pinterest_verification = ""
|
||||
baidu_verification = ""
|
||||
|
||||
# CSS and JS Files CDN
|
||||
[params.cdn]
|
||||
## for example '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css" integrity="sha256-fdcFNFiBMrNfWL6OcAGQz6jDgNTRxnrLEd4vJYFWScE=" crossorigin="anonymous">'
|
||||
fontawesome_free_css = ''
|
||||
animate_css = ''
|
||||
gitalk_css = ''
|
||||
gitalk_js = ''
|
||||
valine_js = ''
|
||||
lazysizes_js = ''
|
||||
smooth_scroll_js = ''
|
||||
katex_css = ''
|
||||
katex_js = ''
|
||||
katex_auto_render_js = ''
|
||||
katex_copy_tex_css = ''
|
||||
katex_copy_tex_js = ''
|
||||
katex_mhchem_js = ''
|
||||
mermaid_js = ''
|
||||
echarts_js = ''
|
||||
echarts_macarons_js = ''
|
||||
typeit_js = ''
|
||||
aplayer_css = ''
|
||||
aplayer_js = ''
|
||||
meting_js = ''
|
||||
|
||||
# Gravatar Info for preferred avatar in home page
|
||||
[params.gravatar]
|
||||
email = ""
|
||||
# Home Page Info
|
||||
[params.home]
|
||||
# Home Page Profile
|
||||
[params.home.profile]
|
||||
enable = true
|
||||
# Gravatar Email for preferred avatar in home page
|
||||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "images/avatar.png"
|
||||
# subtitle shown in home page
|
||||
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
# whether to show social links
|
||||
social = true
|
||||
# Home Page Posts
|
||||
[params.home.posts]
|
||||
enable = true
|
||||
# special amount of posts in each home posts page
|
||||
paginate = 6
|
||||
|
||||
# Social Info in home page
|
||||
[params.social]
|
||||
@@ -257,6 +218,13 @@ dateFormatToUse = "2006-01-02"
|
||||
#XMPP = "xxxx"
|
||||
#Matrix ="xxxx"
|
||||
|
||||
# Page config
|
||||
[params.page]
|
||||
# whether to show social share links in post page
|
||||
socialShare = true
|
||||
# whether to show link to Raw Markdown content of the post
|
||||
linkToMarkdown = true
|
||||
|
||||
# Social Share Links in post page
|
||||
[params.share]
|
||||
enable = true
|
||||
@@ -271,6 +239,50 @@ dateFormatToUse = "2006-01-02"
|
||||
#VKontakte = true
|
||||
#Weibo = true
|
||||
|
||||
# mathematical formulas (KaTeX)
|
||||
[params.math]
|
||||
enable = true
|
||||
block_left_delimiter = ""
|
||||
block_right_delimiter = ""
|
||||
inline_left_delimiter = "$"
|
||||
inline_right_delimiter = "$"
|
||||
# KaTeX extension copy_tex
|
||||
copy_tex = true
|
||||
# KaTeX extension mhchem
|
||||
mhchem = true
|
||||
|
||||
# CSS and JS Files CDN
|
||||
[params.cdn]
|
||||
## for example '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css" integrity="sha256-fdcFNFiBMrNfWL6OcAGQz6jDgNTRxnrLEd4vJYFWScE=" crossorigin="anonymous">'
|
||||
fontawesome_free_css = ''
|
||||
animate_css = ''
|
||||
gitalk_css = ''
|
||||
gitalk_js = ''
|
||||
valine_js = ''
|
||||
lazysizes_js = ''
|
||||
smooth_scroll_js = ''
|
||||
katex_css = ''
|
||||
katex_js = ''
|
||||
katex_auto_render_js = ''
|
||||
katex_copy_tex_css = ''
|
||||
katex_copy_tex_js = ''
|
||||
katex_mhchem_js = ''
|
||||
mermaid_js = ''
|
||||
echarts_js = ''
|
||||
echarts_macarons_js = ''
|
||||
typeit_js = ''
|
||||
aplayer_css = ''
|
||||
aplayer_js = ''
|
||||
meting_js = ''
|
||||
|
||||
# site verification code for Google/Bing/Yandex/Pinterest/Baidu
|
||||
[params.verification]
|
||||
google = ""
|
||||
bing = ""
|
||||
yandex = ""
|
||||
pinterest = ""
|
||||
baidu = ""
|
||||
|
||||
# Publisher Info just for SEO
|
||||
[params.publisher]
|
||||
name = "xxxx"
|
||||
@@ -291,39 +303,43 @@ dateFormatToUse = "2006-01-02"
|
||||
width = 800
|
||||
height = 600
|
||||
|
||||
# Disqus Comment Config (https://disqus.com/)
|
||||
[params.disqus]
|
||||
# Disqus shortname to use Disqus in posts
|
||||
shortname = "dillonzq"
|
||||
# Comment Config
|
||||
[params.comment]
|
||||
enable = true
|
||||
|
||||
# Gittalk Comment Config (https://github.com/gitalk/gitalk)
|
||||
[params.gitalk]
|
||||
owner = ""
|
||||
repo = ""
|
||||
clientId = ""
|
||||
clientSecret = ""
|
||||
# Disqus Comment Config (https://disqus.com/)
|
||||
[params.comment.disqus]
|
||||
# Disqus shortname to use Disqus in posts
|
||||
shortname = "dillonzq"
|
||||
|
||||
# Valine Comment Config (https://github.com/xCss/Valine)
|
||||
[params.valine]
|
||||
enable = false
|
||||
appId = ""
|
||||
appKey = ""
|
||||
placeholder = "Your comment ..."
|
||||
notify = false
|
||||
verify = true
|
||||
avatar = "mp"
|
||||
#meta= ""
|
||||
pageSize = 10
|
||||
visitor = true
|
||||
recordIP = true
|
||||
# Gittalk Comment Config (https://github.com/gitalk/gitalk)
|
||||
[params.comment.gitalk]
|
||||
owner = ""
|
||||
repo = ""
|
||||
clientId = ""
|
||||
clientSecret = ""
|
||||
|
||||
# Facebook Comment Config (https://developers.facebook.com/docs/plugins/comments)
|
||||
[params.facebook]
|
||||
enable = false
|
||||
width = "100%"
|
||||
numPosts = 10
|
||||
appId = ""
|
||||
languageCode = "en_US"
|
||||
# Valine Comment Config (https://github.com/xCss/Valine)
|
||||
[params.comment.valine]
|
||||
enable = false
|
||||
appId = ""
|
||||
appKey = ""
|
||||
placeholder = "Your comment ..."
|
||||
notify = false
|
||||
verify = true
|
||||
avatar = "mp"
|
||||
#meta= ""
|
||||
pageSize = 10
|
||||
visitor = true
|
||||
recordIP = true
|
||||
|
||||
# Facebook Comment Config (https://developers.facebook.com/docs/plugins/comments)
|
||||
[params.comment.facebook]
|
||||
enable = false
|
||||
width = "100%"
|
||||
numPosts = 10
|
||||
appId = ""
|
||||
languageCode = "en_US"
|
||||
|
||||
# Privacy Info (https://gohugo.io/about/hugo-and-gdpr/)
|
||||
[privacy]
|
||||
|
||||
@@ -112,84 +112,45 @@ dateFormatToUse = "2006-01-02"
|
||||
keywords = ["Theme", "Hugo"]
|
||||
# 网站默认主题 ("light", "dark", "auto")
|
||||
defaultTheme = "auto"
|
||||
# 桌面端导航栏模式 ("fixed", "normal", "auto")
|
||||
desktopHeaderMode = "fixed"
|
||||
# 移动端导航栏模式 ("fixed", "normal", "auto")
|
||||
mobileHeaderMode = "auto"
|
||||
|
||||
# 主页信息设置
|
||||
## 主页模式 ("post", "other")
|
||||
home_mode = "post"
|
||||
## 主页在 post 模式下每页 post 显示数量
|
||||
home_paginate = 6
|
||||
## 主页显示头像的 URL
|
||||
avatar = "images/avatar.png"
|
||||
## 主页显示的网站副标题
|
||||
subtitle = "一个简洁、优雅且高效的 Hugo 主题"
|
||||
|
||||
# 在文章页面是否使用分享功能
|
||||
socialShare = true
|
||||
|
||||
# 页面底部版权信息设置
|
||||
## 网站创立年份
|
||||
since = 2019
|
||||
## ICP 备案信息,仅在中国使用 (允许使用 HTML 格式)
|
||||
icp = ""
|
||||
## 许可协议信息 (允许使用 HTML 格式)
|
||||
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>'
|
||||
|
||||
# 用于生成文章上次修改时间的公共 git 仓库路径,仅在 enableGitInfo 设为 true 时有效
|
||||
gitRepo = ""
|
||||
|
||||
# 数学公式 (KaTeX https://katex.org/)
|
||||
[params.math]
|
||||
enable = true
|
||||
block_left_delimiter = ""
|
||||
block_right_delimiter = ""
|
||||
inline_left_delimiter = "$"
|
||||
inline_right_delimiter = "$"
|
||||
# KaTeX 插件 copy_tex
|
||||
copy_tex = true
|
||||
# KaTeX 插件 mhchem
|
||||
mhchem = true
|
||||
# 页面头部导航栏信息
|
||||
[params.header]
|
||||
# 桌面端导航栏模式 ("fixed", "normal", "auto")
|
||||
desktopMode = "fixed"
|
||||
# 移动端导航栏模式 ("fixed", "normal", "auto")
|
||||
mobileMode = "auto"
|
||||
|
||||
# 是否在文章页面显示原始 Markdown 文档链接
|
||||
linkToMarkdown = true
|
||||
# 页面底部版权信息设置
|
||||
[params.footer]
|
||||
# 网站创立年份
|
||||
since = 2019
|
||||
# ICP 备案信息,仅在中国使用 (允许使用 HTML 格式)
|
||||
icp = ""
|
||||
# 许可协议信息 (允许使用 HTML 格式)
|
||||
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>'
|
||||
|
||||
# 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu
|
||||
google_verification = ""
|
||||
bing_verification = ""
|
||||
yandex_verification = ""
|
||||
pinterest_verification = ""
|
||||
baidu_verification = ""
|
||||
|
||||
# CSS 和 JS 文件的 CDN 设置
|
||||
[params.cdn]
|
||||
## 例如 '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css" integrity="sha256-fdcFNFiBMrNfWL6OcAGQz6jDgNTRxnrLEd4vJYFWScE=" crossorigin="anonymous">'
|
||||
fontawesome_free_css = ''
|
||||
animate_css = ''
|
||||
gitalk_css = ''
|
||||
gitalk_js = ''
|
||||
valine_js = ''
|
||||
lazysizes_js = ''
|
||||
smooth_scroll_js = ''
|
||||
katex_css = ''
|
||||
katex_js = ''
|
||||
katex_auto_render_js = ''
|
||||
katex_copy_tex_css = ''
|
||||
katex_copy_tex_js = ''
|
||||
katex_mhchem_js = ''
|
||||
mermaid_js = ''
|
||||
echarts_js = ''
|
||||
echarts_macarons_js = ''
|
||||
typeit_js = ''
|
||||
aplayer_css = ''
|
||||
aplayer_js = ''
|
||||
meting_js = ''
|
||||
|
||||
# Gravatar 信息,用于优先在主页显示的头像
|
||||
[params.gravatar]
|
||||
email = ""
|
||||
# 主页信息设置
|
||||
[params.home]
|
||||
# 主页个人信息
|
||||
[params.home.profile]
|
||||
enable = true
|
||||
# Gravatar 邮箱,用于优先在主页显示的头像
|
||||
gravatarEmail = ""
|
||||
# 主页显示头像的 URL
|
||||
avatarURL = "images/avatar.png"
|
||||
# 主页显示的网站副标题
|
||||
subtitle = "一个简洁、优雅且高效的 Hugo 主题"
|
||||
# 是否为副标题显示打字机动画
|
||||
typeit = true
|
||||
# 是否显示社交账号
|
||||
social = true
|
||||
# 主页文章列表
|
||||
[params.home.posts]
|
||||
enable = true
|
||||
# 主页每页显示文章数量
|
||||
paginate = 6
|
||||
|
||||
# 主页的社交信息设置
|
||||
[params.social]
|
||||
@@ -257,6 +218,13 @@ dateFormatToUse = "2006-01-02"
|
||||
#XMPP = "xxxx"
|
||||
#Matrix ="xxxx"
|
||||
|
||||
# 文章页面配置
|
||||
[params.page]
|
||||
# 在文章页面是否使用分享功能
|
||||
socialShare = true
|
||||
# 是否在文章页面显示原始 Markdown 文档链接
|
||||
linkToMarkdown = true
|
||||
|
||||
# 文章页面的分享信息设置
|
||||
[params.share]
|
||||
enable = true
|
||||
@@ -271,6 +239,50 @@ dateFormatToUse = "2006-01-02"
|
||||
#VKontakte = true
|
||||
#Weibo = true
|
||||
|
||||
# 数学公式 (KaTeX https://katex.org/)
|
||||
[params.math]
|
||||
enable = true
|
||||
block_left_delimiter = ""
|
||||
block_right_delimiter = ""
|
||||
inline_left_delimiter = "$"
|
||||
inline_right_delimiter = "$"
|
||||
# KaTeX 插件 copy_tex
|
||||
copy_tex = true
|
||||
# KaTeX 插件 mhchem
|
||||
mhchem = true
|
||||
|
||||
# CSS 和 JS 文件的 CDN 设置
|
||||
[params.cdn]
|
||||
## 例如 '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css" integrity="sha256-fdcFNFiBMrNfWL6OcAGQz6jDgNTRxnrLEd4vJYFWScE=" crossorigin="anonymous">'
|
||||
fontawesome_free_css = ''
|
||||
animate_css = ''
|
||||
gitalk_css = ''
|
||||
gitalk_js = ''
|
||||
valine_js = ''
|
||||
lazysizes_js = ''
|
||||
smooth_scroll_js = ''
|
||||
katex_css = ''
|
||||
katex_js = ''
|
||||
katex_auto_render_js = ''
|
||||
katex_copy_tex_css = ''
|
||||
katex_copy_tex_js = ''
|
||||
katex_mhchem_js = ''
|
||||
mermaid_js = ''
|
||||
echarts_js = ''
|
||||
echarts_macarons_js = ''
|
||||
typeit_js = ''
|
||||
aplayer_css = ''
|
||||
aplayer_js = ''
|
||||
meting_js = ''
|
||||
|
||||
# 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu
|
||||
[params.verification]
|
||||
google = ""
|
||||
bing = ""
|
||||
yandex = ""
|
||||
pinterest = ""
|
||||
baidu = ""
|
||||
|
||||
# 出版者信息,仅用于 SEO
|
||||
[params.publisher]
|
||||
name = "xxxx"
|
||||
@@ -291,39 +303,43 @@ dateFormatToUse = "2006-01-02"
|
||||
width = 800
|
||||
height = 600
|
||||
|
||||
# Disqus 评论系统设置 (https://disqus.com/)
|
||||
[params.disqus]
|
||||
# Disqus 的用户名,用来在文章中启用 Disqus 评论系统
|
||||
shortname = "dillonzq"
|
||||
# 评论系统设置
|
||||
[params.comment]
|
||||
enable = true
|
||||
|
||||
# Gittalk 评论系统设置 (https://github.com/gitalk/gitalk)
|
||||
[params.gitalk]
|
||||
owner = ""
|
||||
repo = ""
|
||||
clientId = ""
|
||||
clientSecret = ""
|
||||
# Disqus 评论系统设置 (https://disqus.com/)
|
||||
[params.comment.disqus]
|
||||
# Disqus 的用户名,用来在文章中启用 Disqus 评论系统
|
||||
shortname = "dillonzq"
|
||||
|
||||
# Valine 评论系统设置 (https://github.com/xCss/Valine)
|
||||
[params.valine]
|
||||
enable = false
|
||||
appId = ""
|
||||
appKey = ""
|
||||
placeholder = "你的评论 ..."
|
||||
notify = false
|
||||
verify = true
|
||||
avatar = "mp"
|
||||
#meta= ""
|
||||
pageSize = 10
|
||||
visitor = true
|
||||
recordIP = true
|
||||
# Gittalk 评论系统设置 (https://github.com/gitalk/gitalk)
|
||||
[params.comment.gitalk]
|
||||
owner = ""
|
||||
repo = ""
|
||||
clientId = ""
|
||||
clientSecret = ""
|
||||
|
||||
# Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments)
|
||||
[params.facebook]
|
||||
enable = false
|
||||
width = "100%"
|
||||
numPosts = 10
|
||||
appId = ""
|
||||
languageCode = "en_US"
|
||||
# Valine 评论系统设置 (https://github.com/xCss/Valine)
|
||||
[params.comment.valine]
|
||||
enable = false
|
||||
appId = ""
|
||||
appKey = ""
|
||||
placeholder = "你的评论 ..."
|
||||
notify = false
|
||||
verify = true
|
||||
avatar = "mp"
|
||||
#meta= ""
|
||||
pageSize = 10
|
||||
visitor = true
|
||||
recordIP = true
|
||||
|
||||
# Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments)
|
||||
[params.comment.facebook]
|
||||
enable = false
|
||||
width = "100%"
|
||||
numPosts = 10
|
||||
appId = ""
|
||||
languageCode = "en_US"
|
||||
|
||||
# 隐私信息设置 (https://gohugo.io/about/hugo-and-gdpr/)
|
||||
[privacy]
|
||||
|
||||
Reference in New Issue
Block a user