# Make dates in Markdown filenames always appear in slug

**URL:** <https://zola.discourse.group/t/make-dates-in-markdown-filenames-always-appear-in-slug/1144>\
**Category:** Support\
**Created:** [January 20, 2022, 12:13pm UTC](https://zola.discourse.group/t/make-dates-in-markdown-filenames-always-appear-in-slug/1144 "2022-01-20T12:13:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshine](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sshine](https://zola.discourse.group/u/sshine)\
**Post date:** [January 20, 2022, 12:13pm UTC](https://zola.discourse.group/t/make-dates-in-markdown-filenames-always-appear-in-slug/1144/1 "2022-01-20T12:13:15Z")

</div>

When I create a blog post with the filename content/blog/2022-01-20-hello.md, the slug that is generated is “hello”. If I want for the date to appear in the slug, e.g. in this case the slug should be “2022-01-20-hello”, just like in the filename, I can set `slug = "2022-01-20-hello"` in the TOML header of the blog post.

But since I always want this, is there a setting for not stripping the date out of the slug?

It feels like an effort was made here, but I cannot see in the docs that it’s configurable.
