Game in the Brain blog — AI-optimized WordPress theme and plugins. Built for agent-driven layout changes. AGPL.
  • PHP 83.7%
  • JavaScript 10%
  • CSS 6.3%
Find a file
Agent Kimi 6e47fad997 Fix gi7b-security login path: properly load login form at custom slug
- Fixed circular redirect where /signin redirected to wp-login.php which was blocked
- Added URL filters so WordPress outputs the custom slug everywhere
- Custom slug now internally loads wp-login.php without exposing the real path
- Direct wp-login.php access redirects to custom slug for non-logged-in users
- POST requests to wp-login.php still allowed for actual login submissions
2026-05-15 00:05:34 +08:00
docker Initial staging build: AI-optimized theme, curated AGPL plugins, staging docker stack 2026-05-14 23:10:19 +08:00
docs Initial staging build: AI-optimized theme, curated AGPL plugins, staging docker stack 2026-05-14 23:10:19 +08:00
plugins Fix gi7b-security login path: properly load login form at custom slug 2026-05-15 00:05:34 +08:00
theme/gi7b-blog-theme Initial staging build: AI-optimized theme, curated AGPL plugins, staging docker stack 2026-05-14 23:10:19 +08:00
README.md Initial staging build: AI-optimized theme, curated AGPL plugins, staging docker stack 2026-05-14 23:10:19 +08:00

Game in the Brain Blog

URL: https://blog.gi7b.org
License: AGPL-3.0
Purpose: AI-optimized WordPress blog — agents can edit layouts, swap sections, and deploy changes with minimal friction.


Philosophy

This blog is built to be agent-editable:

  • No build steps — Tailwind CSS loads via CDN. Change colors in assets/tailwind-config.js and they apply immediately.
  • Section-based PHP templates — Each homepage block is a separate template-parts/section-*.php file. An agent can add, remove, or reorder sections by editing front-page.php.
  • Design tokens as CSS variables — All colors, fonts, and spacing are centralized. No hunting through dozens of files.
  • Self-documenting code — Every file has a header comment explaining its role.
  • Block-friendly — The theme supports WordPress blocks, but critical layout lives in PHP for predictable agent editing.

Repo Structure

blog/
├── docker/
│   └── compose.yml                 # Staging stack (PC03 port 8071)
├── docs/
│   ├── AGENTS.md                   # How to edit this theme as an AI agent
│   ├── PLUGIN_MANIFEST.md          # Curated plugin list with audit notes
│   └── THEME_ARCHITECTURE.md       # Deep dive into the theme design system
├── plugins/
│   ├── gi7b-blog/                  # Custom site functionality (hero slider, etc.)
│   ├── gi7b-security/              # Login path hiding + hardening (AGPL)
│   └── simplebackup/               # Automated backup + restore (GPLv3)
├── theme/
│   ├── gi7b-blog-theme/            # Main WordPress theme
│   │   ├── style.css               # Theme header + base styles
│   │   ├── functions.php           # Enqueue assets, register menus, blocks
│   │   ├── front-page.php          # Homepage layout (assembles sections)
│   │   ├── header.php              # <head> + sticky navigation
│   │   ├── footer.php              # Footer
│   │   ├── index.php               # Fallback template
│   │   ├── single.php              # Single post template
│   │   ├── page.php                # Single page template
│   │   ├── template-parts/
│   │   │   ├── section-hero.php
│   │   │   ├── section-featured.php
│   │   │   ├── section-latest.php
│   │   │   ├── section-repos.php
│   │   │   └── section-connect.php
│   │   ├── assets/
│   │   │   ├── tailwind-config.js  # Tailwind CDN config (edit this!)
│   │   │   ├── theme-toggle.js     # Dark/light mode toggle
│   │   │   └── custom.css          # Small custom overrides
│   │   └── parts/
│   │       ├── nav-desktop.php
│   │       ├── nav-mobile.php
│   │       └── post-card.php
│   └── README.md                   # Theme quick-start for agents
└── README.md                       # This file

Quick Start (Staging)

# On PC03
cd /opt/stacks/wordpress-staging
docker compose up -d

# Theme lives in the container at:
# /var/www/html/wp-content/themes/gi7b-blog-theme/

# Deploy from this repo:
rsync -av --delete theme/gi7b-blog-theme/ /opt/stacks/wordpress-staging/wordpress_data/wp-content/themes/gi7b-blog-theme/

License

All custom code in this repository is licensed under AGPL-3.0.

Third-party code retains its original license (noted in each plugin's header).