Custom Templates Not Updating

Hi All,

I’m a new Micro.blog user, enjoying it so far.

I’m trying to customise my homepage to only show the first part of each post and include a read more link.

I’ve followed the help page - Truncated posts on your microblog

But the template is not updating.

Am i missing something really obvious, or does it just take time to update?

Thanks in advance.

Stevie

It should’t take any longer to update than just posting to your blog. Do you mind sharing the text in the template you edited, or a screenshot? Hopefully it’s just something simple that is tripping it up.

Thanks, and welcome to Micro.blog!

Heres’s the code,

{{ define "main" }}
<div class="home h-feed">

  <ul class="post-list">
    {{ $paginator := .Paginate (where .Pages.ByDate.Reverse "Type" "post") }}
    {{ range .Paginator.Pages  }}
    <div class="post-preview h-entry {{ range .Params.categories }} {{ . | urlize | lower }}{{ end }}">
      <a href="{{ .Permalink }}" class="post-date u-url"><time class="dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05 -0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> ∞</a>
      {{ if .Title }}
      <h2 class="post-title p-name"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
      {{ if templates.Exists "partials/summary.html" }}
      <div class="p-summary">
        {{ .Summary | safeHTML }}
        {{ if .Truncated }}
        <p><a class="read-more" href="{{ .Permalink }}">{{ .Site.Params.read_more_text | safeHTML }}</a></p>
        {{ end }}
      </div>
      {{ else }}
  <div class="e-content">
    {{ .Summary }}
    {{ if .Truncated }}
      <p><a href="{{ .RelPermalink }}">Read More</a></p>
    {{ end }}
  </div>
      {{ end }}
      {{ else }}
  <div class="e-content">
    {{ .Summary }}
    {{ if .Truncated }}
      <p><a href="{{ .RelPermalink }}">Read More</a></p>
    {{ end }}
  </div>
      {{ end }}
    </div>
    {{ end }}
  </ul>
</div>
<div class="post-nav">
  {{ if $paginator.HasPrev }}
  <span class="prev">
    <a href="{{ $paginator.Prev.URL }}" title="Previous Page"><span class="arrow">← Newer Posts</span></a>
  </span>
  {{ end }}
  {{ if $paginator.HasNext }}
  <span class="next">
    <a href="{{ $paginator.Next.URL }}"><span class="arrow">Older Posts →</span></a>
  </span>
  {{ end }}
</div>
{{ end }}

I replaced both

elements for

<div class="e-content">

Hi Manton,

Any addtional thoughts on this?

Even if i change other parts of the list.html template, nothing actually appears to update?

Appreciate the help.

I might have figured it out.

I applied the same page to the layouts/index.html template and that appears to have worked?