# How to skip a README.md in a specific folder?

**URL:** <https://discourse.gohugo.io/t/how-to-skip-a-readme-md-in-a-specific-folder/30742>\
**Category:** support\
**Created:** [January 19, 2021, 1:46pm UTC](https://discourse.gohugo.io/t/how-to-skip-a-readme-md-in-a-specific-folder/30742 "2021-01-19T13:46:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oshliaer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/oshliaer/32/1641_2.png) [@oshliaer](https://discourse.gohugo.io/u/oshliaer)\
**Post date:** [January 19, 2021, 1:46pm UTC](https://discourse.gohugo.io/t/how-to-skip-a-readme-md-in-a-specific-folder/30742/1 "2021-01-19T13:46:17Z")

</div>

All of my Hugo’s project work awesome! Thanks!

And now I need to copy a static structure to the `content` folder.

My structure

```auto
- content
  - en
  - ru
    - article
    - post
    - laboratory
      - vendors
        - README.md
      - item1
      - item2
      - itemN

```

All works as I expect. But I need to skip build `README.md` and leave it as it is. I need all files from [http://127.0.0.1:1313/laboratory/vendors](http://127.0.0.1:1313/laboratory/vendors) should returned as files without any external html.

At the moment it’s not like I want. My public folder is

```auto
- public
  - article
  - post
  - laboratory
    - vendors
      - readme
        - index.html
    - item1
    - item2
    - itemN

```

I need skip only this `readme/index.html`. This is mainly associated with licenses or with the supply of code from outside. I would not want to control unnecessary files where they are not needed.

At now my builds kill the extra files and folders but I think the Hugo can do more and that feature can be independent of a theme.

Best!

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [January 19, 2021, 2:36pm UTC](https://discourse.gohugo.io/t/how-to-skip-a-readme-md-in-a-specific-folder/30742/2 "2021-01-19T14:36:24Z")

</div>

You want to ignore content files when rendering? Google “ignore content files when rendering gohugo” and get this result:

> **[Configure Hugo](https://gohugo.io/getting-started/configuration/#ignore-content-files-when-rendering)**
>
> How to configure your Hugo site.

Other than that: Hugo’s only job is to (and I don’t use that term if it does not fit) literally create a website from md files 😉 don’t add md files that you don’t want to render 😉

```auto
ignoreFiles = ["content/ru/laboratory/vendors"]

```

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [January 19, 2021, 7:10pm UTC](https://discourse.gohugo.io/t/how-to-skip-a-readme-md-in-a-specific-folder/30742/3 "2021-01-19T19:10:08Z")

</div>

> **[Configure Hugo](https://gohugo.io/getting-started/configuration/#ignore-content-files-when-rendering)**
>
> How to configure your Hugo site.

`ignoreFiles = ["vendors\\.*"]`

could do the trick (not tested)

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [January 21, 2021, 7:10pm UTC](https://discourse.gohugo.io/t/how-to-skip-a-readme-md-in-a-specific-folder/30742/4 "2021-01-21T19:10:09Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
