Newsletter collection in homepage and newsletter page

I would like to have posts tagged as newsletter showing up on both my homepage (where all posts show up) as well as on a dedicated newsletter page (where only newsletter posts show up).

How can I edit the routes.yaml file to do this?

  /signup/: members/signup
  /signin/: members/signin

  /account/: members/account
  /tags/: tags

    permalink: /newsletter/{slug}/
    template: newsletter
    filter: tag:newsletter
    permalink: /{slug}/
    template: index

  tag: /tag/{slug}/
  author: /author/{slug}/

Right now I have this. Newsletter posts show up just fine at /newsletter/, but then newsletter posts don’t show up on index. From the docs, it seems that filters only match the first collection it finds. How can I make it match more than one collection?

Another question so I don’t have to create a new thread: Is there documentation for the new email card? If I want to display the full name instead of just the first name, do I just do {name, “there”}? What other data is available, because in the docs, members data is spelt as members.firstname, but in the email card, it’s first_name with an underscore.

I think the feature you’re looking for is channels:

re: your email card question, I’m not sure about docs, but I think the only field supported is first_name at the moment

1 Like