Closed karlstolley closed 11 years ago
Will we still be able to use custom scripts with this approach? I guess we could just drop script tags within our content pages? Just trying to think of things I've added to this boilerplate that the default page contains, and I think the only thing is some custom script tags.
Edit: When I say custom scripts I'm referring to custom JavaScript files.
One approach would actually be to add a custom template file, based on _layouts/page.html
, that loads up your custom scripts; we could also add the ability to put the name/path of custom scripts right in the YAML of each content file.
I have some custom JS in my pages as well, but they're few and so specific to a specific page example that I think it just makes sense to add it just before the
tag.
I also have a lot of custom CSS for my CSS examples that I think can be kept in the pages as well.
On Wed, Oct 17, 2012 at 12:52 PM, Karl Stolley notifications@github.comwrote:
One approach would actually be to add a custom template file, based on _layouts/page.html, that loads up your custom scripts; we could also add the ability to put the name/path of custom scripts right in the YAML of each content file.
— Reply to this email directly or view it on GitHubhttps://github.com/karlstolley/535/pull/19#issuecomment-9537025.
Note addition of 143d4f9
So, here's how templates would work, basically. Comments & suggestions before we merge into master?