This would allow me, among other things, to mention my Mastodon account at the end of each post, so I will be directly notified on Mastodon of any replies from readers. This would be a first step to interact with my readers. At least until Remark.as is available
I still have a question before giving in to the temptation: if I activate the add-on now, will it impact my already published posts? Or will the signature only be added at the end of new posts, those published after the add-on has been activated?
This works for me too. Part of the reason I cannot remove the signature from my pinned pages is because I cannot target it with Javascript. I believe it renders as just a <p> element. And because of that, Iāve stopped using it.
Just to say, Iām in favour of not displaying signatures on pinned post at all. We all used pinned post to create a dedicated page like ācontactā, āaboutā, etc. where signatures do not have much sense.
And even if it would, then nothing would prevent to add it manually at the bottom, like it was before. Is it that hard to remove signatures from pinned post ?
Otherwise, Iāll just stop using it as @dino. But seems a little bit unfair to have paid for this feature (which I did it mostly to support write.as which I found really cool, both the environment and community), and ending not using itā¦
I managed to figure out how to target it, so I have a workaround to this. I was going to write a post about it, but havenāt gotten to it yet. But yes, I would still like the option to just not have it show up on pinned pages.
Anyway, here is my workaround.
First of all, this is my post signature:
<div id="post-signature">
<div class="alert-info">
Find me on Mastodon (@dino@writing.exchange) or Micro.blog (<a href="https://micro.blog/Dino" target="_blank">@Dino</a>)
</div>
</div>
Note the post-signature id on the div.
This is the custom JavaScript I wrote to hide it.
/* Remove Post Signatures on Pinned Pages */
var y = document.getElementById("post-signature");
if (y && isArchivePage || isSearchPage || isCommentsPage || isSeriesAndTagsPage || isAboutPage) {
y.setAttribute("id", "post-signature-hidden");
}
/* Remove Post Signatures on Home Page posts */
if (!document.getElementById("post-body")) {
var sigs = document.querySelectorAll("#post-signature");
var i;
for (i = 0; i < sigs.length; i++) {
sigs[i].setAttribute("id", "post-signature-homepage-hidden");
}
}
And finally, these are the custom CSS settings to hide it on the homepage and pinned pages:
Thanks for the discussion, everyone. With this, I agree it makes sense to just hide the post signature on all pinned posts. So I think thatās what weāll do. Will keep you updated on when thatās live!