Pages

Thursday, 24 March 2016

Getting GitHub Gists to appear in Blogger Dynamic View

UPDATE: This no longer works.

Sometime in between the Big Bang and you discovering this post, Google updated Blogger to have these magical Dynamic Views. They're not that fucking special. If you use your Blogger to post code snippets in the form of GitHub Gists, you may have noticed that they don't appear in these Dynamic Views. You may have tried to Google this, and discovered that there is a Script from a mysterious Moski. You may have tried this method sans-success. Don't despair, Luke is here.

Open the HTML of your Blog Post and paste the updated Script at the bottom of the post, outside the last element.


Then for your Gists to work replace the GitHub Standard SCRIPT element with the following:



The HTML for this page looks like, the relevant lines are in green:

No comments:

Post a Comment

Note: only a member of this blog may post a comment.