Some tags not working?

In my latest macro post, the <!-- more --> and the markdown tag for a link is not rendering. The one for a footnote is working fine. Anything changed on the backend? I wrote in Drafts and posted to Micro.blog as I always do.

The link tag is now working but not the <!-- more --> tag

Figured it out. I had changed {{ .Content }} to {{ .Summary }} in the layouts/newsletter.html so that longer posts in the newsletter would have a summary and readers would have to click through to read the full thing. This was following this discussion with @jsonbecker and @toddgrotenhuis. It didn’t do anything in the newsletter, but I guess it changed the behavior of the <!-- more --> tag in a regular post.

I continue to not understand how any of this works. I simply undid the last thing I had changed in the template.

I don’t think that was me — but I’m glad it worked for you.

Oops. Confused you with Todd.

In Hugo, {{ .Content }} means “show the whole rendered content of the file being rendered. {{ .Summary }} can show a few things, and I think the order is:

  1. A summary supplied in the front matter (micro.blog does not support custom front matter or summary as front matter, so this doesn’t work).
  2. The content before <!-- more -->
  3. A truncation of all your content based on your theme settings (default is I think 500 characters or maybe 50 words).

Any time you want to respect (2), you need to use {{ .Summary }} as what will be rendered and not {{ . Content }}.

This is all inherited from Hugo:

I get that but I changed it from Content to Summary in the newsletter.html template. It didn’t do anything to the newsletter but broke the homepage and strangely only for the new posts since the change.

Hrm, I understand better now. I wonder if a rebuild would have fixed. This sounds like something happened where a template was copied wrong or in the wrong order in some way such that there was a fallback.