diff --git a/content/services/email-account.md b/content/services/email-account.md index 30b2ad3..9f6b4cf 100644 --- a/content/services/email-account.md +++ b/content/services/email-account.md @@ -2,6 +2,7 @@ draft = false title = 'Email' weight = 1 +registration-needed = true +++
-

Services

  1. Email
  2. XMPP
  3. File Share
\ No newline at end of file +

Services

Need Registration

  1. Email
  2. XMPP

Without Registration

  1. File Share
\ No newline at end of file diff --git a/docs/signup/index.html b/docs/signup/index.html index b9ab7e1..29acd13 100644 --- a/docs/signup/index.html +++ b/docs/signup/index.html @@ -5,7 +5,8 @@ Sign Up
-

Sign Up

+

Sign Up

By signing up, you will get access to these services: +Email, XMPP.

(3-32 characters; letters, numbers, _ and - only)
diff --git a/layouts/services/section.html b/layouts/services/section.html index 1c569fb..d80cfc9 100644 --- a/layouts/services/section.html +++ b/layouts/services/section.html @@ -6,12 +6,36 @@

Services

+{{ $registrationServices := slice }} +{{ $openServices := slice }} +{{ range .Pages.ByWeight }} + {{ if index .Params "registration-needed" }} + {{ $registrationServices = $registrationServices | append . }} + {{ else }} + {{ $openServices = $openServices | append . }} + {{ end }} +{{ end }} + +{{ with $registrationServices }} +

Need Registration

    - {{ range .Pages.ByWeight }} + {{ range . }}
  1. {{ .LinkTitle }}
  2. {{ end }}
+{{ end }} + +{{ with $openServices }} +

Without Registration

+
    + {{ range . }} +
  1. + {{ .LinkTitle }} +
  2. + {{ end }} +
+{{ end }} {{ end }} diff --git a/layouts/signup/single.html b/layouts/signup/single.html index d5a1b05..07f8621 100644 --- a/layouts/signup/single.html +++ b/layouts/signup/single.html @@ -2,6 +2,22 @@

{{ .Title }}

+ {{ with site.GetPage "/services" }} + {{ $registrationServices := slice }} + {{ range .Pages.ByWeight }} + {{ if index .Params "registration-needed" }} + {{ $registrationServices = $registrationServices | append . }} + {{ end }} + {{ end }} + {{ with $registrationServices }} +

+ By signing up, you will get access to these services: + {{ range $index, $service := . }}{{ if $index }}, {{ end }}{{ $service.LinkTitle }}{{ end }}. +

+ {{ end }} + {{ end }}
diff --git a/static/css/custom.css b/static/css/custom.css index 4b0846d..a15d383 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1084,6 +1084,12 @@ } /* ── Auth pages (login / signup) ───────────────────────────────────────── */ +.auth-page__services { + margin: -0.4rem 0 1rem; + font-size: 0.78rem; + line-height: 1.45; +} + .auth-page { max-width: 420px; margin: 2.5rem auto 0;