mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-06-30 23:12:16 +02:00
Update: services categorized and showed in sign up page
This commit is contained in:
@@ -6,12 +6,36 @@
|
||||
|
||||
<h1>Services</h1>
|
||||
|
||||
{{ $registrationServices := slice }}
|
||||
{{ $openServices := slice }}
|
||||
{{ range .Pages.ByWeight }}
|
||||
{{ if index .Params "registration-needed" }}
|
||||
{{ $registrationServices = $registrationServices | append . }}
|
||||
{{ else }}
|
||||
{{ $openServices = $openServices | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ with $registrationServices }}
|
||||
<h2>Need Registration</h2>
|
||||
<ol class="uninotes-list uninotes-list--subjects">
|
||||
{{ range .Pages.ByWeight }}
|
||||
{{ range . }}
|
||||
<li class="uninotes-list__item">
|
||||
<a class="uninotes-list__link" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
{{ end }}
|
||||
|
||||
{{ with $openServices }}
|
||||
<h2>Without Registration</h2>
|
||||
<ol class="uninotes-list uninotes-list--subjects">
|
||||
{{ range . }}
|
||||
<li class="uninotes-list__item">
|
||||
<a class="uninotes-list__link" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
@@ -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 ───────────────────────────────── -->
|
||||
|
||||
Reference in New Issue
Block a user