Skip to content
Permalink
Browse files

Feature social pgp key (#78)

* Add support for PGP key in social menu

* Add PGP in the example configuration file

* Update README.md

The README now shows how to set up a PGP key in the social menu
  • Loading branch information
cezarmathe authored and shenoybr committed Dec 27, 2019
1 parent b509f03 commit e04ee2c71df50351143762df6c7609b80711b652
Showing with 5 additions and 0 deletions.
  1. +1 −0 README.md
  2. +1 −0 exampleSite/config.toml
  3. +3 −0 layouts/partials/social.html
@@ -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.
@@ -67,6 +67,7 @@ skype = "<username>"
telegram = "<username>"
whatsapp = "<username>"
email = "you@example.com"
pgp = "<key_fingerprint>"

## Extras
[params.extra]
@@ -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 }}

0 comments on commit e04ee2c

Please sign in to comment.
You can’t perform that action at this time.