#dev 2024-07-16

2024-07-16 UTC
barnaby, thegreekgeek, thegreekgeek_, [snarfed], solislupus[d], Zegnat, oenone, gRegor, gRegorLove_, GuestZero, gRegorLove__, [Murray], Star, benji, Zic, GuestZero_, [contact898], [KevinMarks], eitilt, eitilt1, [pfefferle], StarrWulfe, [Joe_Crawford], joshproehl and [jacky] joined the channel
#
[jacky]
call to action for anyone wanting to do something _bold_: https://mastodon.social/@sarahjamielewis/112797152700861866
GuestZero joined the channel
#
Loqi
[preview] [Sarah Jamie Lewis] I think probably the best place to start would be to build a rendering engine that can support basic rss/atom feeds and a bare bones micropub client. i.e. something minimally useful that covers both creation and consumption. Soon after that you wou...
gRegorLove_, Zic, [schmarty], jonnybarnes, wagle and StarrWul1 joined the channel
#
timeissuspect
I'm getting increasingly disturbed by the accepted wisdom that a blog is a time sequenced object, and your latest content is at the top.
#
timeissuspect
A lot of my posts on money have got nothing to do with today's date, and the order in which I created them is certainly not the order to read them in.
#
timeissuspect
The thing that will break is articles where I have cross linked to those scheduled posts, those links will break until the series is fully published again
#
IWDiscord
<t​imeissuspect>
#
timeissuspect
So I'm going to experiment with taking a selection, putting a future scheduled date (one post per day) and release a series on one topic. That means my RSS subsribers will get something each day that connects to the previous day, as will visitors to the website.
#
IWDiscord
<t​imeissuspect>
#
IWDiscord
<t​imeissuspect>
#
timeissuspect
This is "recycling content" which might be frowned upon in purist circles
eitilt and [aciccarello] joined the channel
#
[aciccarello]
I think it is fair to question the date based timeline model if your content doesn't fit that well
#
[aciccarello]
Humans do have a recency bias though.
Jah joined the channel
#
timeissuspect
that's true, but I don't put dates on my blog posts anyway. It may be that someone read an article I created three months ago and sees it again in their feed and feels aggrieved. I don't have that many subscribers anyway and most readers will not have read the back catalogue.
#
timeissuspect
I'll give it a go and see what happens. Republishing old content within a current context is much easier that trying to think of something new to write.
#
IWDiscord
<t​imeissuspect>
#
[Joe_Crawford]
A lot of the time bias was about how the earliest blogging tools worked and how things got divided up as time passed. Archive pages of lots of posts with full content (or just an excerpt), often by month, or individual pages. URL structure seems like this small decision but has big implications for how one expects to use a site.
#
artlung
capjamesg[d] you mentioned: *I noticed that one page on my site doesn't have my code styling JavaScript, for example. I overlooked that in implementation.
#
artlung
I don't know exactly how, but I'd like a workflow that lets me find these kind of things.* and following up here...
#
artlung
For me the only way to manage that stuff across time is to put the content and the dependency (the script and styles, usually, but also images or other assets) as close to the content as possible. Sometimes like a txt or json file that mentions it. So my-article.html is right next to my-article.figure-1.gif and my-article.js are all in the same folder.
#
[Joe_Crawford]
For the headers in my site when I switched to keeping *every* bit of CSS and JavaScript inline in the HTML of each header because I don't have confidence in creating a system that will be future-proof.
#
[snarfed]
we talk pretty regularly about "evergreen" pages, wiki style, vs dated posts
#
[snarfed]
(cc timeissuspect)
[Otto_Rask] joined the channel
#
[Otto_Rask]
timeissuspect i've been thinking of building my site through blog-ish updates that feed into a more "static" personal wiki-like thing, i.e. the small constant updates are interlinked with static pages/categories with which i can beef the page contents and get inspired to write other things in there as well
#
[Otto_Rask]
kind of how wikis often show a "latest changes" feed, but I make the feed happen first and then decide what parts of the "wiki" are affected
#
[Otto_Rask]
and that allows me to fire off blog posts that never have to relate to the wikilike areas of the site
#
[Otto_Rask]
(this all is of course very fuzzy in my head still, no decision made on any specifics)
[morganm], gRegor and [Ros] joined the channel
#
gRegor
what is digital garden
#
Loqi
🌱🪴 A digital garden is a particular practice of creating & growing an online and public IndieWeb presence that focuses more on topics & relationships than a timeline like blogs, has content of different levels of development, is imperfect and often a playground for experimentation, learning, revising, iteration, and growth for diverse content, perhaps interlinked with other digital gardens https://indieweb.org/digital_garden
#
gRegor
Might be some good ideas in there
[qubyte] joined the channel
#
capjamesg[d]
nsmsn[d] What does the browser do by default?
#
gRegor
Usually blue for unvisited, purple visited
#
gRegor
You have a CSS definition for `a` so the selectors like :visited will default to that same style unless you specify otherwise
#
nsmsn
I’m not at my laptop, otherwise I’d be looking at your style sheet now, capjamesg
#
gRegor
E.g. I see you've customized a:hover, a:active, but not a:visited
#
capjamesg[d]
I wonder why my browser doesn't show any red links for my site. Maybe because I have styled a and it applies as default to everything?
#
capjamesg[d]
I set a { color: royalblue }
#
nsmsn
Indie web chatting on my phone on a stationary bike cause that’s how I roll
#
nsmsn
exercise ++
#
Loqi
exercise has 1 karma over the last year
#
gRegor
You have `a { color: var(--primary-color); }`
#
gRegor
so `a:visited` will default to that
#
gRegor
I don't see any red colors defined at a glance, so not sure why you're expecting red
#
nsmsn
gRegor ++
#
Loqi
gRegor has 25 karma in this channel over the last year (122 in all channels)
#
gRegor
Adding `a:visited { color: red; }` worked for me
#
capjamesg[d]
gRegor I didn't realise that `a { color: var(--primary-color); }` implicitly set it to all pseudo-classes too.
#
gRegor
I *think* that's correct, yeah
#
Loqi
gRegor has 26 karma in this channel over the last year (123 in all channels)
#
capjamesg[d]
(Pro tip: don't type at an angle)
#
nsmsn
Is there a :default selector for the an element in CSS? Or something similar?
#
gRegor
At an angle it's gRegor××
#
nsmsn
Setting a color for a cascades through all the options. This is a feature of CSS, not a bug!
#
nsmsn
* a element, not an element. I don’t know how to do code formatting on my phone
#
gRegor
Not familiar. From MDN looks like :default is for a default-selected option in a form element like select or checkboxes
#
capjamesg[d]
This is fascinating!
#
nsmsn
I think you could do a:link {color: royalblue} if you only wanted to style the one color and keep all the defaults without the cascade…
#
IWDiscord
<n​smsn>
#
nsmsn
[edit] I think you could do a:link {color: royalblue} if you only wanted to style the one color and keep all the defaults without the cascade…
#
IWDiscord
<n​smsn>
sebsel and thegreekgeek joined the channel
#
[Murray]
huh so this is an interesting discussion 🤔 I hadn't realised using an `a {...}` rule would impact pseudo classes, because they should have higher specificity. I guess the browser stylesheet is weighted below any reference stylesheets (and those below inline), but I'm still surprised this cascades like this. Feels wrong...
#
[Murray]
coincidentally, even nullifying the specificity of the `a {...}` selector *still* results in overriding the default `:visited` styles e.g. `:where(a) {...}` so I can't find any way around it other than always using `:link`, which doesn't feel great either 😅
#
[Murray]
well, TIL I guess 😄
eitilt joined the channel
#
Zegnat
The thing to remember is that `a` styles every `a` element. While `a:link` requires a `href` attribute to be set.
#
Zegnat
capjamesg[d]: if you wanted to add the default visited link color from the browser, after setting a color on `a` you could add `a:visited { color: revert; }` for visited links to specifically return to default styling
#
Zegnat
(If you also set your `border-bottom` on `a` to use `currentColor` instead of `var(--primary-color)` your underline would automatically match.)
GWG joined the channel
#
capjamesg[d]
Zegnat and to target a class should I say a.xyz {}? And an attribute as a[data-xyz=true] {}
barnaby joined the channel
#
Zegnat
capjamesg[d]: yes. Though you would want to combine those with :link or one of the other pseudo selectors as well.
superkuh joined the channel
#
Zegnat
Unless you want to select every a element with the class/attribute, of course
Zic joined the channel