Sorry, this may be a philosophical request or I may have missed some documentation. Figured you'd be interested since this is a newer project and the intended audience is likely designery folks (with limited designer JS abilities). Great project though, hope I can submit a theme.
What I tried to do
I wanted to put the about page at /index.html and the paginated blog at /blog.html. So I edited the Gruntfile.
pages: {
posts: {
src: 'posts',
dest: 'dist',
layout: 'src/layouts/post.ejs',
url: 'posts/:title/',
options: {
pageSrc: 'src/pages',
data: {
baseUrl: '/'
},
pagination: {
postsPerPage: 1,
listPage: 'src/pages/blog.ejs'
}
}
}
},
I moved index.ejs
to blog.ejs
and created a new index.ejs
with normal, static content. Unfortunately, after running grunt it still builds the blog (correctly using blog.ejs) at index.html. I expected it to do this at /blog.html (which doesn't render) and for index.ejs to build index.html. Can replicate this using https://github.com/snide/Canvas (note, only set up for EJS).
Playing around I was able to get kind of what I wanted, but only when i specifically set listPage: about.ejs
(moving the post forloop there as well) which rendered the blog at about.html and let me render index.html from index.ejs. Unfortunately, then my blog would be labeled /about :)
This could be intended. It's blog software, so you may assume index.html MUST show pagination. From looking at the grunt file output though, I just assumed it was easy to change.
Unfortunately I'm a designer, otherwise I'd look deeper into your JS, but I'm guessing there's some sort of reserved naming that needs to be used?