# Get path and template file name for all content

**URL:** <https://discourse.gohugo.io/t/get-path-and-template-file-name-for-all-content/5292>\
**Category:** support\
**Created:** [January 31, 2017, 10:40pm UTC](https://discourse.gohugo.io/t/get-path-and-template-file-name-for-all-content/5292 "2017-01-31T22:40:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterpan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/peterpan/32/1789_2.png) [@peterpan](https://discourse.gohugo.io/u/peterpan)\
**Post date:** [January 31, 2017, 10:40pm UTC](https://discourse.gohugo.io/t/get-path-and-template-file-name-for-all-content/5292/1 "2017-01-31T22:40:15Z")

</div>

Is there a way to get a list of the template files used for all content. I’d like to be able to check and test if any content is for some reason falling back to layouts in the default folder.

---

<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:** [February 1, 2017, 4:04am UTC](https://discourse.gohugo.io/t/get-path-and-template-file-name-for-all-content/5292/2 "2017-02-01T04:04:03Z")

</div>

No…

---

<div class="post-metadata">

**Author:** ![bison58](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bison58/32/12879_2.png) [@bison58](https://discourse.gohugo.io/u/bison58)\
**Post date:** [December 1, 2020, 3:56am UTC](https://discourse.gohugo.io/t/get-path-and-template-file-name-for-all-content/5292/3 "2020-12-01T03:56:22Z")

</div>

You could add something like this in an appropriate place in each template:

```auto
{{ if eq "development" hugo.Environment }}
<pre>Template: layouts/partial/section.html</pre>
{{ end }}

```

---

<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:** [December 1, 2020, 4:10am UTC](https://discourse.gohugo.io/t/get-path-and-template-file-name-for-all-content/5292/4 "2020-12-01T04:10:32Z")

</div>

Closed on December 1, 2020, 4:10am UTC


