Pug Template Social Media Mixins

So far this year I’ve put up at least 8 website projects using express.js homepage and the pug project page on Github template. Each time I’ve had to copy and paste, or generate another set of social media metadata mixins to render the appropriate information when sharing a page. Well it seemed a bit silly to rely on copy and paste so I put up a gist that contains mixins to show content in almost all of the different ways within Twitter and Facebook. I say almost because I haven’t had a need to use an App Card or Player Card so I haven’t delved into making these just yet.

The code can be found on a Github Gist page here. I hope this helps save someone some time in making their websites more shareable. I may roll this into a GIT project with other mixins but that will have to be a project for another day.