From 0ea278a52da23ffba3e04eda79ac3abae0fee617 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 3 Feb 2021 01:33:36 +0800 Subject: [PATCH] Add references to my GPG key --- content/_index.adoc | 3 +++ data/more-contentful/contacts.toml | 9 +++++++++ layouts/shortcodes/homepage/social-links.html | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/content/_index.adoc b/content/_index.adoc index bdb4699..7fb31d5 100644 --- a/content/_index.adoc +++ b/content/_index.adoc @@ -26,6 +26,9 @@ You can also find me on a bunch of platforms where I may be inactive for some ti If you want the old way on getting contact with me, you can shoot an email at `foo.dogsquared{at}gmail{dot}com`. +Want a way to verify me and my stuff? I have a link:https://gnupg.org/[GnuPG] public key for your privacy-oriented and paranoia-filled pleasure. +It is currently stored at link:https://keys.openpgp.org/vks/v1/by-fingerprint/1D5A862828FFC47537F9628F73F89FF87C72E7D3[the OpenPGP keyserver] which you can search with my email address. + TIP: This site also have web feeds available in multiple formats such as in link:index.rss[RSS], link:index.atom[Atom], and link:index.json[JSON]. It's also available in individual sections (such as link:posts/[my writings] — i.e., `posts/index.{rss,atom,json}`). diff --git a/data/more-contentful/contacts.toml b/data/more-contentful/contacts.toml index 1cd175e..2ab95dd 100644 --- a/data/more-contentful/contacts.toml +++ b/data/more-contentful/contacts.toml @@ -30,3 +30,12 @@ id = "rss" url = "index.atom" name = "Atom feed" weight = -1 +excludeInMenu = true + +[[links]] +id = "gnuprivacyguard" +url = "https://keys.openpgp.org/vks/v1/by-fingerprint/1D5A862828FFC47537F9628F73F89FF87C72E7D3" +name = "GnuPG public key" +weight = -1 +excludeInMenu = true + diff --git a/layouts/shortcodes/homepage/social-links.html b/layouts/shortcodes/homepage/social-links.html index 61a28ea..d832e23 100644 --- a/layouts/shortcodes/homepage/social-links.html +++ b/layouts/shortcodes/homepage/social-links.html @@ -5,7 +5,9 @@ {{ $links := sort .links "name" "asc" }} {{- range $links -}} - {{ if ne .id "rss" }} + + {{- /* Render the link only to externally linked pages/files and those with >=0 weight. */ -}} + {{ if (and (not .excludeInMenu) (eq (absLangURL .url) .url)) }}
  • {{- .name }}