diff options
Diffstat (limited to 'layouts/partials/related-posts.html')
| -rw-r--r-- | layouts/partials/related-posts.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/partials/related-posts.html b/layouts/partials/related-posts.html new file mode 100644 index 0000000..d533bfd --- /dev/null +++ b/layouts/partials/related-posts.html @@ -0,0 +1,11 @@ +{{- $related := .Site.RegularPages.Related . | first 5 }} +{{ with $related }} +<div class="related-posts thin"> + <h2>{{ i18n "seeAlso" }}</h2> + <ul> + {{ range . }} + <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} + </ul> +</div> +{{ end -}} |
