{{- /* Project landing. Served on its own subdomain (params.domain) by the ingress Caddy, which rewrites "/" to this page and "/en/" to its English translation. So every link here is host-relative ("/", "/en/", "#id") and assets come from global /css/ and /img/, never from the page bundle. */ -}} {{- $p := .Params -}} {{- $home := cond (eq .Language.Lang hugo.Sites.Default.Language.Lang) "/" (printf "/%s/" .Language.Lang) -}} {{- /* Every landing has its own theme: css/landing-.css on top of the layout in css/landing.css. The theme is params.theme or, by default, the project folder name. */ -}} {{- $theme := $p.theme | default .File.ContentBaseName -}} {{- $themeCSS := resources.Get (printf "css/landing-%s.css" $theme) -}} {{- if not $themeCSS }}{{ errorf "landing %q: theme file assets/css/landing-%s.css not found" .File.Path $theme }}{{ end -}} {{- $css := slice (resources.Get "css/landing.css") $themeCSS | resources.Concat (printf "css/landing-%s.bundle.css" $theme) -}} {{- $css = $css | minify | fingerprint -}} {{- $fonts := $p.fonts | default "family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400;600" -}} {{ .Title }} · {{ $p.tagline }} {{- range .AllTranslations }} {{- $h := cond (eq .Language.Lang hugo.Sites.Default.Language.Lang) "/" (printf "/%s/" .Language.Lang) }} {{- end }}
{{ with $p.badge }}

{{ . }}

{{ end }}

{{ $p.tagline }}

{{ .Description }}

{{ range $p.cta }}{{ .label }}{{ end }}
{{ with $p.chat }}

{{ .title }}

{{ range .messages }}

{{ .text | markdownify }}

{{ end }}
{{ end }}
{{ with $p.problem }}

{{ .title }}

{{ .lead }}

    {{ range .items }}
  1. {{ . }}
  2. {{ end }}

{{ .text }}

{{ end }} {{ with $p.features }}

{{ .title }}

{{ range .items }}

{{ .title }}

{{ .text | markdownify }}

{{ end }}
{{ end }} {{ with $p.how }}

{{ .title }}

    {{ range .steps }}
  1. {{ . | markdownify }}
  2. {{ end }}
{{ range .code }}
{{ .caption }}
{{ .body }}
{{ end }}
{{ end }} {{ with $p.start }}

{{ .title }}

    {{ range .steps }}
  1. {{ .title | markdownify }}

    {{ .text | markdownify }}

  2. {{ end }}
{{ end }} {{ with $p.note }}
{{ end }} {{ with $p.engine }}
{{ with .kicker }}

{{ . }}

{{ end }}

{{ .title }}

{{ .lead | markdownify }}

    {{ range .items }}
  • {{ . | markdownify }}
  • {{ end }}
{{ with .callout }}

{{ .title }}

{{ .text | markdownify }}

{{ end }}
{{ end }} {{ with $p.limits }}

{{ .title }}

    {{ range .items }}
  • {{ . | markdownify }}
  • {{ end }}
{{ end }} {{ with $p.community }}

{{ .title }}

{{ .lead | markdownify }}

{{ range .links }}

{{ .title }} →

{{ .text }}

{{ end }}
{{ end }}