Sign in

Homepage Tag list not contained – Mercury theme

  • This topic has 4 replies, 2 voices, and was last updated 3 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4192
    Avatar photoHemMan

    Hi, I have recently started with Publii, and I must say, its really a job well done.
    I am using the most recent version of Mercury (v2.2) with “mainTag” option, to better filter the posts in the home page. However, even with the “mainTag” option set on all my posts, the homepage displays all the tags that I used everywhere on the website.

    Do you know if it could be possible to contain the tags-list in the homepage to just ‘mainTags’. I have tried to edit index.hbs, but in vein. Could someone help me out here. Thank you!

    #4194
    Avatar photoBob

    The filter list always shows all tags, the difference is it can filter posts by all tags or only maintag what it’s very helpful if you tagged your posts with multiple tags but want to filter by the only one (the maintag).

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #4202
    Avatar photoHemMan

    Hey bob, Thats true. Its pretty useful feature. But I feel there could be an option to list just mainTags instead of all tags. From the index.hbs, I have attached a screen which I feel could be edited a little to make such change. I could evaluate so much, but I’m blank after that.

    {{#each tags}}
       
  • <button class="filter__item" data-filter=".{{slug}}">{{name}}</button>
  • {{/each}}

     

    #4204
    Avatar photoBob
    HemMan wrote:

    an option to list just mainTags instead of all tags

    Unfortunately, it is not possible this way.
    But I think you can try to use the getTags helper to achieve the desired effect

     

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #4205
    Avatar photoHemMan

    Thank you! I will check it out and post updates.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.