Closed codekiln closed 9 years ago
I'm not exactly sure what you're trying to do but you have a few options:
_content/templates
that are then included via {% incldue %}
in the master layout, you could just put those client files in a different folder. You could create a folder named _content/users
, for instance, and you add it to the site/templates_dirs
in the config.yml
so that the include
statement can find them.
I am trying to make a template for a JavaScript-enabled single page layout. Right now my layout consists of a single gigantic page, which is a bit hard to edit. It would be easier if my users could edit multiple pages that would get put into the appropriate div sections of one page. I know about using the {% include 'challenge.html' %} to import a template. I haven't been able to use include to import a page from the pages directory.
I would like my users to be able to use markdown to author this site. Considering that I would like to make a single page site, should I create a subdirectory of the templates directory, and use only markdown files in there?
Is there a way to use YML in a header of the templates in the templates directory?