Jekyll Gist: Embed Code Snippets into Static Pages
25 Apr 2019 Web blogJekyll 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
- Jekyll Gist - The Jekyll-Gist repository.
- Configuring Jekyll plugins - GitHub official document for Jekyll plugins.
- Gist-it - Gist-it page.
- Jekyll Gist-it plugin - A Jekyll plugin for liquid tag of Gist-it, while can be only used locally.