I am trying to work on a custom theme, and I wanted to do truncated posts on the main feed. I followed the instructions from this post. Truncated posts on your microblog, but it doesn’t seem to be working. I thought maybe another set of eyes would see what maybe I missed. My other thought would be I’m on Hugo .91; maybe this broke something that used to work? I don’t know. Any help would be great!
{{ define "main" }}
<div class="home h-feed">
<ul class="post-list">
{{ $paginator := .Paginate (where .Pages.ByDate.Reverse "Type" "post") (index .Site.Params "archive-paginate" | default 25) }}
{{ range $paginator.Pages }}
<li class="h-entry">
{{ if .Title }}
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ end }}
<a href="{{ .Permalink }}" class="u-url"><span class="post-meta"><time class="dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05 -0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time></span></a>
<div class="e-content">
{{ .Summary }}
{{ if .Truncated }}
<p><a href="{{ .RelPermalink }}">Read More</a></p>
{{ end }}
</div>
</li>
{{ end }}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "feed.xml" | absURL }}">via RSS</a></p>
</div>
{{ end }}