diff --git a/CLAUDE.md b/CLAUDE.md index aea9c51..ae73aed 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -12,6 +12,7 @@ Kestrel's Builds is a static site of craft build write-ups. Builds vary (foam an - `index.html` - Site index (HTML/CSS in one file, no JavaScript). One `` card per build, newest first; the newest also has class `first` (full-width card). - `og.png` - OpenGraph image for the index, 1200 x 630 +- `favicon.svg` - Icon shared by every page - `deploy` - Rsync deployment script - `/` - One folder per build, self-contained: `index.html`, `img/`, `dl/` - `greenman/` - Green Man mask @@ -27,9 +28,12 @@ Kestrel's Builds is a static site of craft build write-ups. Builds vary (foam an ## Adding a build -1. Create `/index.html` with its `img/` and `dl/`. -2. Add a card to the top of the list in the top-level `index.html`. -3. `./deploy -n`, then `./deploy`. +`README.md` has the full steps. In short: + +1. Create `/index.html` with its `img/` and `dl/`, the two back links, the favicon link, and its own description, canonical and Open Graph tags with an `og-image.jpg`. +2. Add a card to the top of the list in the top-level `index.html` and move the class `first` to it. +3. Retake `og.png`. +4. `./deploy -n`, then `./deploy`. ## Development @@ -49,7 +53,7 @@ The `deploy` script uses rsync to push to YunoHost (a My Webapp static app, like ``` **Important deployment notes:** -- `DIR` in `deploy` is `/var/www/my_webapp__3/www`. The script refuses to run if it is ever reset to the `my_webapp__N` placeholder. +- `DIR` in `deploy` is `/var/www/my_webapp__3/www`, this app's web root on the server. - rsync runs with `--delete`: anything on the server that is not in this folder is removed. Do not keep server-only files in the web root. - `HOST=social` is an SSH config alias, the same one pantry uses. diff --git a/README.md b/README.md index 41edce4..366833d 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ A static site with no build step. Each build is a self-contained folder; the top ``` index.html - Site index: one card per build +favicon.svg - Icon shared by every page og.png - OpenGraph image for the index (1200 x 630); each build keeps its own og-image.jpg deploy - Deployment script (rsync to server) greenman/ - Green Man mask @@ -23,7 +24,9 @@ greenman/ - Green Man mask 1. Make a folder for it, named in lowercase with no spaces (`greenman`, `atompunk`). Put its page at `/index.html`, with its images and downloads inside the folder so its links stay relative. 2. In the top-level `index.html`, copy an `` card to the top of the list and change the link, image, alt text, title and the three lines of text. The newest build carries the extra class `first`, which gives it the full-width card; take `first` off the one it replaces. Card images are cropped to fit, so set `object-position` for the new image as `.greenman` does. 3. Give the new build's page a link back to the index, as `greenman/index.html` has at its top and bottom: `← Kestrel's Builds`. -4. Run `./deploy -n` to check what will be uploaded, then `./deploy`. +4. In the page's head, link the shared icon (``) and add its own description, canonical and Open Graph tags. Its share image is a 1200 x 630 `og-image.jpg` in the build's folder. +5. Retake `og.png`, a 1200 x 630 screenshot of the top of the index, since the first card has changed. +6. Run `./deploy -n` to check what will be uploaded, then `./deploy`. ## Local preview @@ -55,7 +58,7 @@ Each My Webapp gets a numbered folder on the server. Find this one: ssh social 'ls -d /var/www/my_webapp*' ``` -Set `DIR` in `deploy` to that folder's `www` directory, which for this site is `/var/www/my_webapp__3/www` (already set). +Set `DIR` in `deploy` to that folder's `www` directory. For this site it is `/var/www/my_webapp__3/www`. ### 3. Deploy @@ -64,4 +67,4 @@ Set `DIR` in `deploy` to that folder's `www` directory, which for this site is ` ./deploy ``` -The script rsyncs this folder to the server and deletes anything there that is no longer here. It skips the project's own files (`deploy`, `README.md`, `CLAUDE.md`, `.git`). +The script rsyncs this folder to the server and deletes anything there that is no longer here. It skips the project's own files: the script itself, the two Markdown docs, and git and editor files. diff --git a/deploy b/deploy index a28a88e..c727e4b 100755 --- a/deploy +++ b/deploy @@ -2,17 +2,9 @@ # Deploy the builds site to YunoHost (My Webapp, static). # ./deploy push the site # ./deploy -n dry run: show what would change, change nothing -USER=admin HOST=social DIR=/var/www/my_webapp__3/www -case "$DIR" in - *my_webapp__N/*) - echo "Set DIR in ./deploy first: replace my_webapp__N with this app's folder under /var/www on the server." - echo " ssh ${HOST} 'ls -d /var/www/my_webapp*'" - exit 1 ;; -esac - DRY="" [ "$1" = "-n" ] && DRY="--dry-run" && echo "Dry run: nothing will be changed." diff --git a/index.html b/index.html index 5e663b9..c1cc6c3 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Kestrel's Builds - + @@ -41,6 +41,7 @@ } a { color: var(--gold); text-decoration: none; } a:hover { text-decoration: underline; } + .nowrap { white-space: nowrap; } .wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); } header.mast { padding: 56px 0 28px; text-align: center; } @@ -83,10 +84,10 @@ section { margin-top: 56px; } section h2 { font-size: 1.6rem; font-weight: 400; margin: 0 0 12px; } + section p + h2 { margin-top: 28px; } .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } @media (max-width: 720px) { .cols { grid-template-columns: 1fr; gap: 28px; } } section p { margin: 0 0 12px; color: var(--bone-dim); } - section p b { color: var(--bone); font-weight: 500; } ul.how { margin: 0; padding-left: 1.2em; color: var(--bone-dim); } ul.how li { margin-bottom: 8px; } ul.how b { color: var(--bone); font-weight: 500; } @@ -128,8 +129,8 @@

Who makes these

I am Eric, and I make these at a workbench in Athens, Georgia. Each one is something I built and wore or used first. The write-up came afterwards, once I knew what worked.

I also keep a hall of free board games at Kestrel's Hall, and I roost at blog.kestrelsnest.social.

-

Tip jar

-

The builds are free and will stay free. Materials and filament do add up, though, and anyone who wants to chip in toward them can do so at ko-fi.com/kestrelsnest. Chipping in unlocks nothing, and every build is the same for everyone.

+

Tip jar

+

The builds are free and will stay free. Materials and filament do add up, though, and anyone who wants to chip in toward them can do so at ko-fi.com/kestrelsnest. Chipping in unlocks nothing, and every build is the same for everyone.