blob: 62e5e5ee4b91ce02af88f9931976bc708f09c261 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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:
<a href="{{ partial "dashboard-url.html" . }}">API Key</a>
*/ -}}
{{- $url := site.Data.urls.dashboard.dev -}}
{{- if hugo.IsProduction }}{{ $url = site.Data.urls.dashboard.prod }}{{ end -}}
{{- return $url -}}
|