Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prioritize one of post tags #355

Closed
dziudek opened this issue Feb 26, 2019 · 1 comment
Closed

Prioritize one of post tags #355

dziudek opened this issue Feb 26, 2019 · 1 comment
Assignees
Labels
new feature New feature or request
Milestone

Comments

@dziudek
Copy link
Collaborator

dziudek commented Feb 26, 2019

It will be useful e.g. for breadcrumbs and SEO (proper SERPs).

ref. https://publii.ticksy.com/ticket/1899413/

@dziudek dziudek added the new feature New feature or request label Feb 26, 2019
@dziudek dziudek added this to the 0.34 milestone Feb 26, 2019
@dziudek dziudek self-assigned this Feb 26, 2019
@dziudek dziudek changed the title Prioritize one of tags Prioritize one of post tags Feb 26, 2019
@dziudek dziudek modified the milestones: 0.35, 0.34.2 Jun 3, 2019
dziudek added a commit that referenced this issue Jun 25, 2019
@dziudek
Copy link
Collaborator Author

dziudek commented Jun 25, 2019

Example:

               {{#if mainTag}}
               <div>
                  <a href="{{ mainTag.url }}">
                     MAIN: {{ mainTag.name }}
                  </a>
               </div>
               {{/if}}

Important! mainTag is empty only if the post has no tags. If the main tag is not set the main tag is set to the first tag of the post (using alphabetical order).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants