diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..f4d9ce4
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "html.format.wrapLineLength": 0
+}
\ No newline at end of file
diff --git a/build.py b/build.py
index e69de29..42a95f4 100644
--- a/build.py
+++ b/build.py
@@ -0,0 +1,65 @@
+#!/usr/bin/env python3
+"""Build the static site into public/."""
+
+import shutil
+from datetime import date
+from pathlib import Path
+
+import frontmatter
+from jinja2 import Environment, FileSystemLoader, select_autoescape
+
+from config import NAV, SITE
+
+ROOT = Path(__file__).parent
+PAGES, STATIC, TEMPLATES = ROOT / "pages", ROOT / "static", ROOT / "templates"
+OUT, TMP, OLD = ROOT / "public", ROOT / "public.tmp", ROOT / "public.old"
+
+env = Environment(
+ loader=FileSystemLoader(TEMPLATES), autoescape=select_autoescape(["html"])
+)
+common = {"site": SITE, "nav": NAV, "year": date.today().year}
+
+
+def write(root: Path, url: str, html: str) -> None:
+ """'/about/' -> root/about/index.html, '/' -> root/index.html"""
+ dest = root / url.strip("/") / "index.html"
+ dest.parent.mkdir(parents=True, exist_ok=True)
+ dest.write_text(html, encoding="utf-8")
+
+
+def build() -> None:
+ # Build in a scratch dir; public/ is only touched at the very end,
+ # so a failed build never breaks what's being served.
+ shutil.rmtree(TMP, ignore_errors=True)
+ if STATIC.exists():
+ shutil.copytree(STATIC, TMP)
+ else:
+ TMP.mkdir()
+
+ page_tpl = env.get_template("base.html")
+ for src in sorted(PAGES.glob("*.html")):
+ post = frontmatter.load(src)
+ url = "/" if src.stem == "index" else f"/{src.stem}/"
+ html = page_tpl.render(
+ **common, url=url, meta=post.metadata, content=post.content
+ )
+ write(TMP, url, html)
+
+ (TMP / "404.html").write_text(
+ env.get_template("404.html").render(
+ **common, url="/404.html", meta={"title": "Page not found", "noindex": True}
+ ),
+ encoding="utf-8",
+ )
+
+ # Swap into place
+ if OUT.exists():
+ shutil.rmtree(OLD, ignore_errors=True)
+ OUT.rename(OLD)
+ TMP.rename(OUT)
+ shutil.rmtree(OLD, ignore_errors=True)
+ print(f"Built {len(list(PAGES.glob('*.html')))} pages -> {OUT}")
+
+
+if __name__ == "__main__":
+ build()
diff --git a/config.py b/config.py
index e69de29..0513c2f 100644
--- a/config.py
+++ b/config.py
@@ -0,0 +1,13 @@
+SITE = {
+ "name": "Alabama Progress",
+ "description": "A community of like-minded Alabamians working to create positive change and pursue forward progress across our state.",
+ "base_url": "http://localhost:8000", # change when the domain is settled
+ "email": "AlabamaProgressOrg@gmail.com",
+}
+
+# (label, url). Add ("News", "/news/") once the news pages exist.
+NAV = [
+ ("Home", "/"),
+ ("About", "/about/"),
+ ("Join", "/join/"),
+]
diff --git a/flake.nix b/flake.nix
index a554cea..2d7a602 100644
--- a/flake.nix
+++ b/flake.nix
@@ -117,6 +117,24 @@
vscode = pkgs.vscodium;
vscodeExtensions = extensions;
};
+
+ scripts = [
+ (pkgs.writeShellScriptBin "build" ''
+ exec python build.py "$@"
+ '')
+ (pkgs.writeShellScriptBin "serve" ''
+ port="''${1:-8000}"
+ python build.py || exit 1
+ echo "Serving public/ at http://localhost:$port"
+ exec python -m http.server "$port" --directory public
+ '')
+ (pkgs.writeShellScriptBin "watch-site" ''
+ exec watchfiles "python build.py" templates pages static ../content
+ '')
+ (pkgs.writeShellScriptBin "linkcheck" ''
+ exec lychee --offline --no-progress public
+ '')
+ ];
in
{
default = pkgs.mkShell {
@@ -131,7 +149,8 @@
pkgs.prettier
pkgs.git
pkgs.nixpkgs-fmt
- ];
+ ]
+ ++ scripts;
shellHook = ''
# Build the site (expects build.py in the current directory)
diff --git a/pages/about.html b/pages/about.html
index e69de29..812f6e4 100644
--- a/pages/about.html
+++ b/pages/about.html
@@ -0,0 +1,61 @@
+---
+title: About
+description: Who Alabama Progress is, our mission, vision, and the values we stand for.
+---
+
+
About Alabama Progress
+
Alabama Progress is a community of like-minded Alabamians who enjoy discussing and debating current
+ social and political issues, and also connecting, organizing, and collaborating on political actions of consequence
+ primarily in our local communities.
+
+
+
+
What drives our work
+
+
+
Our mission
+
Empower Alabamians to create positive change.
+
Our mission is to empower Alabamians to create positive change and pursue forward progress by creating
+ connections, building coalitions, encouraging active participation in processes both political and
+ non-political,
+ and dissolving the barrier between those who seek to represent and the represented.
+
+
+
+
Our vision
+
A strong and victorious future of progress.
+
Our vision is to see an Alabama working towards a strong and victorious future of progress for the people and
+ places we call home.
+
+
+
+
+
+
Our values
+
+
Pro Racial Justice
+
Pro Union
+
Pro Human Rights, including LGBTQ+ and Women’s Rights
+
\ No newline at end of file
diff --git a/pages/index.html b/pages/index.html
index e69de29..04d5adb 100644
--- a/pages/index.html
+++ b/pages/index.html
@@ -0,0 +1,41 @@
+---
+description: "A community of like-minded Alabamians working to create positive change and pursue forward progress across our state."
+scripts: [legacy-redirect.js]
+---
+
+
+
+
Progress begins with you.
+
Alabama Progress is a community of like-minded Alabamians who enjoy discussing and debating current
+ social and political issues, and also connecting, organizing, and collaborating on political actions of
+ consequence primarily in our local communities.
+
\ No newline at end of file
diff --git a/pages/join.html b/pages/join.html
index e69de29..140ae5d 100644
--- a/pages/join.html
+++ b/pages/join.html
@@ -0,0 +1,91 @@
+---
+title: Join
+description: Request to join the Alabama Progress community and connect with Alabamians working for positive change.
+scripts: [join.js]
+---
+
Ready to get involved?
+
+ If you're interested in becoming a part of our community, reach out and say
+ hello. We'd love to have you.
+
+
+ We run a private Discord community for our members. You can request to join by
+ filling out the application below. View our Privacy Policy for information on how your data is
+ handled when submitting this form.
+
\ No newline at end of file
diff --git a/pages/privacy.html b/pages/privacy.html
index e69de29..0b5f6cb 100644
--- a/pages/privacy.html
+++ b/pages/privacy.html
@@ -0,0 +1,38 @@
+---
+title: Privacy Policy
+description: How Alabama Progress handles your information, including what the join form collects.
+---
+
Privacy Policy
+
Alabama Progress respects your privacy and collects the bare minimum amount of information needed to run
+ our community.
+
Last updated: November 20, 2026
+
+
Browsing and Cookies
+
No personal information is collected simply by visiting or browsing this website. This site does not use cookies,
+ tracking pixels, behavioral analytics, or advertising trackers.
+
+
Information Collected via the Join Form
+
Personal information is only collected if you voluntarily choose to submit the community join request form. The form
+ collects the following details:
+
+
Discord username (required)
+
Name (optional)
+
Alabama voter registration status (required)
+
Reason for wanting to join (required)
+
Referrals from existing server members (optional)
+
Political organization memberships (optional)
+
Social media or personal links (optional)
+
+
+
How Information Is Used and Retained
+
Information submitted through the join form is transmitted solely to the administrators of the Alabama Progress
+ Discord server for the purpose of reviewing and approving your membership request. Submitted form data is not stored
+ in a database or retained after your application is reviewed.
+
+
Third-Party Sharing
+
Alabama Progress does not sell, rent, trade, or share any submitted information with third parties, data brokers, or
+ outside organizations.
+
+
Contact
+
If you have any questions about this privacy policy or how join requests are handled, contact AlabamaProgressOrg@gmail.com.