Skip to content

Build blog rendering infrastructure #2

@purag

Description

@purag

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.pug template for each post
  • add _src/views/blog/index.pug for 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
  ...

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions