DEV Community

Cover image for Tag page in main menu for empress-blog
Michal Bryxí
Michal Bryxí

Posted on

2 1

Tag page in main menu for empress-blog

If you want to add a link to a particular tag in empress-blog to your main menu, you just have to specify route as tag and id as your particular tag. Let's say my tag is going to be called munro:

❯ ember g tag munro
Enter fullscreen mode Exit fullscreen mode

And I want a link to a page that lists all the articles that contain this tag in my main menu. All I have to do is add to config following lines:

// config/environment.js

module.exports = function (environment) {
  let ENV = {
    blog: {
      navigation: [
        {
          label: 'Munros',
          route: 'tag',
          id: 'munro',
        },
      ]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Screenshot

Munro tag page link preview on empress-blog

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more