Custom routes

Typlog allows you to customize URL formats for posts, episodes, and tags. Go to Settings → General settings, update URL formats under the Features section.

Routes

Post URL & Episode URL

Available variables for post URL and episode URL:

  1. {slug}, this parameter MUST be included in URL.
  2. {lang}, the language of of post, e.g. en, ja, zh-hans.
  3. {year}, the year of the publish date.
  4. {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

Tag URL MUST end with /, available variables for tag URL:

  1. {slug}, this parameter MUST be included in URL.
  2. {lang}, the language of the tag, e.g. en, ja, zh-hans.

Here are some examples:

URL format Example
/tags/{slug}/ /tags/design/
/{lang}/topic/{slug}/ /en/topic/design/
Read more