14 lines
364 B
HTML

{{ define "main" }}
{{ .Content }}
{{ $pages := shuffle (where site.RegularPages "Section" "tools") | first 20 }}
<section>
<h2>Featured Tools</h2>
{{ range $pages }}
<article>
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<p>{{ .Content | truncate 100 }}</p>
</article>
{{ end }}
</section>
{{ end }}