If the repo is uncommited, "draft" is return instead of the SHA.
1 | sha1(n = 10)
|
n |
Number of characters to truncate sha1 to. Defaults to 10 because that's what github does. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.