diff --git a/content/templates/functions.md b/content/templates/functions.md index 979e603f9..e36e814d3 100644 --- a/content/templates/functions.md +++ b/content/templates/functions.md @@ -595,6 +595,33 @@ CJK-like languages. ``` +### md5 + +`md5` hashes the given input and returns its MD5 checksum. + +```html +{{ md5 "Hello world, gophers!" }} + +``` + +This can be useful if you want to use Gravatar for generating a unique avatar: + +```html + +``` + + +### sha1 + +`sha1` hashes the given input and returns its SHA1 checksum. + +```html +{{ sha1 "Hello world, gophers!" }} + +``` + + + ## URLs ### absURL, relURL