Markdownify not rendering post summary

Hi, I wanted to render the summaries of posts on the index of my site in markdown.

This is before code

        {{ .Summary | safeHTML }}

This is the code I tried that didn’t work

        {{ .Summary | markdownify }}

Not really sure what the issue is as markdownify is built into Hugo.

.Summary is a part of your rendered content stripped of any HTML tag. So there’s no markdown left in there. If you have a Front Matter parameter called summary then it should be available under .Params.summary (untested).

1 Like