Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build blog rendering infrastructure #2

Open
purag opened this issue Nov 30, 2016 · 0 comments
Open

Build blog rendering infrastructure #2

purag opened this issue Nov 30, 2016 · 0 comments
Assignees

Comments

@purag
Copy link
Owner

purag commented Nov 30, 2016

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
  ...
@purag purag self-assigned this Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant