commit bd93d306fba80266b106c9ae2cd3c67b8831ad99
parent f85743f40964d0847b0085beda7839fbf14a1baa
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Wed, 23 Sep 2026 18:22:59 -0300
site: move to mordaunt.dev/site
The site is now built by the mordaunt.dev configuration and served under
/site, so the base URL and every absolute asset path carry that prefix.
Current Hugo refuses .html content files unless text/html is allowlisted
in security.allowContent, which was blocking the build. The generated
nostr.json encoded the npub string rather than the decoded pubkey and is
replaced by the one mordaunt.dev serves itself. Key and code links point
at the domain that is now authoritative for them.
Diffstat:
5 files changed, 32 insertions(+), 50 deletions(-)
diff --git a/content/projects/icnsify.md b/content/projects/icnsify.md
@@ -15,8 +15,8 @@ categories = ["development"]
</style>
<div class="carousel">
- <img src="/images/icnsify/icns-macos-preview.webp" alt="icnsify-preview macOS" />
- <img src="/images/icnsify/icns-windows-preview.webp" alt="icnsify-preview Windows" />
+ <img src="/site/images/icnsify/icns-macos-preview.webp" alt="icnsify-preview macOS" />
+ <img src="/site/images/icnsify/icns-windows-preview.webp" alt="icnsify-preview Windows" />
</div>
## icnsify: A Lean, Cross-Platform Icon Tool for macOS `.icns` Format
@@ -61,10 +61,10 @@ toolchain.
<div style="display: flex; flex-wrap: wrap; gap: 2rem;">
<a href="https://github.com/fyne-io">
- <img style="max-height: 100px; border-radius: 8px;" src="/images/brands/fyne-io.webp" alt="Fyne"/>
+ <img style="max-height: 100px; border-radius: 8px;" src="/site/images/brands/fyne-io.webp" alt="Fyne"/>
</a>
<a href="https://github.com/wailsapp/wails">
- <img style="max-height: 100px;" src="/images/brands/wails.webp" alt="Wails"/>
+ <img style="max-height: 100px;" src="/site/images/brands/wails.webp" alt="Wails"/>
</a>
</div>
@@ -79,12 +79,12 @@ toolchain.
### Languages
<div style="display: flex; flex-wrap: wrap; gap: 2rem;">
- <img style="max-height: 100px;" src="/images/brands/go.svg"/>
+ <img style="max-height: 100px;" src="/site/images/brands/go.svg"/>
</div>
### Tech
<div style="display: flex; flex-wrap: wrap; gap: 2rem;">
- <img style="max-height: 100px;" src="/images/brands/gio.svg" class="invert-me"/>
+ <img style="max-height: 100px;" src="/site/images/brands/gio.svg" class="invert-me"/>
</div>
diff --git a/content/projects/plato-desktop-client.md b/content/projects/plato-desktop-client.md
@@ -16,9 +16,9 @@ categories = ["development"]
</style>
<div class="carousel">
- <img src="/images/Plato/PlatoHome.webp" alt="Home Page" />
- <img src="/images/Plato/PlatoGame.webp" alt="Game Page" />
- <img src="/images/Plato/PlatoMulti.webp" alt="Multi Window" />
+ <img src="/site/images/Plato/PlatoHome.webp" alt="Home Page" />
+ <img src="/site/images/Plato/PlatoGame.webp" alt="Game Page" />
+ <img src="/site/images/Plato/PlatoMulti.webp" alt="Multi Window" />
</div>
@@ -66,16 +66,16 @@ This project demanded **low-level systems programming**, **high-concurrency arch
### Languages
<div style="display: flex; flex-wrap: wrap; gap: 2rem;">
- <img style="max-height: 100px;" src="/images/brands/go.svg"/>
- <img style="max-height: 100px;" src="/images/brands/c.png"/>
+ <img style="max-height: 100px;" src="/site/images/brands/go.svg"/>
+ <img style="max-height: 100px;" src="/site/images/brands/c.png"/>
</div>
### Tech
<div style="display: flex; flex-wrap: wrap; gap: 2rem;">
- <img style="max-height: 100px;" src="/images/brands/gio.svg" class="invert-me"/>
- <img style="max-height: 100px;" src="/images/brands/sqlite.svg"/>
- <img style="max-height: 100px;" src="/images/brands/opengl.svg"/>
- <img style="max-height: 100px;" src="/images/brands/v8.svg"/>
+ <img style="max-height: 100px;" src="/site/images/brands/gio.svg" class="invert-me"/>
+ <img style="max-height: 100px;" src="/site/images/brands/sqlite.svg"/>
+ <img style="max-height: 100px;" src="/site/images/brands/opengl.svg"/>
+ <img style="max-height: 100px;" src="/site/images/brands/v8.svg"/>
</div>
diff --git a/hugo.toml b/hugo.toml
@@ -1,4 +1,4 @@
-baseurl = "http://jackmordaunt.com/"
+baseurl = "https://mordaunt.dev/site/"
title = "Jack Mordaunt"
theme = "hugo-coder"
languagecode = "en"
@@ -14,17 +14,10 @@ pagerSize = 20
[markup.highlight]
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
-
-[outputs]
- home = ["HTML", "nostrjson"]
+# Content pages written as .html (about, contact, pay-with-bitcoin). Hugo's
+# default policy allows everything but text/html; this allowlist admits it.
+[security]
+ allowContent = ["^text/(html|markdown)$"]
[params]
author = "Jack Mordaunt"
@@ -34,9 +27,9 @@ style = "github-dark"
avatarurl = "images/self.jpg"
# gravatar = "gravatar@sovereignlife.anonaddy.com"
- faviconSVG = "/images/self-tiny-white.svg"
- favicon_32 = "/images/self-tiny-white.png"
- favicon_16 = "/images/self-tiny-white.png"
+ faviconSVG = "/site/images/self-tiny-white.svg"
+ favicon_32 = "/site/images/self-tiny-white.png"
+ favicon_16 = "/site/images/self-tiny-white.png"
since = 2025
@@ -49,14 +42,6 @@ style = "github-dark"
# customSCSS = ["scss/custom.scss"]
# customJS = ["js/custom.js"]
-[[params.nostr]]
- name = "mordaunt"
- npub = "npub14l0387z0ejfmnn3j38nnalg5p57952d84aqakqguhzx7p7pns2vqg3x78w"
-
-[[params.nostr]]
- name = "jack"
- npub = "npub14l0387z0ejfmnn3j38nnalg5p57952d84aqakqguhzx7p7pns2vqg3x78w"
-
[markup.goldmark.renderer]
unsafe = true
@@ -85,14 +70,19 @@ style = "github-dark"
weight = 3
url = "https://njump.me/npub14l0387z0ejfmnn3j38nnalg5p57952d84aqakqguhzx7p7pns2vqg3x78w"
[[params.social]]
+ name = "Code"
+ icon = "fa-solid fa-code-branch fa-2x"
+ weight = 4
+ url = "https://mordaunt.dev/code"
+[[params.social]]
name = "Public Keys"
icon = "fa-solid fa-key fa-2x"
- weight = 4
- url = "https://meta.sr.ht/~jackmordaunt.pgp"
+ weight = 5
+ url = "https://mordaunt.dev/keys"
[[params.social]]
name = "Bitcoin"
icon = "fa-brands fa-bitcoin fa-2x"
- weight = 5
+ weight = 6
url = "pay-with-bitcoin/"
# Menu links
diff --git a/layouts/index.nostrjson.json b/layouts/index.nostrjson.json
@@ -1,8 +0,0 @@
-{{ $nostr := .Site.Params.nostr }}
-{
- "names": {
- {{- range $k, $v := $nostr }}
- "{{ $v.name }}": "{{ printf "%x" $v.npub }}"{{ if not (eq $k (sub ($nostr | len) 1)) }},{{ end }}
- {{- end }}
- }
-}
diff --git a/themes/hugo-coder/layouts/partials/head.html b/themes/hugo-coder/layouts/partials/head.html
@@ -19,6 +19,6 @@
{{ if .IsHome }}{{ partial "head/hugo-generator.html" . }}{{ end }}
-<script defer data-domain="jackmordaunt.com" src="https://plausible.io/js/script.js"></script>
+<script defer data-domain="mordaunt.dev" src="https://plausible.io/js/script.js"></script>
{{ partial "head/extensions.html" . }}