Include markdown via readFile & markdownify, ignoring frontmatter?

Is there any way to include a markdown file via a short code, but ignore the front-matter?

My shortcode is ‘layouts/shortcodes/include-md’:

    {{$file := .Get 0}}
    {{ $file | readFile | markdownify }}

Currently if the markdown file has front-matter then it will be rendered. I’d rather the front-matter was ignored. Part of the reason for needing the front-matter is that we need a ‘title’ entry, so that Netlify displays it in the content list view.

Yes, here ([SOLVED] Remove FrontMatter of content read with readFile).

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.