Hi,
Loving hugo, thanks for all the work thats gone into it. Everything is working smoothly and incredibly user friendly, however I have one catch.
I have a hugo site, part of that site contains a blog under /blog. By default the taxonomies appear under /tags yet I want them under /blog/tags, so I’ve modified this like so:
[taxonomies]
tag = "tags"
[permalinks]
tags = "/blog/tag/:slug/"
This works nicely, I can now access my tags under /blog/tag/something. However the tag list remains at /tags - I have two related questions:
How can I also relocate this (the tags list) to /blog/tags?
Additionally /blog/tag just shows a white page, I see no errors suggesting its looking for a layout or similar - what’s going on here?
Create a template for blog/tags to render the relevant posts with range
I attempted to do this but think I must be misunderstanding something. My expectation was I could create layouts/blog/tags.html or perhaps /layouts/blog/tags/list.html but it appears both are entirely ignored? I still just have a white page at /blog/tags. So I try creating a content page at content/blog/tags.md - but now /blog/tags just uses the layouts/_default/single.html template like all my other posts. Better than a white page, but not the template I wanted.
No dice, still get a white page. Should have also mentioned I tried /blog/tags/_index.html Is there any way to workout whats causing the white pages? I’m running with hugo server, sometimes I get a 404, sometimes I get an error, sometimes the server console spits out a list of pages that would have matched the one I requested. But this time I get a white page, with no other info anywhere.
Sure no problem, I’ve pushed a minimal example here: https://github.com/adamgibbins/hugo_debugging_example which seems to reproduce the same issue. / works, /blog works, /blog/tags/one/ works and /tags works. But /blog/tags shows a white page.
Thanks for your continued help, greatly appreciated. This looks to do exactly what I want, with one slight catch - it seems I have to create a content .md per tag before I can loop through it with {{ range .Pages }}. Is this correct? Not a big deal if so, just checking as its inconsistent with the taxonomy page that gave me tag listing abilities without content pages attached.
But that contains the tags of the tags index page? Do I have to give all the tags to the index page? But then the index page itself also appears on every tag page.
Usually we assign tags in content files not lists like you have done at your _index.md
In any case I am pretty busy at the moment so it would be best if you opened another Support Topic with your question about ranging through tags. Maybe someone else can help.
In any case I am pretty busy at the moment so it would be best if you opened another Support Topic with your question about ranging through tags. Maybe someone else can help.