incorporate related posts to site
This commit is contained in:
parent
a586833f65
commit
c7102e0628
3 changed files with 73 additions and 0 deletions
8
layouts/partials/related.html
Normal file
8
layouts/partials/related.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ with site.RegularPages.Related . | first 5 }}
|
||||
<p>Related content:</p>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue