site

personal website, served at mordaunt.dev/site
Log | Files | Refs

commit 277715a8ae9ba7b2fb485ef3c73aed125eac3e15
parent e2084e719d69e9ec1266eadcb42b5cad5ead3c9e
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Wed, 16 Jul 2025 15:52:04 -0300

config: pub_key -> npub

Use the nostr nomenclature.

Diffstat:
Mhugo.toml | 20++++++++++++--------
Mlayouts/index.nostrjson.json | 2+-
2 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/hugo.toml b/hugo.toml @@ -16,15 +16,15 @@ style = "github-dark" # Required output format for the nostr.json file. [outputFormats.nostrjson] -mediaType = "application/json" -baseName = "nostr" -path = ".well-known" -isPlainText = true -notAlternative = true -permalinkable = true + mediaType = "application/json" + baseName = "nostr" + path = ".well-known" + isPlainText = true + notAlternative = true + permalinkable = true [outputs] -home = ["HTML", "nostrjson"] + home = ["HTML", "nostrjson"] [params] author = "Jack Mordaunt" @@ -51,7 +51,11 @@ home = ["HTML", "nostrjson"] [[params.nostr]] name = "mordaunt" - pub_key = "npub14l0387z0ejfmnn3j38nnalg5p57952d84aqakqguhzx7p7pns2vqg3x78w" + npub = "npub14l0387z0ejfmnn3j38nnalg5p57952d84aqakqguhzx7p7pns2vqg3x78w" + +[[params.nostr]] + name = "jack" + npub = "npub14l0387z0ejfmnn3j38nnalg5p57952d84aqakqguhzx7p7pns2vqg3x78w" [markup.goldmark.renderer] unsafe = true diff --git a/layouts/index.nostrjson.json b/layouts/index.nostrjson.json @@ -2,7 +2,7 @@ { "names": { {{- range $k, $v := $nostr }} - "{{ $v.name }}": "{{ printf "%x" $v.pub_key }}"{{ if not (eq $k (sub ($nostr | len) 1)) }},{{ end }} + "{{ $v.name }}": "{{ printf "%x" $v.npub }}"{{ if not (eq $k (sub ($nostr | len) 1)) }},{{ end }} {{- end }} } }