2020-09-07 UTC
[KevinMarks], cambridgeport90, geoffo, KartikPrabhu, jonnybarnes, fauno_, [tantek], [tw2113], [chrisaldrich], [fluffy], treora, beko, nickodd, [jeremycherfas], [LewisCowles], cweiske, swentel, [James_Gallaghe], moppy, [Murray] and [jgmac1106] joined the channel
# 17:05 GWG Someone fixed their Micropub auth problem by setting the permission function to always return true
# 17:05 GWG I worry if I don't solve the problem people will become negatively frustrated
[jeremycherfas] joined the channel
# 17:31 GWG [jeremycherfas]: As in do something unfortunate
geoffo, jonnybarnes and [fluffy] joined the channel
# 17:53 [fluffy] Positive frustration leads to things like BLM protests and sweeping social change
swentel, [snarfed], jonnybarnes and [tantek] joined the channel
# 18:52 [jeremycherfas] We’ll have to agree to disagree. A positive response to frustration is great and can effect huge changes. But it is borne of a desire to remove the frustration, which is not desirable.
# 18:55 [tantek] discomfort can be useful for remembering and growing empathy, to help motivate advocating and advancing social changes that benefit those less fortunate
jamietanna joined the channel
# 19:05 jamietanna also GWG I think maybe having the profile image redirecting could be useful, but I wonder if it always redirecting could be a pain for clients who would want to cache
# 19:07 GWG jamietanna: I think it is a weird combination of server configuration and code. That's why some people have no issue
# 19:07 GWG jamietanna: As for the profile image redirect, I am setting cache control headers which should, on supporting systems, cache the redirect.
# 19:08 GWG According to RFC2616, a 302 response is only cacheable if indicated by a Cache-Control or Expires header field
# 19:10 GWG Still puts it in the retrieving site's ballpark
# 19:11 GWG The alternative was to download the profile image and serve it
ndegruchy, KartikPrabhu and [schmarty] joined the channel
# 19:38 aaronpk okay how do i get the little copyable anchor icons like github readmes have
# 19:40 [fluffy] I have a thing like that on publ.beesbuzz.biz that’s all done in CSS if you’re interested
# 19:41 [fluffy] well, mine are always visible but it’s easy enough to make it not be
# 19:42 [tantek] This feels like a very old discussion, where we discussed automatically giving every heading and paragraph its own fragment permalink that was revealed upon hover
# 19:42 [fluffy] so like, I have <h2 id=“foo”><a href=“#foo”>Foo Header</a></h2> in the HTML
# 19:43 [fluffy] and then in the CSS I have some ::before and ::after rules, and you can do like h2:hover a::before { content: ‘¶’ }
# 19:43 aaronpk oh i think i've tried this before, you can't create an anchor link in css
# 19:43 [tantek] if you literally want GitHub style, then you DON'T want to hyperlink the text of the heading the way [fluffy] does
# 19:44 [fluffy] oh yeah you can also do <h2 id=“foo”><a href=“#foo”></a> Foo</h2> or whatever
# 19:45 aaronpk yeah there's no way to do it without changing the HTML huh
# 19:45 [tantek] right that sort of thing, with it being visibility:hidden by default, then a hover rule on the h2 that sets the a href to visibility:visible
# 19:45 [fluffy] I don’t like having things that appear/disappear only on hover so my specific rules are a bit different than what I said above, I just change the opacity of the `#` mark
# 19:45 [tantek] presumably your HTML already has the link, that's the assumption
# 19:45 aaronpk the problem is i'd have to change my markdown processor to add something into the HTML, which sounds hard
# 19:45 [fluffy] You could keep the HTML the same and use `text-decoration: none` for h2 a, or something
# 19:45 [tantek] and that you only need the CSS to hide it normally and show it on hover
# 19:45 [fluffy] Publ does let you change the heading templates so that you can format the headings however you want, link-wise
# 19:46 [tantek] not a bad idea, those links are only for users anyway, not bots
# 19:46 [schmarty] if you want the github-style "one click to copy to your clipboard" you'll need JS anyway.
# 19:46 [fluffy] I’m not a fan of javascript post-processing but that’s a fair point
# 19:46 aaronpk the other problem is right now there's not enough space between the left of the header and the edge of the container to insert an icon so i have to move it or show the thing at the end
# 19:46 [tantek] yeah, right-click to copy link is usually good enough IMO
# 19:47 [tantek] originally you said GitHub style so now we're talking about something else
# 19:48 [fluffy] GitHub style just seems like it adds some left margin on everything, and then there’s a :hover rule to put the little link icon off to the left, probably using absolute positioning
# 19:49 [fluffy] and I’m not going to dig into their probably enormous stylesheets but I’m guessing the rules they use are something like: h2:hover a { position: absolute; left: -1em; display: block; content: ‘🔗’; } and h2 a { display: none; }
# 19:50 [fluffy] hm no they’re actually injecting `<svg>` tags into the HTML
# 19:51 [fluffy] so it’s like `<h2><a id="foo" href="#foo"><svg>...</svg>Foo</h2>`
# 19:52 [fluffy] and then presumably there’s an h2:hover rule to make the svg visible
# 19:53 [fluffy] you’ll probably want to change the HTML anyway, in case your markdown ever allows links within the heading itself
[Emma_Humphries] joined the channel
# 19:58 aaronpk this is why i haven't done this before, so many dependencies in the chain
jonnybarnes joined the channel; nickodd left the channel
# 20:04 [tantek] the hard part is *something* has to generate the id on the heading for permalinking
# 20:04 [tantek] if you want the links to actually *work* as in a browser to scroll to the heading, you MUST generate them server-side
# 20:04 aaronpk i can manually add one in markdown, so i think i'm going to settle for only adding tthis icon to headersr that have an id in the sourrce
# 20:05 aaronpk neat trick: visibility:hidden keeps the containing element in the dom so tthe hover event still works
# 20:05 aaronpk i was wondering how github was doing it where you can hover over the empty space where the icon will appear
[chrisaldrich] joined the channel
[tw2113], ArjunAa, ndegruchy, geoffo, jeremy and [Murray] joined the channel
# 22:37 [Murray] also looks forward to that ^ Hover links for headings have been on my list for _ages_, will be interested to see how you've done it 🙂
jonnybarnes, [tantek] and gRegorLove joined the channel