-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[FEATURE] new opengraph 'fediverse:creator' meta #1619
base: master
Are you sure you want to change the base?
[FEATURE] new opengraph 'fediverse:creator' meta #1619
Conversation
Hi @David-Guillot I think its better if we add it to hugo's templates over here. https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/opengraph.html cc @jmooring |
This would be another opinionated change to one of Hugo's embedded templates; I am not in favor of doing this. If it were up to me I would remove Hugo's embedded opengraph template (and others) from the code base. |
@adityatelange I think I agree with you: this theme is about styling a Hugo blog, not adding features that could apply to all Hugo bolgs. I just didn't think of opening a PR to @gohugoio/hugo . @jmooring , are you saying that porting this PR to @gohugoio/hugo is a bad idea, because it would make Hugo too specific about what the web landscape is? How do we move forward from here? |
I'm saying that this should be implemented at the theme or site level. |
Think not of like a hugo author but a theme author. we have a feature dependency here with cover images which we cannot hot-plug into hugo's templates. I had to overwrite embedded templates because we don't have a way to add hooks to these templates. If you have a better way of doing this please suggest. For hugo this is not a hurdle because the feature we are talking about is also a opinionated feature here. |
I see we also support multiple authors in meta tags, so in order to have this supported we'll not just need one name but a mapping of each authors fediverse id. Is it feasible? idk |
In my view many of the embedded templates are, at best, opinionated examples, and should be overwritten by theme authors to achieve the desired outcome. Over the years I've examined thousands of sites, and I have seen all of the configuration constructs below:
Is one of these better than the others? No; it depends on what the site or theme author has in mind. |
Yet another reason for handling this at the theme or site level. |
True |
I'll try to figure that out next week. Meanwhile I'll convert this PR to draft. Thank you both for the discussion! |
62961e9
to
76cc50b
Compare
... based on the fediverseCreator param of the post defaulting on the site.
76cc50b
to
c9d8daf
Compare
Quality Gate passedIssues Measures |
@adityatelange for now, as you can see in The Technical section of Mastodon's announcement, multiple authors are not yet supported on their end. So I just rebased this PR for now, let me know if you want to integrate this change as-is, in which case I'll set the PR ready for review. |
The mentioned article is from 2024-07-02 says:
This is very vague and might be never. The following sentence about "coming weeks" is not about multiple authors but about the single creator attribution they just announced for Mastodon.
I think there is no use on waiting for a new spec unless there is already a draft of the spec with multiple author attribution somewhere. |
What does this PR change? What problem does it solve?
This PR adds support of this new Mastodon 4.3 feature for highlighting journalists and bloggers.
It does so by adding a new OpenGraph meta based on a new param which can be placed on a post or on the Hugo site.
Was the change discussed in an issue or in the Discussions before?
Closes #1618
PR Checklist