From 2e9b6c1e5c270352402096a64adfee10a8ad7088 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Fri, 28 Oct 2022 12:36:40 +0300 Subject: Sort names by domain, color links --- build.py | 2 +- templates/index.html | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build.py b/build.py index 8baadbf..13c69ad 100644 --- a/build.py +++ b/build.py @@ -29,8 +29,8 @@ for name in listdir(NAMES_DIR): missing_fields = REQUIRED_FIELDS - set(fields.keys()) if missing_fields: raise Exception(f"Missing required fields {missing_fields} in {name}") - names.append(fields) +names = list(sorted(names, key=lambda x: x["domain"])) def render_link(value, classes): diff --git a/templates/index.html b/templates/index.html index 0bacce0..24ffa44 100644 --- a/templates/index.html +++ b/templates/index.html @@ -23,21 +23,21 @@

Doma.in Na.me Ha.ck Cl.ub

An exclusive club of nerds that own the domain - hack to their name, and serve their personal homepage from it.

-

Are you one of us? Join the club.

+ class="link dark-pink">domain hack to their name, and serve their personal homepage from it.

+

Are you one of us? Join the club.

-