Typlog allows you to customize the URL formats — the routes — for posts, episodes, pages, tags, etc. Go to Settings → Customize routes to make changes.
Post URL & Episode URL
Here are the available variables for post and episode URLs:
{slug}
, this parameter MUST be included in the URL.{lang}
, the language of the post, e.g.en
,ja
,zh-hans
.{year}
, the year of the publish date.{month}
, the month of the publish date.
Here are some examples:
URL format | Example |
---|---|
/posts/{year}/{slug} | /posts/2021/hello |
/{lang}/{slug} | /en/hello |
/blog/{year}/{month}/{slug} | /blog/2021/11/hello |
Tag URL
Here are the available variables for tag URLs:
{slug}
, this parameter MUST be included in the URL.{lang}
, the language of the tag, e.g.en
,ja
,zh-hans
.
Tag URLs MUST end with a /
.
Here are some examples:
URL format | Example |
---|---|
/tags/{slug}/ | /tags/design/ |
/{lang}/topic/{slug}/ | /en/topic/design/ |
Archive, Post list, & Episode list
- The Archive contains both posts and episodes
- The Post list only contains posts
- The Episode list only contains episodes
There are no available variables for list URLs.
List URLs MUST end with a /
.
Here are some examples (assuming you have both the Posts and Episodes features turned on):
URL | URL format | Example |
---|---|---|
Post | /blog/{slug} | /blog/hello |
Post list | /blog/ | |
Episode | /podcast/{slug} | /podcast/026 |
Episode list | /podcast/ |
Language URL
If your site supports languages, content can be grouped by language.
Here are the available variables for language URLs:
{lang}
, this parameter MUST be included in the URL.
Author URL
If your site supports authors, content can be grouped by author.
Here are the available variables for author URLs:
{username}
, this parameter MUST be included in the URL.
Author URLs MUST end with a /
.
Here is an example:
URL format | Example |
---|---|
/author/{name}/ | /author/lepture/ |