Html entities in posts with no title

Hi, I’m new here and I adopted micro.blog for my personal (and probably professional, next) use.

I have an issue displaying posts in Archive : when a post has no title, html entities are not decoded properly. No problem for other post titles. Is there a way to fix this ?

Theme is Mythos from @Mtt

See screen shot (sorry, language is French).

Ok I fixed the issue.

In the layouts/_default/list.archivehtml.html file, there’s this line:

{{ $content := .Content | plainify }}

Just need to edit it like this:

{{ $content := .Content | plainify | htmlUnescape }}

I was going to recommend {{ .Summary | safeHTML }}or similar. But it was content, so that makes sense.

1 Like