diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-09-14 00:57:07 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-09-14 00:57:07 +0300 |
commit | 4fb35572fcbad215801b0dc73af9fd50bfc88a46 (patch) | |
tree | 0180ce326735876b1129fdd136c0dd658e85cce4 | |
parent | 71aa4a992c7d95539f17cb7af2cd7479be5d5380 (diff) |
Add See Also section
-rw-r--r-- | config.toml | 13 | ||||
-rw-r--r-- | layouts/_default/single.html | 1 |
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> |