testscripts/commands/hugo__path-warnings_issue13164.txt
raw| 1 | hugo --printPathWarnings |
| 2 | |
| 3 | ! stderr 'Duplicate target paths' |
| 4 | |
| 5 | -- hugo.toml -- |
| 6 | disableKinds = ['page','rss','section','sitemap','taxonomy','term'] |
| 7 | -- assets/foo.txt -- |
| 8 | foo |
| 9 | -- layouts/home.html -- |
| 10 | A: {{ (resources.Get "foo.txt").RelPermalink }} |
| 11 | B: {{ (resources.GetMatch "foo.txt").RelPermalink }} |
| 12 | C: {{ (index (resources.Match "foo.txt") 0).RelPermalink }} |
| 13 | D: {{ (index (resources.ByType "text") 0).RelPermalink }} |
| 14 | -- layouts/unused/single.html -- |
| 15 | {{ .Title }} |