#dev 2021-01-16
2021-01-16 UTC
# btrem The takeaway is that using more than one file type in a project -- a supposed strong suit of 11ty -- is sort of, I dunno, broken is too strong a word. Maybe I can call it "rocky"? "Difficult"? My 2 cents.
include joined the channel
# btrem I just found out I'm not the only one:
[KevinMarks] joined the channel
# [KevinMarks] I wouldn't expect a markdown page to be able to contain nunjucks syntax
# [KevinMarks] I mean, you can pass any string to the nunjucks processor, so it could be done, but I think in general ssg's separate posts and templates
[schmarty] joined the channel
# [schmarty] I have it in mind to use micropub as the plumbing to automatically update tag and archive pages
# [schmarty] (For a system I quickly got stuck on so who knows when or if I will get to it)
# [schmarty] But I figure sure why not let micropub add an h-entry to an h-feed
# [schmarty] We have add/remove capability with micropub edits. Don't recall there being any semantics for ordering or whatnot.
# [schmarty] But they're also not *not* ordered
# [schmarty] Every property is an array and every array has an order.
# [KevinMarks] Order matters in recipes
# btrem For directions, typically yes. For ingredients, typically not.
# btrem Or an <ol> element.
# btrem Yes, not individual values.
# btrem [KevinMarks] re: your comment about nunjucks and markdown: 11ty allows you to provide a njk layout for a md file. It also allows you to put frontmatter at the top of the md file to set the page title, article date, and permalink.
# btrem That's where the problems arise. I can use njk expressions to create a permalink in an njk file, but I can't use that same expression in an md file.
# btrem Even if I tell 11ty to process the md file with the njk processor.
# btrem IMHO, any cms/ssg should allow the site admin/author to create urls in a flexible and durable way. If the same expression to create permalinks fails on some files, then I need to have separate configuration files. That's a brittle situation.
# btrem aaronpk I don't see that as a weakness, but maybe I don't understand the issues. ISTM if order is important, then you would use <ol class="e-instructions">. If order is not important, you could use <div> or <p> or whatever.
# btrem Right, like I said, I don't understand the issues, because I know practically nothing about micropub.
# btrem And when I added h-recipe classes, I at first ditched the wrapper <div> and put e-instructions on the <ol> tag. Then I checked the markup in a parser, and realized, "Oh, that's why that wrapper is there." And promptly put it back in. ;-)
# btrem I did see the earlier part of the thread. In a broad way what you're saying makes sense. As to the details, as I said, I really don't know much about micropub. I suppose I probably should have minded my own business. So sorry for the noise.
# [KevinMarks] It does come up in other editors - both the medium and buzzfeed editors let you drag ordered things around.
KartikPrabhu and btrem joined the channel
# lahacker is it something about the x-www-form-urlencoded format that doesn't allow one to provide their own ordering?
# lahacker i can see at least order of name, tel and email mattering
[tantek] joined the channel
KartikPrabhu, treora and [KevinMarks] joined the channel
# lahacker welp now i get it..
# lahacker very much expected to ship the entire updated payload
# lahacker or at least the entire updated property
# [KevinMarks] yes, so you need to be sure you have made sense of it correctly
[tw2113_Slack_], [chrisaldrich], pikselaxam, dhanesh, swentel and [KevinMarks] joined the channel
# @jezcope The other day I saw a blog which used Webmentions for comments, but also linked to a service where people could send a #Webmention without having a site of their own to send from, like an #indieweb version of Disqus.
Can anyone… https://scholar.social/@petrichor/105565514288932214 (twitter.com/_/status/1350427427974082563)
nickodd joined the channel
# jeremycherfas What do people do for rpi backup? Given how long it takes to read and write the SD card, I'm considering getting a spare card, and whenever I take a backup, immediately write it to the spare card, so I can just swap them out when I need to.
# petermolnar I gave up on using rpis as servers for a longer period; I somehow tend to destroy sdcards. However, I'd probaby set up two rpis, two different manufacturer cards, one of them logging turned off, etc, and automatically sync between the two.
# jeremycherfas I don't think I need that kind of redundancy, to be honest. I got caught today by a power outage, and the rpi was not plugged into my UPS. Would not reboot. So I am currently waiting for the image I created ages ago to be written to the card, and will then need to update all the things.
# jeremycherfas Just trying to avoid having to wait so long next time.
# jeremycherfas Although I have now plugged the pi into the UPS.
# jeremycherfas It's all I could think of.
# petermolnar I don't want to sadden you, but if it's an sd card wearout, the ups won't help
# jeremycherfas I understand that. But what is a wearout? Something technical, or just a way of saying broken?
# petermolnar and I second sknebel recommendation about the usb thing. In an ideal world, it's get an m.2 -> usb3 adapter and plug an actuall ssd in the rpi, using that as anything writable, and the sdcard as read-only.
# petermolnar wearout happens because flash storage devices can only do so many read/write (mostly write) operations
# jeremycherfas I have loads of spare big USB drives. Let me investigate. Thanks for the tip.
# petermolnar if you exhaust the limit, it'll simply die
# petermolnar (btw, this applies to ssds as well, been there, but the limit is much higher)
# petermolnar good sdcards matter though; I bought samsung endurance pro ones and those seem to be better, than my previous attempts
# jeremycherfas Instructions seem reasonably clear, but everything requires a usable SD card to start off with, so I'll just wait for dd to finish doing its thing.
# jeremycherfas Hah. Of course, all my spare USB drives are USB 2.0. May as well go shopping while I wait for the restore to finish.
[schmarty] joined the channel
# jeremycherfas Is that good or bad?
shoesNsocks joined the channel
# jeremycherfas Finally finished 548615 bytes/sec
raucao, nolith1, KartikPrabhu, ben_thatmustbeme, [Raphael_Luckom], [chrisaldrich] and Caleb[m] joined the channel; nickodd left the channel