Include partial in content page

Is it possible to include a partial inside of a content page. Right now it’s just ignored completely which doesn’t seem right.

Thanks :slight_smile:

Shortcodes is what you’re looking for. Partials in content files isn’t supported.

Ah right. Is there any way of using a shortcode to import other files inline? :confused:

What “other files”?

Just other html files. So I include a general piece of content which is re-usable across my site.

I guess the partials and render funcs could be usided from inside the shortcode … BUT, this sounds like a bad design. This is what templates are for.

@kennydude [quote=“kennydude, post:5, topic:2522, full:true”]
Just other html files. So I include a general piece of content which is re-usable across my site.
[/quote]

This is the use for partials. You can make them either context aware (i.e., pulling from the yaml/toml/JSON of particular files) or just static/hardcoded, although I wouldn’t recommend the latter unless you’re absolutely sure the content therein isn’t going to change too frequently or according to a relationship with a specific page’s content.

Does that make sense?