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

github.com/gohugoio/hugoThemesSite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-09-14 00:57:07 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-09-14 00:57:07 +0300
commit4fb35572fcbad215801b0dc73af9fd50bfc88a46 (patch)
tree0180ce326735876b1129fdd136c0dd658e85cce4
parent71aa4a992c7d95539f17cb7af2cd7479be5d5380 (diff)
Add See Also section
-rw-r--r--config.toml13
-rw-r--r--layouts/_default/single.html1
2 files changed, 14 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 5b0a3ac..c65e583 100644
--- a/config.toml
+++ b/config.toml
@@ -27,6 +27,19 @@ baseName = "_headers"
isPlainText = true
notAlternative = true
+[related]
+threshold = 80
+includeNewer = true
+toLower = false
+
+[[related.indices]]
+name = "tags"
+weight = 100
+[[related.indices]]
+name = "date"
+weight = 10
+pattern = "2006"
+
[social]
twitter = "GoHugoIO"
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3fd3e83..5915f68 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -32,6 +32,7 @@
<div class="w-100 w-80-l pv5 ph4 ph5-ns center nested-links overflow-hidden ">
{{ .Content }}
+ {{ partial "related.html" . }}
</div>
</article>