bram@cbbg.nl~$ hexdump cbbg.bin 00 | CA BB A9 E0 00 42 72 61 6D 27 73 Ê»©à.Bram's 0B | 72 65 73 69 64 65 6E 63 65 00 00 residence.. 16 | 6F 6E 20 74 68 65 20 77 65 62 2E on the web.

Gpg

Embedding public gpg key in HTML comment

Cool idea from Travis. This will enable to import my public key simply by running curl https://cbbg.nl | gpg --import. Pretty cool huh? Worth the few extra bytes at each page load? Hell yeah!

In config/_default/params.toml

key='''
<!--
-----BEGIN PGP PUBLIC KEY BLOCK-----

xsFNBFRABlQBEADpJnaPhAWHkAw7kiRq5xdvh51BC86O2aQMALKlmNesSNR/aIIk
...................... more key data ...........................
GBNnmKCglTQSqNnWFyq6lKqus01dG4c+f4BUnQaqllUwcnCqBGjxkCLx8JTXaEoa
v68=
=T92X
-----END PGP PUBLIC KEY BLOCK-----
-->
'''

Somehere in the footer partial of my theme I added this:

{{ if .IsHome }}
  {{ site.Params.key | safeHTML }}
{{ end }}

This will only include the raw HTML code including the key on the homepage.