Log in Sign up

Generate a list of tags?

How can I create a page that just lists the tags that are being used? Is it possible for it to be auto-updated as well?

For reference I’m using a forked version of Essay 2.

2 replies Asked Sep 10 '21 at 22:51 · Improve this question

Yes, this is possible, using the {{#all_tags}} list. Here are a few steps:

1. Create the view

Create a new template view, perhaps called tags.html, to display your tags. Note you will need a template view, rather than a page, because to make this tag list dynamic will require using template code.

2. Insert the template code

Into your new view, perhaps called tags.html, add the following:

<!DOCTYPE html>
  {{> head}}
    {{> header}}
    <div class="container archive">
    <a href="/tagged/{{slug}}">{{tag}}</a>
    <small>{{entries.length}} posts</small>
    {{> footer}}

This includes some of the surrounding boilerplate to render the header and footer, from the Essay 2 template.

Please let me know if you have any questions about this, I’d be happy to go into greater detail about any of these steps.

Answered Sep 11 '21 at 14:12 · Improve this answer

This worked perfectly. Thank you!

Answered Sep 12 '21 at 23:33 · Improve this answer

Please, log in to add a reply.