-
Notifications
You must be signed in to change notification settings - Fork 27
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
No permalink URL in {% webmentions page.url %}
template despite url
property in webmentions
#175
Comments
I noticed that myself, it's because the attribute isn't |
This commit is intended to address issues #175, #176, and #177. It is a fairly involved reworking of these templates that standardizes the layout and, I hope, does a better job of rendering h-card information for posts and so forth. These changes introduce some structural changes to the HTML, including consistently embedding webmention content in article tags, and repositioning some of the relevant classes. Any users of the default templates will want to inspect these changes and make corresponding changes to their CSS. Now, I have to admit, the sheer amount of code duplication across these templates fills me with sadness, but because of the need to support both client- and server-side template rendering, these things kinda need to stand on their own. I did explore the use of custom filters to render blocks like the h-card using their own templates, but figuring out how to make a custom filter on the JS side, not to mention testing it, was beyond my ken.
So naturally the native rendering without styling is going to look a bit silly, as the output HTML is designed to be styled. If you check out this page on my site: https://b-ark.ca/2023/09/25/yanagi-socks.html You can see how I've formatted things. First, I used the type-specific webmention tags to group things up rather than spitting out a flat list of every webmention in chronological order (I'll be honest, I don't actually think the So instead of just Then I've used CSS to format those lists into facepiles and so forth. I've also customized the templates a bit including, yes, fixing the issue you've identified here (though I've pushed a changeset to, among other things, incorporate the fix into the stock templates). |
I don't quite understand how this is possible. The template code is
The response from `https://webmention.io/api/mentions.jf2?target=https://paperless.blog/nix-shell-template' is
This should result in a page with a "Permalink" URL for both entries, but instead the resulting HTML is
Why do neither of the
webmention__meta
divs have permalinks?The text was updated successfully, but these errors were encountered: