# What happens with the slug if 2 files have the same name with different dates?

**URL:** <https://zola.discourse.group/t/what-happens-with-the-slug-if-2-files-have-the-same-name-with-different-dates/1776>\
**Category:** Support\
**Created:** [June 23, 2023, 7:57pm UTC](https://zola.discourse.group/t/what-happens-with-the-slug-if-2-files-have-the-same-name-with-different-dates/1776 "2023-06-23T19:57:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MTRNord](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/mtrnord/32/977_2.png) [@MTRNord](https://zola.discourse.group/u/MTRNord)\
**Post date:** [June 23, 2023, 7:57pm UTC](https://zola.discourse.group/t/what-happens-with-the-slug-if-2-files-have-the-same-name-with-different-dates/1776/1 "2023-06-23T19:57:28Z")

</div>

Hi,

since zola strips dates from filenames when making it a slug, I am wondering what happens when there are 2 files named “the same” but using different names in the same folder. For example:

`2023-06-16-twim.md` and `2023-06-23-twim.md`.

Looking at the code, I assume this causes a conflict while it is clearly 2 different articles, which is made clear by the date. In this example, it is a weekly recurring “This week in X” article. So having the same filename is expected.

I wonder is it expected/intended to conflict, or is it intended to resolve the conflict but simply not doing this currently?

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [June 26, 2023, 12:02pm UTC](https://zola.discourse.group/t/what-happens-with-the-slug-if-2-files-have-the-same-name-with-different-dates/1776/2 "2023-06-26T12:02:35Z")

</div>

See [Add an option to integrate the date into the path · Issue #1662 · getzola/zola · GitHub](https://github.com/getzola/zola/issues/1662)
