I'm using Misaki for my new blog, and just realized there's no way to have a something like a frontpage that has pagination. There's a 1-to-1 mapping between posts and the pages they generate, and I don't see how you would define a page (like index.html) that would actually compile to many pages with pagination.
Thank you for using misaki!
Do you want to realize pagination between index.html.clj, A.html.clj and B.html.clj in following file structure?
+- posts dir
| +- post files...
Actually, what I'm hoping for is something where I have a single template defined like "index.html.clj", and when there's a specific amount of information on the page, maybe defined as @numposts in the beginning, it will compile to multiple pages. Either like jekyll does, where you have index.html, then ./page2/index.html, ./page3/index.html, etc, OR have it render to index.html, index-1.html, index-2.html, etc.
For an example, look at my blog template at https://github.com/rattboi/kanyid.org . Index.html.clj defines summarized blog posts, and the way misaki works now, all the posts I ever write will be shown on the page (unless I give some arbitrary drop number).
I'm not positive how this would fit into the compiler as it is now, but was hoping for some ideas.
#31 update misaki.core/get-post-files to handle posts-per-page
#31 add index-template-regexp to option, and add misaki.config/index-…
#31 update misaki.config/make-output-filename to handle posts-per-pag…
…e and page-index
#31 add call-index-compile to compile index template with pagination
#31 update call-index-compile and call-all-compile for pagination
#31 fix misaki.core/get-post-files
#31 update misaki.compiler.default.core/make-site-data to handle pagi…
#31 update blog sample with pagination
@rattboi In dev branch, I added options such as :posts-per-page, :page-file-format, and :index-template-regexp.
Templates matching by :index-template-regexp will be compiled with pagination.
Sample pagination config is here.
#31 add document
#31 add 'name' and 'ext' variable to
Merged to master branch.