baseurl = "https://www.softinio.com/"
title = "Salar Rahmanian"
enableRobotsTXT = true
enableEmoji = true
theme = "jane"
# language support # en / zh-cn / other...
defaultContentLanguage = "en"
[Languages.en]
languageCode = "en"
hasCJKLanguage = false
paginate = 5
rssLimit = 20
googleAnalytics = "UA-47014432-1"
copyright = ""
# Highlight options.
# See https://gohugo.io/content-management/syntax-highlighting/
PygmentsCodeFences = true # Enable syntax highlighting with GitHub flavoured code fences
PygmentsUseClasses = true # Use CSS classes to format highlighted code
PygmentsCodefencesGuessSyntax = true
PygmentsOptions = "linenos=table"
[author]
name = "Salar Rahmanian"
[permalinks]
post = "/post/:slug"
page = "/page/:slug"
[sitemap]
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
[[menu.main]] # config your menu # 配置目录
name = "Home"
weight = 10
identifier = "home"
url = "/"
[[menu.main]]
name = "Archives"
weight = 20
identifier = "archives"
url = "/post/"
[[menu.main]]
name = "Tags"
weight = 30
identifier = "tags"
url = "/tags/"
[[menu.main]]
name = "Categories"
weight = 40
identifier = "categories"
url = "/categories/"
[[menu.main]]
name = "Family Blog"
url = "https://www.rahmanian.xyz/"
weight = 50
[params]
debug = false # If true, load `eruda.min.js`. See https://github.com/liriliri/eruda
since = "2012" # Site creation time # 站点建立时间
homeFullContent = false # if false, show post summaries on home page. Othewise show full content.
rssFullContent = true # if false, Rss feed instead of the summary
# site info (optional) # 站点信息(可选,不需要的可以直接注释掉)
logoTitle = "Salar Rahmanian"
description = "Salar Rahmanian"
keywords = ["Salar, Rahmanian, Blog, python, scala, haskell, swiftlang, nix, NixOS"]
# paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目,建议修改为一个较大的值
archive-paginate = 3
# paginate style, default use numbered pagination links
# if true, use original "Previous" and "Next" links.
# paginateOriginalStyle = true
# 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 # 是否开启目录
autoCollapseToc = false # Auto expand and collapse toc # 目录自动展开/折叠
fancybox = true # see https://github.com/fancyapps/fancybox # 是否启用fancybox(图片可点击)
bootcdn = false # In china. @Deprecated: use [params.publicCDN] # 是否使用bootcdn(@Deprecated: 请使用[params.publicCDN])
mathjax = false # see https://www.mathjax.org/ # 是否使用mathjax(数学公式)
contentCopyright = 'CC BY-NC-ND 4.0'
google_verification = "" # Google_Verification # 谷歌
# 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.publicCDN] # load these files from public cdn # 启用公共CDN,需自行定义
enable = false
jquery = ''
slideout = ''
fancyboxJs = ''
fancyboxCss = ''
gitmentJS = ''
gitmentCSS = ''
[params.utteranc] # utteranc is a comment system based on GitHub issues. see https://utteranc.es
enable = true
repo = "softinio/softinio.com" # The repo to store comments
issueTerm = "url"
[params.gitment] # Gitment is a comment system based on GitHub issues. see https://github.com/imsun/gitment
owner = "" # Your GitHub ID
repo = "" # The repo to store comments
clientId = "" # Your client ID
clientSecret = "" # Your client secret
[params.reward] # 文章打赏
enable = false
wechat = "/path/to/your/wechat-qr-code.png" # 微信二维码
alipay = "/path/to/your/alipay-qr-code.png" # 支付宝二维码
[params.social] # 社交链接
# a-email = "mailto:your@email.com"
b-stack-overflow = "http://stackoverflow.com/users/1930869/softinio"
c-twitter = "https://twitter.com/SalarRahmanian"
e-linkedin = "https://www.linkedin.com/in/salarrahmanian/"
g-github = "https://github.com/softinio"
n-gitlab = "https://gitlab.com/softinio"
# o-goodreads = "http://en.xianmin.org/hugo-theme-jane/"
[outputs]
home = ["html", "jsonfeed","rss"]
page = ["html"]
[outputFormats]
[outputFormats.jsonfeed]
mediaType = "application/json"
baseName = "feed"
isPlainText = true
[deployment]
order = [".png$", ".jpg$", ".gif$", ".svg$"]
[[deployment.targets]]
name = "softinio-deploy"
URL = "s3://www.softinio.com?region=us-east-1"
cloudFrontDistributionID = "E1CMSLHG2WR51C"
[[deployment.matchers]]
# Cache static assets for 1 year.
pattern = "^.+\\.(js|css|svg|ttf)$"
cacheControl = "max-age=31536000, no-transform, public"
gzip = true
[[deployment.matchers]]
pattern = "^.+\\.(png|jpg)$"
cacheControl = "max-age=31536000, no-transform, public"
gzip = false
[[deployment.matchers]]
pattern = "^.+\\.(html|xml|json)$"
gzip = true