btremIt sort of makes sense that they don't; I imagine the thinking is that a single markdown file represents a single, unbroken document. But templates and front matter -- that is, markdown in an SSG setting -- complicates things. Alas!
aaronpkThe other question to ask is why do you need it separate in the first place? Why not have the acknowledgments in the post content? Or at least in the markdown content if not in the microformats e-content
btrem[KevinMarks]: My SSG is 11ty, and I can use TOML for front matter, but I don't think yaml is the problem. The problem is the inability to have sections in a markdown/front matter content section and access them in a template.
btremI was impelled to try this because I found myself adding <aside class="ps">Thanks to...</aside> at the end of some of my md posts. Some posts have multiple such asides.
btremIt's a limitation of ssgs that use md files with frontmatter. I'm asking here because I thought maybe someone else came across this problem and came up with a solution of some sort that is more elegant than what I'm doing.
btrem[aciccarello]: since you're here, a different 11ty question. The 11ty dev server hot reload is not working for me. Or more precisely, it works when I change and save a .md file, not not when I change a layout .njk file. The only way to get any changes to show themselves is to stop and restart the server. Are you having any issues with that?
btremYeah, me too. It's the incremental builds that are failing, even though the terminal output indicates that all is well. Ok, maybe I'll file an issues.
[aciccarello]At some point the plan is for the incremental build to be able to work off a static cache so you could have really fast builds on large sites. So I think it will get better over time but we are a long way off from that.
_pi_r2_0[d][Jo] best I have without involving a scripting language is elements with an alt, not the text itself. `> curl -s https://pcarrier.com | htmlq '[alt]'` → `<img alt="Portrait" …<img alt="Self-reference as a QR code"…`
_pi_r2_0[d]and if you'll allow JS… `deno eval 'import {DOMParser} from "jsr:@b-fuze/deno-dom";console.log([...new DOMParser().parseFromString(await (await fetch(Deno.args[0])).text(),"text/html").querySelectorAll("[alt]")].map((e)=>e.getAttribute("alt")))' https://pcarrier.com` → `[ "Portrait", "Self-reference as a QR code" ]`
[Jo]hmm both of those arent quite what i need, but thanks! i do need it in the shell for my SSG, i have this thing where it generates a pure text version of each post and so far all of the images are just cut completely. itd be nice to have the alt text in there
ttybitnik, GuestZero, thegreekgeek_ and Guest6 joined the channel
aaronpki think i have it working such that with JS disabled in Safari you get the native HLS player experience, and JS disabled in browsers that don't support HLS natively you'd get the full single video file. with JS enabled, you get a nice video player experience using video.js and HLS support in non-Safari
aaronpkone challenge with my workflow, as a side effect of my post storage being date based, is i need to know the URL of the post before I can save any files in the filesystem where they belong. which means any media uploads need to happen after the folder exists, which I can't know until I know the date of the post, so doesn't really map to the right workflow of using an external client to create posts
aaronpkwith photos it's not a huge deal because the photo lives at a temporary location until the post is created, but that feels more fragile once we're talking about a 200mb+ video file and all the chunks it gets broken up into
[KevinMarks]I'm not sure which microformats parsers you can run easily from the command line. Do you have an existing language you already use for scripts?
[tantek]aaronpk, for storing media at least, one approach may be to store the media file itself based on its creation date, which is presumably known in advance of the date of any post that embeds or publishes the media file
aaronpkIf I treat all media storage separately then it's pretty straightforward, just becomes harder to reconcile whether a particular file is actually in use by a post
btremaaronpk: something I've struggled with. I put my media in a separate folder structure based on a numerical index. Which leads to plenty of its own problems.
aaronpkMaybe I just have to buckle up and deal with the video transcoding happening in a temporary location and moving the files over when the post folder is ready