Hello,
I want my main page to render all my posts in “full markdown” (in contrast to markdownify) so that they look exactly as they do on their respective pages.
For that I loop over all pages and then try to render them with .Render .Content
{{ range .Pages }}
<article class="post {{ .Site.Language.LanguageName }}">
<div class="row">
<div class="col-xs-12">
<h1 class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
<div class="post-content markdown-body">
{{ .Render .Content }}
</div>
</div>
</div>
</article>
{{ end }}
But Hugo fails building the page with the error: <.Content>: wrong type for value; expected string; got template.HTML
So since .Render seems to be for strings, what can I do to Render the “HTML template” as markdown?
Best Regards,
Jan