diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/social.html | 3 |
3 files changed, 5 insertions, 0 deletions
@@ -141,6 +141,7 @@ These settings to display your social accounts. - `telegram`: Your [Telegram](https://telegram.com) username. - `whatsapp`: Your phone number. Follow the steps [here](https://faq.whatsapp.com/en/26000030/). [Privacy Warning](#privacy-warning) - `email`: Your email. [Privacy Warning](#privacy-warning) +- `pgp`: Your PGP key. The value should be set to the key fingerprint, and the public key should pe placed in static/key_fingerprint.txt #### Privacy Warning It is recommended to keep your private data (phone number/ email) private. Especially if you don't use them for business. Adding it to your public will expose your data to the public. This is irreversible. diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d3f52f8..a16ae79 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -67,6 +67,7 @@ skype = "<username>" telegram = "<username>" whatsapp = "<username>" email = "you@example.com" +pgp = "<key_fingerprint>" ## Extras [params.extra] diff --git a/layouts/partials/social.html b/layouts/partials/social.html index b06809b..bc18598 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -107,6 +107,9 @@ {{ with .Site.Params.social.email }} <a href="mailto:{{.}}" aria-label="Email"><i class="fas fa-envelope" aria-hidden="true"></i></a> {{ end }} + {{ with .Site.Params.social.pgp }} + <a href="/{{.}}.txt" aria-label="PGP" name="{{.}}"><i class="fas fa-key" aria-hidden="true"></i></a> + {{ end }} {{ if and ( .Site.Params.extra.rss ) ( .RSSLink ) }} <a href="{{ .RSSLink }}" aria-label="RSS" target="_blank"><i class="fas fa-rss" aria-hidden="true"></i></a> {{ end }} |