Blog2020 ≫ It was one metalsmith plugin slowing this site down

I had created a metalsmith plugin for seo type skills, at least that's what I tell myself it is, more about that later. Anyway basically this plugin checks the content of each file it finds and processes accordingly. My build was taking forty minutes I think, but by changing the way I check the content of each file, telling it there's no need to try and parse images, it's now down to six minuters.

The "seo type skills" I mention are to rewrite some of the standard content in each page, to make it look a bit more dynamic. So the "Paul Clarke's blog - I live and work in Hythe" etc is slightly different on each page.

Hmm actually I need to update that don't I, I still live in Hythe but don't work here any more! I will leave that change for when I also move to React for the templates, as that is likely to force a republish of every page here too. I only republish content if it has changed, though even changing some whitespace in the page is enough to need republishing.

⬅️ :: ➡️

Paul Clarke's weblog - I live in A small town, Kent. Wed to Clare + dad to two, I'm a full-stack web engineer, + I do javascript / Node, some ruby, other languages ect ect. I like pubs, running, eating, home automation and other diy stuff, history, genealogy, TV, squirrels, pirates, lego, and time travel.