#dev 2025-05-07

2025-05-07 UTC
grufwub, claudinec, CRISPR, _123nick[d], sivoais, sp1ff, Maxpm and [Arunkumar_Govi] joined the channel
#
[Arunkumar_Govi]
Can someone help me with a guide create an automated newsletter from my blog post on Blogger?
#
[Arunkumar_Govi]
`Context:`
#
[Arunkumar_Govi]
Currently I am writing on my blogger website which no in build subscription. I want to build a subscription and an automated way through which I can help my readers find my blogs and updates easily.
[jeremycherfas] joined the channel
#
[jeremycherfas]
There are services, such as Buttondown, that will take your RSS feed and turn it into an email newsletter, if that is what you would like.
#
[tantek]
What is RSS to email?
#
Loqi
It looks like we don't have a page for "RSS to email" yet. Would you like to create it? (Or just say "RSS to email is ____", a sentence describing the term)
#
[tantek]
Huh I thought we had a page on that
barnaby, [qubyte], Guest6 and CRISPR joined the channel
#
Loqi
[preview] [rss2email] rss2email: Forward RSS feeds to your email address, community maintained
CRISPR, ttybitnik, claudinec, bterry1, barnaby and [snarfed] joined the channel
#
[tantek]
[snarfed] is BridgyFed behind in its queues? It acknowledged a 202 for my most recent post (listed at top of https://mention.tech/) however it's not showing up in my BF profile: https://fed.brid.gy/web/tantek.com
#
[tantek]
(for over 10 minutes, which I don't think I've seen except when something is broken)
#
[snarfed]
it's not behind right now, no
#
[snarfed]
is this https://github.com/snarfed/bridgy-fed/issues/884 again? does your post have a non-https link that isn't serving?
#
[snarfed]
you can also see if it shows up on any of your non-Mastodon followers' instances
#
Loqi
[preview] [Tantek Γ‡elik] Last Friday I published my second Cybersecurity Friday post with three more key steps for cybersecurity. In summary: 1. Different email address for each account, AKA email masking. Use or create a different email alias for each service you sign-up f...
maxbanister joined the channel
#
[snarfed]
oh interesting
#
[snarfed]
I liked that post before you first sent it to BF, so it looks like you hit https://github.com/snarfed/bridgy-fed/issues/1835
#
[snarfed]
on my list to fix. in the meantime, if you send your wm again with &force=true, that should push it through
#
[snarfed]
you got one like, that should be enough, call it a day and go to the beach right? :trollface:
#
maxbanister
[snarfed] I had a dev question about Bridgy Fed: for a post bridged from ActivityPub to ATProto using BF, is it possible to get the URI of the new post on the AT side, so I can link to it on my site? I see the docs mention that there's a URL to the original Fediverse post in the AT record, but is it possible to go the other way? Thanks in advance.
#
[tantek]
[snarfed] πŸ˜‚ but does it count if BF doesn't report the like?
#
[snarfed]
maxbanister prefix it with http://bsky.brid.gy/r/ !
#
[snarfed]
[tantek] BF wasn't involved
#
[snarfed]
what do you take me for, a silo hugger
#
[snarfed]
sorry I'm evidently feeling punchy this morning 🀷
#
[tantek]
lol [snarfed] adding "&force=true" worked ... with mention.tech somehow. Can't help but wonder if that means mention-tech is not escaping query parameters in URLs and thus it got passed through to the webmention endpoint request, or if it was escaped, and thus BridgyFed thought it was retrieving a different URL
#
maxbanister
Prefix what, the object id? I get: No web user found for any of {'maxbanister.com'}
#
maxbanister
And thanks for the quick reply :)
a-dream, [aciccarello] and barnaby joined the channel
#
[snarfed]
[tantek] no this is an entirely BF-internal bug, mention.tech was fine before
#
[tantek]
[snarfed] I mean I was able to put &force=true on the end of my "source" URL in the input field on mention-tech and that "worked" to trigger BF to F πŸ˜†
#
[snarfed]
maxbanister ah sorry, prefix the fediverse post's URL or AP id, I think both should work
maxbanister joined the channel
thegreekgeek joined the channel
#
maxbanister
I still get the "no web user found" error, which doesn't seem right since i'm an AP user
thegreekgeek_ and gRegor joined the channel
#
maxbanister
it seems to work in the other direction FWIW: https://fed.brid.gy/r/https://bsky.app/profile/maxbanister.com/post/3locl65y4dbs2
#
[tantek]
I think that's what "prefix the fediverse post's URL or AP id" means? Like it only works that direction
#
maxbanister
sorry, I don't get what you're saying. are you saying that my premise of going from a fediverse post id URI to a Bluesky address is flawed?
#
doesnm
maxbanister: did someone subscribe to your fediverse?
#
maxbanister
i really don't know how ATProto works, so I have no idea how easy it is to get a reference to a post that came from a fediverse post
#
maxbanister
yeah, i'm following myself with my test account
#
[snarfed]
maxbanister sorry, you're right, I misspoke, https://bsky.brid.gy/r/ is primarily for bridged web sites
#
[snarfed]
I'll look a bit more
#
maxbanister
thanks! i'll take my discussion to github
barnaby, [0x3b0b], claudinec, ttybitnik and btrem joined the channel
#
btrem
I'm working on a footnotes plugin for my site. Question for 11ty devs: is there a way to count the number of times a shortcode has been called in a single markdown file? I'd like to simply order my footnotes in front matter, and call a shortcode for each reference in the text, and have it put it the right number/mark.
#
[aciccarello]
Oh, good question. What templating language are you using?
#
[aciccarello]
If you write posts in markdown, I would actually look for a markdown-it plugin instead of using a shortcode
#
btrem
nunjucks
#
btrem
I looked at a markdown-it plugin. Problem is the footnote then appears in the <main> element of my page. There's no way to pull it out. And I want the footnotes to appear in a separate html container.
claudinec joined the channel
#
btrem
I don't think there's a way to have a shortcode keep track of itself, but I thought I'd ask. Not the end of the world; it just means I'll have to specify the number in my shortcode, e.g., `{% fn 1 %}`, `{% fn 2 %}`, etc. instead of `{% fn %}` , `{% fn %}` etc.
#
[aciccarello]
I'm wondering if there's a way to define the footnote in the shortcode, have it save the value to some state/array, and then reference that in another shortcode.
#
[aciccarello]
So you would get automatic numbering and you could define the text of the footnote where the link would appear in the page.
#
[aciccarello]
I'm not 100% sure where you'd store that state though.
gRegor joined the channel
#
btrem
Hmm, yeah, not sure how I'd even begin to do that. I sort of like having the footnotes in front matter, in a yaml array of strings. More or less what you'd have done with a typewriter back in the day: in the text, put in the refs; at the bottom, type the footnotes in order, one after the other.
#
btrem
The only difference is I'm typing them in at the top, in front matter. But otherwise sort of the same.
#
btrem
Aside: I'm practically inviting an off-by-one error, because the array numbering starts at 0, while the <ol> element starts at 1. :-o
tei_ joined the channel
#
[tantek]
What is a footnote?
#
Loqi
A footnote is a typographical convention predating the web for indicating more information is available about a word, phrase, or sentence by the use of an immediately adjacent superscript (usually a number), and the presentation of the same superscript followed by a note, often a citation, in the footer of the page, and sometimes used on the web instead of inline hyperlinks to reduce reader distraction https://indieweb.org/footnote
#
[tantek]
Anything there you can use?
tei_ joined the channel
#
btrem
No, at this point it's just a matter of writing 11ty/javascript, css, and nunjucks code. I have something working pretty well. My template displays footnotes in an <ol> element outside of the <main> element. The <li> elements have unique id attributes. Finally, a shortcode shows a reference in the text, inside a <sup>erscript element, with a document fragment link to the note.
#
btrem
One feature I'm rather pleased with is I can opt to use symbols (e.g., †, ‑, Β§, etc.) instead of numbers. Which is probably what I'll use most of the time. My first use of a footnote for my site is not a citation (or cite -- homophone!), it's to provide a bit of explanation that isn't needed in the main text.
roxwize_ joined the channel
#
btrem
The only thing I couldn't figure out is how to automatically number the references.