Jekyll Gist: Embed Code Snippets into Static Pages

Jekyll Gist is a plugin to embed a gist into the static pages (Jekyll-Gist Repository).

It is enabled at the backend of GitHub Page by default, and can be used as a liquid tag as follows:

{% gist 46b4401513cdbd8b2390172344157b7a UnionFind.cpp %}

The long hash code can be found in the URL of a specific gist repo. The Jekyll backend would render it to be a JavaScript tag. In addition, gist-it.appspot.com is a website providing JavaScript to embed files from a public github repository like a gist.

Credits