Blog-Doc

The simplest Node.js CMS and SSG!

The Markdown route

Rendering posts and pages

Under the routes folder lives the `markdownRoute.js` file, it's the most important file of the app, the heart and soul of [Blog-Doc](/posts/what-is-blog-doc). This file looks at tw...

Read the post


The pagination component

Navigating between blog's pages

One of the functionalities that we have seen in [The Main Route](/posts/the-main-route) is how the blog gets paginated under the hood. In this post, we will talk about the paginati...

Read the post


The Main Route

The blog behind the curtains

The` mainRoute.js` file, under the **routes** folder, is where all the functionalities of the blog are defined. It collects, paginates and displays, all the Markdown files in the *...

Read the post