bitcoinops/bitcoinops.github.io

Make it possible to link directly to headers

casey opened this issue · 2 comments

casey commented

I prepare the reading list for SF Bitcoin Devs, and use Bitcoin Optech newsletters heavily. (Thank you!) I'll often include a link to an item, as well as a link to the Optech summary. For individual items, this works, as the HTML includes anchor tags. (for example this one).

But there isn't an easy way to get links to whole sections. For example, I'd like to include a link to this PR review club PR, but there isn't easy way to get an anchor tag from the newsletter that includes it.

It's actually possible to construct one manually, using the text of the tag, link, but it would be nice if there was a link that could be copied directly from the newsletter.

This is an incredibly minor QoL issue, so no worries if it's annoying to implement.

@casey thanks for hosting bitdevs and for highlighting Optech there!

There are anchor links for the the section headers as youve also discovered. I just inspect element to get the ID when I link to those sections myself (for the Optech twitter thread newsletter summaries). Those IDs/anchor links should be static for each newsletter. I defer to others on if we want a UX element surfacing that anchor link, perhaps appending a 🔗 icon after the headers, or if we leave this as is.

Note: For the PR Review section, you can also link to individual items in a similar way. Example: https://bitcoinops.org/en/newsletters/2022/12/07/#what-problem-does-this-pr-address

If there's a not-too-ugly way to add anchor links, I'm all for it.

An alternative is that we could make the intro paragraph link to each section. E.g., here's our intro from last week with links added:

This week’s newsletter summarizes a proposal for serverless payjoin and describes an idea for allowing proof of payment for LN async payments. Also included is our regular section with descriptions of notable changes to popular Bitcoin infrastructure software.