Created
May 15, 2023 14:16
-
-
Save GasparVardanyan/2810deb19a602d45f328b3e48609a750 to your computer and use it in GitHub Desktop.
hugo embedded base64 thumbnails
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
{{ $thumb_base64 := readFile (printf "%s%s" "/public" (.Fill "150x115 q100").RelPermalink) | base64Encode }} | |
<img src="data:image;base64,{{ $thumb_base64 }}" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment