-
Notifications
You must be signed in to change notification settings - Fork 295
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
Opt out of self-closing tags #486
Comments
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
I'd still like this, and I think someone on my team might have an implementation at least started. |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
Still important, please keep this open. @samford: Did you get a chance to upstream your changes? |
I have this issue as well. Would love to see it fixed. |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
Looking into this again, it appears that there's a related open PR but it only covers removing the trailing slashes entirely. When I last left this, I created two potential implementations: one that uses a site variable in In both approaches, the literal forward slash ( From the outside, this seems like a decent compromise between the extremes of always self-closing tags or never self-closing tags (as in the linked PR). However, I'm not sure that either of these approaches are necessarily compelling in terms of the actual code involved. The existing That said, if this doesn't end up going anywhere (or if you want a workaround in the interim time), I found that you can capture the plugin output into a variable and call the
The It's a naive replacement and isn't foolproof (i.e., it could potentially replace text that we don't want it to) but should seemingly work for most cases. |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
I surmise that the presence of self-closing tags in jekyll-seo-tag's template is because these are ~needed because Jekyll technically supports XHTML still (evidenced here and here).
I'd like these not to be in my output, as they create noise in validations since they're optional in HTML5 but not optional in XHTML.
I'd love to detect the type based on
page.url
but I think it's safer to enable an opt-out when calling the plugin, e.g.Would either of these suffice?
The text was updated successfully, but these errors were encountered: