From 493746b14c1251a45b061d2e3edd9160c929d2b9 Mon Sep 17 00:00:00 2001 From: benj Date: Fri, 10 Apr 2026 11:13:34 +0800 Subject: a basic ui and landing web interface for tidyindex.com --- landing/layouts/partials/dashboard-url.html | 14 ++++++++++++++ landing/layouts/partials/header.html | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 landing/layouts/partials/dashboard-url.html (limited to 'landing/layouts/partials') diff --git a/landing/layouts/partials/dashboard-url.html b/landing/layouts/partials/dashboard-url.html new file mode 100644 index 0000000..62e5e5e --- /dev/null +++ b/landing/layouts/partials/dashboard-url.html @@ -0,0 +1,14 @@ +{{- /* + Returns the URL of the Tidy Index dashboard (the "API Key" app). + + Pulls from landing/data/urls.toml — the single source of truth for + cross-app URLs. Defaults to the dev URL, swaps to prod when the build + is running in the production environment (i.e. `hugo` or `hugo --minify`, + NOT `hugo server`). + + Usage: + API Key +*/ -}} +{{- $url := site.Data.urls.dashboard.dev -}} +{{- if hugo.IsProduction }}{{ $url = site.Data.urls.dashboard.prod }}{{ end -}} +{{- return $url -}} diff --git a/landing/layouts/partials/header.html b/landing/layouts/partials/header.html index e7a9d40..92ab6f4 100644 --- a/landing/layouts/partials/header.html +++ b/landing/layouts/partials/header.html @@ -12,7 +12,7 @@
Private beta - API Key → + API Key →
-- cgit v1.2.3