# Howto fix source files (i.e. \*.md) being copied over to \_site?

**URL:** <https://talk.jekyllrb.com/t/howto-fix-source-files-i-e-md-being-copied-over-to-site/4357>\
**Category:** Help\
**Created:** [May 4, 2020, 5:18pm UTC](https://talk.jekyllrb.com/t/howto-fix-source-files-i-e-md-being-copied-over-to-site/4357 "2020-05-04T17:18:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philzen](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@Philzen](https://talk.jekyllrb.com/u/Philzen)\
**Post date:** [May 4, 2020, 5:18pm UTC](https://talk.jekyllrb.com/t/howto-fix-source-files-i-e-md-being-copied-over-to-site/4357/1 "2020-05-04T17:18:11Z")

</div>

In the [project i’m currently building](https://github.com/B-FfF/stadtwerk-mit-zukunft) i created a folder named `/pages` to better organize the many pages i’m going to create:

```auto
pages¬
     swfl.md

```

After building with jekyll, the resulting structure in `_site` is:

```auto
pages¬
     swfl.md
     swfl.html

```

This does not happen for `*.md` files stored in root or `_posts` directory. Also, when i define a `permalink` to another directory via front matter, it will only create the final `.html`.

So how do i stop it from copying over unprocessed source files?

Using jekyll 3.8.5 - any help much appreciated!

---

<div class="post-metadata">

**Author:** ![michaelbach](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelbach/32/2151_2.png) [@michaelbach](https://talk.jekyllrb.com/u/michaelbach)\
**Post date:** [May 5, 2020, 8:58am UTC](https://talk.jekyllrb.com/t/howto-fix-source-files-i-e-md-being-copied-over-to-site/4357/2 "2020-05-05T08:58:44Z")

</div>

This is, indeed, totally unexpected. Just for the heck of it, I just tried your `pages>swfl.md` arrangement, and in my case only `pages>swfl.html` is produced. I’m using Jekyll 4.0, but that can’t be it. Mysterious to me.  
Does `jekyll doctor` produce anything helpful? Or the `--verbose` option with `build`?
