mirror of
https://github.com/softinio/softinio.com.git
synced 2025-09-05 11:16:41 -07:00
Configuration improvements
This commit is contained in:
parent
e2053660da
commit
1aaafcd9bf
9 changed files with 352 additions and 99 deletions
63
config/_default/config.toml
Normal file
63
config/_default/config.toml
Normal file
|
@ -0,0 +1,63 @@
|
|||
baseurl = "https://www.softinio.com/"
|
||||
title = "Salar Rahmanian"
|
||||
author = "Salar Rahmanian"
|
||||
enableRobotsTXT = true
|
||||
enableEmoji = true
|
||||
paginate = 10
|
||||
|
||||
# title = "Clarity" # Edit directly from config/_default/languages.toml # alternatively, uncomment this and remove `title` entry from the aforemention file.
|
||||
# copyright = "Copyright © 2008–2018, Steve Francia and the Hugo Authors; all rights reserved."
|
||||
# canonifyurls = true
|
||||
theme = ["github.com/softinio/hugo-clarity"]
|
||||
# disqusShortname = ""
|
||||
|
||||
DefaultContentLanguage = "en"
|
||||
# [languages]
|
||||
# config/_default/languages.toml
|
||||
|
||||
# [menus]
|
||||
# config/_default/menus/menu.xx.toml
|
||||
|
||||
# [outputs]
|
||||
# home = ["HTML", "RSS", "JSON"]
|
||||
# page = ["html"]
|
||||
|
||||
[outputs]
|
||||
home = ["html", "jsonfeed","rss"]
|
||||
page = ["html"]
|
||||
|
||||
[outputFormats]
|
||||
[outputFormats.jsonfeed]
|
||||
mediaType = "application/json"
|
||||
baseName = "feed"
|
||||
isPlainText = true
|
||||
|
||||
[sitemap]
|
||||
changefreq = "weekly"
|
||||
priority = 0.5
|
||||
filename = "sitemap.xml"
|
||||
|
||||
[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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue