diff options
author | Cezar Mathe <work@cezarmathe.com> | 2019-12-27 14:10:47 +0300 |
---|---|---|
committer | Rajesh Shenoy <shenoybr@users.noreply.github.com> | 2019-12-27 14:10:47 +0300 |
commit | e04ee2c71df50351143762df6c7609b80711b652 (patch) | |
tree | cfa40ec88191d956cd3f9566484b8254a1e04177 | |
parent | b509f037a5e234297374a964d458310e51dae850 (diff) |
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
-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 }} |