Update: services categorized and showed in sign up page

This commit is contained in:
hyzen
2026-06-13 12:34:05 +05:30
parent 50b6d25917
commit b4ee52377e
9 changed files with 59 additions and 3 deletions

View File

@@ -2,6 +2,22 @@
<div class="auth-page">
<div class="auth-card">
<h1 class="auth-page__title">{{ .Title }}</h1>
{{ with site.GetPage "/services" }}
{{ $registrationServices := slice }}
{{ range .Pages.ByWeight }}
{{ if index .Params "registration-needed" }}
{{ $registrationServices = $registrationServices | append . }}
{{ end }}
{{ end }}
{{ with $registrationServices }}
<p class="auth-page__services">
By signing up, you will get access to these services:
{{ range $index, $service := . }}{{ if $index }}, {{ end }}<a href="{{ $service.RelPermalink }}"
>{{ $service.LinkTitle }}</a
>{{ end }}.
</p>
{{ end }}
{{ end }}
<div id="auth-message" class="auth-message" aria-live="polite"></div>
<!-- ── STEP 1 — Account details ───────────────────────────────── -->