Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/h-enk/doks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHenk Verlinde <henk@ventizo.com>2022-07-05 12:16:59 +0300
committerGitHub <noreply@github.com>2022-07-05 12:16:59 +0300
commit97b7af326b63c9e83e8663f56db7d2783faae36f (patch)
tree6655f537dc50c7fc62bc14253118da3fb58f4d1e /config
parent9e1f7b9677d1bedb2ddb904718c1959413ca384c (diff)
parentf8d4d0915f3d45bc4a0b1379563fa799fe84ad95 (diff)
Merge pull request #798 from h-enk/blog-pages
Better blog pages
Diffstat (limited to 'config')
-rw-r--r--config/_default/config.toml16
-rw-r--r--config/_default/params.toml4
2 files changed, 20 insertions, 0 deletions
diff --git a/config/_default/config.toml b/config/_default/config.toml
index 75d4703..b6a1f4e 100644
--- a/config/_default/config.toml
+++ b/config/_default/config.toml
@@ -59,6 +59,8 @@ rel = "sitemap"
[taxonomies]
contributor = "contributors"
+ category = "categories"
+ tag = "tags"
[permalinks]
blog = "/blog/:title/"
@@ -67,6 +69,20 @@ rel = "sitemap"
[minify.tdewolff.html]
keepWhitespace = false
+[related]
+ threshold = 80
+ includeNewer = true
+ toLower = false
+ [[related.indices]]
+ name = "categories"
+ weight = 100
+ [[related.indices]]
+ name = "tags"
+ weight = 80
+ [[related.indices]]
+ name = "date"
+ weight = 10
+
[module]
[module.hugoVersion]
extended = true
diff --git a/config/_default/params.toml b/config/_default/params.toml
index d80b6cb..2eb69ac 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -60,6 +60,10 @@ imageImageSizes = ["480","720","1080","1280","1600","2048"]
singleSize = false
imageAddClass = "img-fluid lazyload blur-up"
+### Image template
+defaultImage = "default-image.png" # put in `./assets/images/`
+fillImage = "1270x740 Center" # normalize image size
+
# Footer
footer = "Powered by <a class=\"text-muted\" href=\"https://www.netlify.com/\">Netlify</a>, <a class=\"text-muted\" href=\"https://gohugo.io/\">Hugo</a>, and <a class=\"text-muted\" href=\"https://getdoks.org/\">Doks</a>"