Show full page contents on folder page
Links and micro posts are short enough that rather than displaying just their title with a link to the full post, I should simply display the full post contents on the folder’s root.
To override the default display for a section, I created these files:
/layouts/links/section.html
/layouts/micros/section.html
Along with styling and code to display wikilinks, my output for Links looks something like this:
<ul class="section-ul">
{{ $pages := .Pages.ByPublishDate.Reverse }}
{{ range (.Paginate $pages).Pages }}
<li class="border-top">
<h3>
<a href="{{ .Page.Params.link }}">{{ .Title }}</a>
<span class="meta">({{ partial "funcs/tld.html" .Page.Params.link }})</span>
</h3>
{{ partial "custom-content" . }}
{{ partial "date-link.html" . }}
</li>
{{ end }}
</ul>