djstevenson / songs-to-the-siren

A blog about songs
MIT License
0 stars 0 forks source link

Rework how we do Markdown previews #201

Closed djstevenson closed 4 years ago

djstevenson commented 4 years ago

We probably want to mark the source fields with a data-something attribute that indicates the destination elements, and we dynamically event handlers to these by searching the DOM for elements with the right data-type-whatever attribute.

djstevenson commented 4 years ago

Currently, we have the following in our layout file, so it's on every page whether needed or not!

That ain't clever.

djstevenson commented 4 years ago

Done in commit 053a1444516c8187738473cdb2919a5f5bfce2a8 of branch feature/webpack-assets

Will close this issue once the branch is merged.

djstevenson commented 4 years ago

Closing, as branch is now merged