I’d like to truncate longer posts on my home page. According to https://help.micro.blog/t/truncated-posts-on-your-microblog/60, there should be a custom theme template I can edit called list.html that contains the following code:
<div class="e-content">
{{ .Content }}
</div>
However, the only template I can find called list.html appears under Templates for Arabica theme and is called layouts/_default/list.html. This template does not contain the code shown above. Its contents are:
{{ define "body_class" }}tag-template{{ end }}
{{ define "title" }}{{ .Title }}{{ end }}
{{ define "main" }}
{{ $paginator := .Paginate (where .Pages.ByDate.Reverse "Type" "post") (index .Site.Params "archive-paginate" | default 25) }}
<main class="content" role="main">
{{ if not $paginator.HasPrev }}
{{ if eq .Data.Plural "tags" }}
<h2 class="tag-title">{{ .Title }}</h2>
{{ end }}
{{ end }}
<div class="extra-pagination">
{{ partial "pagination.html" .}}
</div>
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ end }}
The templates listed under Default Templates do not include any called list.html.
I’m at a loss, therefore, as to how to truncate longer posts by default, and would appreciate any help you can offer.