Blot

Create a tags page like the archives page?

It seems like the /archives path is auto-generated for me. I don't do anything, and just magically there is an /archives path with the expected contents. Are there any other magical paths like this? I'm probably calling them the wrong thing, they're probably not called "magical". But specifically what I'm looking for is a magical /tags path that lists all my tags. Thanks!

Asked 6 months ago Edit
4 replies

These pages are defined in your site's template. To discover the pages your template has, you can open up the template editor and view its source code.

Some templates have an index of the tags used on your site. For example, consider the magazine template:

https://preview-of-magazine-on-bjorn.blot.im/tags

You can implement something similar on your template (if it lacks a tags page) using the source code from the tags page on the magazine template:

https://github.com/davidmerfield/blot/blob/master/app/templates/source/magazine/tags.html

Please don't hesitate to ask if you have any questions about this process

4 months ago Edit

I use the magazine template for one of my blogs but I noticed tags page stopped working. The one you linked to above does work so I copied the code for that and completely replaced the existing code and it still reports an error (so I reverted it back).

The page: https://notes.alongtheray.com/tags

How can I fix this?

Thanks, Ray

3 months ago Edit

It's no longer possible to list every entry under every tag any more. This kind of page is impractical to render on large sites (thousands of posts and tags). For now, it's only possible to implement a similar page to the magazine template:

https://preview-of-magazine-on-bjorn.blot.im/tags (i.e. show all the tags and the number of posts associated with each tag).

I managed to clear the error by removing the {{#entries}} code here:

https://notes.alongtheray.com/tags

Does that help? Please let me know if you have any questions about this or anything else

3 months ago Edit

Ah, that makes sense. Thank you.

Ray

3 months ago Edit

Your reply