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

Ability to set a link class/type #148

fluffy-critter opened this Issue Dec 20, 2018 · 1 comment


None yet
1 participant
Copy link

fluffy-critter commented Dec 20, 2018

Expected Behavior

It'd be nice to be able to set a link_class on a [] or ![] so that a link can be designated as a u-like-of, u-in-reply-to, u-repost-of, u-mention-of, etc.


Useful for webmention purposes.


This comment has been minimized.

Copy link

fluffy-critter commented Dec 22, 2018

although this could also be handled in a template as-is, like an entry can have:


and then a template can be all

{% for type in ('like-of', 'in-reply-to', 'repost-of', 'bookmark-of', 'mention-of', 'rsvp') %}
{% for link in entry.get_all(type) %}
<a href="{{link}}" class="u-{{type}}"></a>
{% endfor %}
{% endfor %}

so for webmention support this isn't necessary. I'll keep it open in case someone else wants to comment with a reason though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment