How to partial file into blog post?


#1

I want to include my banner.html file into middle of blog post (content/hello.md).

hello.md
----------
my front matter
---------
Some paragraphs
{{ partial "banner.html" . }} 
Some other paragraphas

{{ partial “banner.html” . }} does not render in my blog post, Jekyll does that pretty well.


#2

You’ll have to use a shortcode. You can’t use partial templates in the content file. Hugo docs will show you the way on shortcodes.