Every theme functions in a similar fashion. Letterpad takes care of the routing and knows exactly which component needs to be rendered based on the url. These are urls available:

Homepage:

The homepage can display either a list of posts or a single page.

    • /
    • /home
    • /home/page/:page_no (pagination for multiple posts)

Multiple posts

Every post which needs to be displayed to the user should have a category. This is the only way of grouping posts together. You can add this category in the navigation menu which will render multiple posts

    • /posts/:slug/page/:page_no (slug is the category slug)

Single Post

Single post can be displayed with the below url, where :slug is the slug of the post.

    • /post/:slug

Single Page

Single page can be displayed with the below url, where :slug is the slug of the page.

    • /page/:slug

Posts by category

You can also display a list of posts linked with a category with the below url format, where :query is the category slug.

    • /category/:query

Posts by tag

You can also display a list of posts linked with a tag with the below url format, where :query is the tag slug.

    • /tag/:query