Webflow is such a pleasure to work in, the team at Sheda love using it, we've built websites, interactive infographics and a few landing pages with it and find it has a far better experience than other CMSes (Cough Cough WordPress). 

One of the biggest gripes I've had with it as a tool is that it's really difficult to add Github Gists to the content pages. A few people on the Webflow community forum seem to have this problem as well.

As a product development firm that produces software and sometimes blogs about what we've built this is a major drawback to an otherwise very good CMS. 

Luckily we've found a way around this allowing us to embed awesome gist nuggets like this:

<p>CODE: https://gist.github.com/irony/441221d4a55b9b4eea253b66d4c94ad6.js</p>

Sheda uses Design, Artificial Intelligence and technology to solve complex problems with an emphasis on delivering solutions that make and accelerate impact and bring about social change.

You can embed this gist into Webflow by inserting the gist URL in your editor field in this format.

`<p>CODE: https://gist.github.com/irony/441221d4a55b9b4eea253b66d4c94ad6.js</p>`

Embedding Code Into Webflow

The first step is to include the postscribe library into your Webflow site.

Include Postscribe

You can either include this sitewide or for a specific template or page. In the gif below I'm actually including the library in the footer section of my blog template.

Include  script in Webflow page settings

<script src="https://cdnjs.cloudflare.com/ajax/libs/postscribe/2.0.8/postscribe.min.js"></script>

Add code to include gist into page

Based on what you did in the previous step. Copy and paste the following gist code into your site settings or page settings.

<p>CODE: https://gist.github.com/mebinum/a336167b97d410ea6df25146fa501658.js</p>

Add Custom Styles to Header (Optional)

You might need to change the styles for the gists depending on your page layout, I had to add the styles below to get our blog to keep looking good on mobile.

<p>CODE: https://gist.github.com/mebinum/96e5893487653a4b34f016c6d365a413.js</p>

Embed Gist into your rich text editor

To embed your gist into your site, open up your page and insert the gist using this format.

<p> CODE: https://gist.github.com/mebinum/a336167b97d410ea6df25146fa501658.js</p>

Please use the URL for the javascript file that's provided in the embed code for the gist.

That's it, you should be able to include gists into your Webflow blog as much as you like :)

Yeah let's celebrate!!

 

Hopefully, the team at Webflow will come up with a more elegant and in-built solution. Till then enjoy and if you need a hand with developing awesome sites in Webflow give us a shout or send me a message via facebook messenger.

Want some help creating web and mobile products that your customers will love using Webflow? Drop me a line below or click on the floating head to chat with us.

By

Mike Ebinum

Founder & Director
@ Sheda
As Sheda's Founder, Mike ensures that we are applying the best technology for our customer's needs on both a business and technical level. A guest lecturer and tutor at the University of Melbourne and RMIT University, his interests include applying machine learning, A.I and big data technologies to problems in health, agriculture and finance in the developing world.

Call us

Call +61 3 9028 6936

Drop in and say hi

4 Brunswick Pl,
Fitzroy VIC 3065
get directions

Follow us

Contact

Thank you! Your submission has been received!

Hmm... Something's not right. Try submitting again.