summaryrefslogtreecommitdiffstats
path: root/docs/config
diff options
context:
space:
mode:
Diffstat (limited to 'docs/config')
-rw-r--r--docs/config/_default/config.toml19
-rw-r--r--docs/config/production/params.toml4
2 files changed, 17 insertions, 6 deletions
diff --git a/docs/config/_default/config.toml b/docs/config/_default/config.toml
index 60ab99804..30764b5f9 100644
--- a/docs/config/_default/config.toml
+++ b/docs/config/_default/config.toml
@@ -1,5 +1,5 @@
baseURL = "https://gohugo.io/"
-paginate = 100
+paginate = 100
defaultContentLanguage = "en"
enableEmoji = true
# Set the unicode character used for the "return" link in page footnotes.
@@ -48,6 +48,21 @@ baseName = "_headers"
isPlainText = true
notAlternative = true
+[caches]
+[caches.getjson]
+dir = ":cacheDir/:project"
+maxAge = -1
+[caches.getcsv]
+dir = ":cacheDir/:project"
+maxAge = -1
+[caches.images]
+dir = ":resourceDir/_gen"
+maxAge = -1
+[caches.assets]
+dir = ":resourceDir/_gen"
+maxAge = -1
+
+
[related]
threshold = 80
@@ -58,7 +73,7 @@ toLower = false
name = "keywords"
weight = 100
[[related.indices]]
-name = "date"
+name = "date"
weight = 10
pattern = "2006"
diff --git a/docs/config/production/params.toml b/docs/config/production/params.toml
index ffca3f11b..d0071fe65 100644
--- a/docs/config/production/params.toml
+++ b/docs/config/production/params.toml
@@ -1,6 +1,2 @@
# Params for production
-# This is turned off in development as it is relatively slow.
-# This is needed to get accurate lastMod and Git commit info
-# on the docs pages.
-enableGitInfo = true