Hi.
Hugo beginner here, with some programming background, good knowledge about HTML, CSS, http etc.
I understand that the final page is composed of several templates. Usually the _default/single.html
or _default/list.html
file is composed into _default/baseof.html
, probably with some other like head, header, footer and so on. So far so good.
Since I have a hard time understanding the template lookup rules, I modified the single.html and list.html files from the theme I use (PaperMod). I simply included a paragraph containing a single letter S or L to see which template was used to produce the output.
To my surprise, most pages in my testing website do not make use of any of those two (single, list). I thought it had to be one of those two, unless I override the type in frontmatter (which I didnβt).
The layouts/_default
dir of the theme does have some more files like search.html
and terms.html, but I am pretty sure that these are not used because I do not see the content of these files.
So where does the output come from, which template was used? And how can I fΓnd that out by myself?
Here is the dir structure I have right now. Only two files show that they use single/list and baseof. All other files display also fine, but do not show my additions to identify the template. The other layouts/_default
dir is empty except for some shortcodes I use.
content
βββ about
β βββ index.md <- (uses 'single.html')
βββ ci-v
β βββ _index.md
β βββ changelog.md
β βββ ci-v bus adressing.md
β βββ general command structure.md
β βββ introduction.md
β βββ principle of operation.md
βββ index.md <- (uses 'list.html')
βββ kiwisdr
β βββ index.md
βββ posts
βββ Vortrag SDR EinfΓΌhrung GPN 2023.md
βββ Vortrag SDR EinfΓΌhrung SDR Academy.md
Cheers,
Ekki