I wanted to add a code, that would list all my albums on my websitecom/music/
But when I added this code
{{ range where .Site.RegularPages "Tags" "album" }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{end}}
It didn’t even show me some kind of error, it just… pasted it… into html itself.
<div id="categories-3" class="widget widget_categories">
<h3>Альбомы</h3>
{{ range where .Site.RegularPages "Tags" "album" }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{end}}
</div>
And now I’m really confused. Can’t find anything about this error, because, well, I can’t figure out the name of this error.
My files are structured like this:
- content
-
- music
-
-
- index.html ← code is here
-
-
-
- holyshot.html ← album that has an “album” tag
-
To be honest, I’m an amateur, and I learned this HUGO thingy by trial and error. So if the solution is really simple – just tell me what I should read about, and I’ll do it myself. I can’t even check if this code is correct, because it does nothing rn