Also I’ve changed your single blog post route from /:slug to /blog/:slug, since if you are using just /:slug, it may have conflict with other pages which have also single path in the route.
Could you kindly explain the “conflict with other pages which have also a single path in the route?”
The reason we had it /:slug was to have the same address as our current website since we’re switching from WordPress to Divhunt (and that’s how our blog addresses and links appear on it).
We have over 40 blogs already published and having a new address route for everything will cause a monumental collapse on all our links.
That JS CDN file that you added in head end in custom code, I just extracted code from that CDN and runned it localy by creating custom JS file in Divhunt which is being triggered onPageReady.
That CDN requires page refresh in order to work, but since this is a SPA (there is no page refresh), I needed to do it this way, to trigger load of that code every time page is changed.