-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Need to build out the system for writing and rendering the blog. Current plan is:
- write posts in markdown, file under
_src/data/blog/posts/ - add
_src/data/blog/posts.json - rerender when a post is written. pagination is handled in this file.
- add
_src/views/includes/blog/post.pugtemplate for each post - add
_src/views/blog/index.pugfor the blog homepage
To write a new post, I'm planning on writing a bash (or node) script that will let me write the post in markdown, and upon saving, rerender _src/data/blog/posts.json. When gulp is run next, it will paginate accordingly.
Clean urls shouldn't be too much trouble:
blog/
index.html
2/
index.html
3/
index.html
...
post-title-1/
index.html
post-title-2/
index.html
...