# Exclude \_index.md from the loop

**URL:** <https://discourse.gohugo.io/t/exclude--index-md-from-the-loop/5937>\
**Category:** support\
**Created:** [March 27, 2017, 10:33am UTC](https://discourse.gohugo.io/t/exclude--index-md-from-the-loop/5937 "2017-03-27T10:33:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![igramnet](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/igramnet/32/2715_2.png) [@igramnet](https://discourse.gohugo.io/u/igramnet)\
**Post date:** [March 27, 2017, 10:33am UTC](https://discourse.gohugo.io/t/exclude--index-md-from-the-loop/5937/1 "2017-03-27T10:33:48Z")

</div>

У меня есть цикл для вывода всех статей раздела “careers”.

```
			{{ range where .Site.Pages "Section" "careers" }}
				<li data-town="minsk">
					<a class="hid_link_ancor" name="Cloud_Operations_Engineer"></a>
					<div class="location_vacance">
						<div class="town_vacance">Minsk </div>
						<div class="country_vacance">Belarus</div>
					</div>
					<div class="discipr_vacance">
						<div class="title_vac">{{ .Title }}</div>
						<div class="structur_vac">IT & Maintenance</div>
					</div>
					<div class="clr"></div>
				</li>
				{{ end }}	

```

Как мне исключить запись с шаблоном \_index.md ?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [March 27, 2017, 11:05am UTC](https://discourse.gohugo.io/t/exclude--index-md-from-the-loop/5937/2 "2017-03-27T11:05:48Z")

</div>

Use .Site.RegularPages.

---

<div class="post-metadata">

**Author:** ![igramnet](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/igramnet/32/2715_2.png) [@igramnet](https://discourse.gohugo.io/u/igramnet)\
**Post date:** [March 27, 2017, 11:11am UTC](https://discourse.gohugo.io/t/exclude--index-md-from-the-loop/5937/3 "2017-03-27T11:11:59Z")

</div>

Thank you! Super!

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 21, 2020, 1:11am UTC](https://discourse.gohugo.io/t/exclude--index-md-from-the-loop/5937/4 "2020-04-21T01:11:31Z")

</div>

Split this topic on April 21, 2020, 1:11am UTC

A post was split to a new topic: [Exclude \_index.md from list](https://discourse.gohugo.io/t/exclude-index-md-from-list/24913)

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 21, 2020, 1:11am UTC](https://discourse.gohugo.io/t/exclude--index-md-from-the-loop/5937/5 "2020-04-21T01:11:40Z")

</div>

Archived on April 21, 2020, 1:11am UTC


