# Current used template / partial - show name - debug

**URL:** <https://discourse.gohugo.io/t/current-used-template-partial-show-name-debug/11507>\
**Category:** support\
**Created:** [April 12, 2018, 7:21pm UTC](https://discourse.gohugo.io/t/current-used-template-partial-show-name-debug/11507 "2018-04-12T19:21:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Leo\_Merkel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/leo_merkel/32/3321_2.png) [@Leo\_Merkel](https://discourse.gohugo.io/u/Leo_Merkel)\
**Post date:** [April 12, 2018, 8:05pm UTC](https://discourse.gohugo.io/t/current-used-template-partial-show-name-debug/11507/2 "2018-04-12T20:05:05Z")

</div>

Perhaps this helps:

> [@See which template is used by Hugo](https://discourse.gohugo.io/t/see-which-template-is-used-by-hugo/9983/2):
>
> Cool - Thx for sharing and your very good post! I prefer to see the chosen templates and partials as comments in the html. Include e.g. {{ \<!-- \_default/terms.html --\> | safeHTML }} or {{ `\<!-- partials/head.meta.html --\>` | safeHTML }} in the templates and partials. To keep track in the blocks: {{- block "main" . }} {{ `\<!-- block main _default/baseof.html --\>` | safeHTML }} {{- partial "main.blog.date.html" . -}} {{- partial "main.toc.single.html" . -}} {{ `\<!--…

And this for background information:

> [@My experiences with Hugo's template lookup order](https://discourse.gohugo.io/t/my-experiences-with-hugos-template-lookup-order/9959/1):
>
> I just want to share some of my experiences by testing the lookup order for templates. I tested these and wrote them down the same time. Nevertheless I could be wrong in some cases. So if you have better solutions or remarks please don’t hesitate to share. In this example we work with a sample directory hugo-docs and different layout variants. For this purpose we create this directory (content/hugo-docs) and also create an index.md (note the spelling!) in this directory. This index.md will lat…

---

_[View the full topic](https://discourse.gohugo.io/t/current-used-template-partial-show-name-debug/11507)._
