forked from gohugoio/hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be3519f
commit 94c3825
Showing
3 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -595,6 +595,33 @@ CJK-like languages. | |
``` | ||
|
||
|
||
### md5 | ||
|
||
`md5` hashes the given input and returns its MD5 checksum. | ||
|
||
```html | ||
{{ md5 "Hello world, gophers!" }} | ||
<!-- returns the string "b3029f756f98f79e7f1b7f1d1f0dd53b" --> | ||
``` | ||
|
||
This can be useful if you want to use Gravatar for generating a unique avatar: | ||
|
||
```html | ||
<img src="https://www.gravatar.com/avatar/{{ md5 "[email protected]" }}?s=100&d=identicon"> | ||
``` | ||
|
||
|
||
### sha1 | ||
|
||
`sha1` hashes the given input and returns its SHA1 checksum. | ||
|
||
```html | ||
{{ sha1 "Hello world, gophers!" }} | ||
<!-- returns the string "c8b5b0e33d408246e30f53e32b8f7627a7a649d4" --> | ||
``` | ||
|
||
|
||
|
||
## URLs | ||
|
||
### absURL, relURL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters