We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Make sure the tag name exists before hyperlinking to it
We currently do this for authors in layouts/post.njk:
layouts/post.njk
{% set authorInfo = collections.authors[author] %} {% if authorInfo %} <a href="/pages/authors/{{author | lower}}">{{ author }}</a> {% else %} {{ author }} {% endif %}
We could probably do the same for tags as we loop through before making them all hyperlinkable
{% for tag in tags | contentTags %} <li class="tag"> <a href="/tags/{{tag}}" class="tag-badge">{{ tag }}</a> </li> {% endfor %}
The text was updated successfully, but these errors were encountered:
#84 - don't link to tags that don't have landing pages
87ffdd3
No branches or pull requests
Make sure the tag name exists before hyperlinking to it
We currently do this for authors in
layouts/post.njk
:We could probably do the same for tags as we loop through before making them all hyperlinkable
The text was updated successfully, but these errors were encountered: