Statiq.Web icon indicating copy to clipboard operation
Statiq.Web copied to clipboard

Question: Include example

Open AlexHedley opened this issue 1 year ago • 2 comments

Do you have examples of the different shortcodes?

I'll like to use the include to create a Table of Contents, once, and use it in other posts.

I created another markdown file toc.md and put it in another directory inputs/includes.

Added the following to my post:

<?# Include "./../includes/posts/toc.md" /?>

But when built the site it added it as raw text not markdown.

Is there another attribute I need to set?

AlexHedley avatar Jul 01 '23 20:07 AlexHedley