Question: Easiest way to add Mastodon verification to social link #3254
-
In order to verify a Mastodon user, you simply add I was considering following the Injector Plugin model, and using BS4 to modify the HTML output before final write. Another thought was to make a customized version of the default template, which presumably would use Jinja2 logic to insert the Which of these two paths is the most in line with the preferred way of doing things? Is there another method that might be better? Bonus points: It doesn't look like Mastodon is a known social link, and my site isn't displaying its icon. Is there a way I can add it? I assume this is done in CSS because I didn't see the images for YouTube, GitHub, etc, rendered in the HTML. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello In one of the template files: (bottom of navigation in my case)
In pelicanconf:
[I removed it so I show you placeholders, but I did it like that, simple enough. It may be simplified again, maybe] |
Beta Was this translation helpful? Give feedback.
-
The short answer to both questions is to either (1) submit a PR that modifies the upstream theme (presumably the default Longer answer for the first question: I think perhaps a PR adding <li><a rel="me" href="{{ link }}">{{ name }}</a></li> Longer answer for the second question: I believe all the social icons were recently removed from the default theme due to concerns about provenance, copyright, etc. If someone were to submit a PR adding an "unencumbered" icon for Mastodon, I imagine that would be gladly received and merged. 😊 |
Beta Was this translation helpful? Give feedback.
The short answer to both questions is to either (1) submit a PR that modifies the upstream theme (presumably the default
notmyidea
theme?), or (2) copy that theme and modify it locally.Longer answer for the first question: I think perhaps a PR adding
rel="me"
to the relevant line in the theme template might be one way? That is:Longer answer for the second question: I believe all the social icons were recently removed from the default theme due to concerns about provenance, copyright, etc. If someone were to submit a PR adding an "unencumbered" icon for Mastodon, I imagine that would be gladly received and merged. 😊