The website for Yet Another Software Suite
Our libraries, our teams and our blog, in one place.
yassrobotics.com · Blog · Projects · Team YASS · Discord
This is the source of yassrobotics.com: the home of YAGSL, YAMS, YALL and YAMG, the teams behind them, and the YASS blog. It's a static Astro site, styled with Tailwind CSS. Every push to main builds it and deploys it with GitHub Pages.
You need Node.js 22.12 or newer, which Astro 7 requires.
npm install
npm run dev # a live preview at http://localhost:4321 that updates as you edit
npm run build # the production build, into dist/. Run it before you push: it fails on a bad post.| Path | What's there |
|---|---|
src/pages/ |
One file per page. about.astro is /about, and blog/[slug].astro draws every post. |
src/content/blog/ |
The blog posts, one Markdown file each. |
src/assets/blog/ |
The posts' photos, a folder per post. |
src/data/ |
The projects, teams and merch the pages list, and the blog's header images. |
src/components/ and src/layouts/ |
The navigation bar, footer, theme toggle and social feeds. |
src/styles/global.css |
The colors, fonts and shared styles, for both the light and dark themes. |
astro.config.mjs |
The site's settings, including its page aliases. |
A post is one Markdown file in src/content/blog/. Its file name is its address: src/content/blog/my-post.md is at yassrobotics.com/blog/my-post. Use lowercase words joined by dashes, and pick it carefully, because links to the post break if it changes (see Page aliases).
Every post starts with front matter between --- lines:
---
title: "YAMS drives the FIRST A301"
sortDate: 2026-11-05T23:00:00Z
excerpt: "One or two sentences for the blog list and link previews."
image: "yams-a301-wrapper"
imageAlt: "What the header image shows, for screen readers"
---
The post starts here.| Field | Required | What it does |
|---|---|---|
title |
Yes | The post's title, on the post and in the blog list. |
sortDate |
Yes | Orders the posts, newest first, and is the date shown. Give a time, such as 2026-12-03T23:00:00Z: a bare date is read as midnight UTC and shows as the day before in American time zones. |
excerpt |
Yes | The summary in the blog list, and the description in link previews. |
image |
One of these two | The header image's name in src/data/blogImages.js (see Header image). |
logoHeader |
One of these two | true shows the YASS logo header instead of an image. |
imageAlt |
With image |
Alt text for the header image: what a reader should notice in it. |
imagePosition |
No | Which part of the header image to keep when it's cropped, as CSS object-position, such as "center 22%". Defaults to "center". |
imageFull |
No | true shows the whole header image at its own shape instead of cropping it to a banner. |
displayDate |
No | Text to show in place of the date, such as "Fall 2026". sortDate still orders the post. |
source |
No | A link to where the post first appeared. It's shown at the end as "Originally posted on Chief Delphi". |
A post needs exactly one of image or logoHeader: true, and imageAlt whenever it has an image. The build fails with a message if either is wrong.
Put a post's photos in their own folder, src/assets/blog/<post-name>/, named in the order they appear: 01-hero.png, 02-module.png and so on. Files in src/assets are optimized when the site builds, so don't put them in public/.
The header image is the banner at the top of the post and on its card in the blog list. It's imported by name, so it takes two steps:
-
Import it in
src/data/blogImages.jsand give it a name:import myPost from "../assets/blog/my-post/01-hero.png"; export const blogImages = { "my-post": myPost, // ... };
-
Use that name in the post's front matter:
image: "my-post", with itsimageAlt.
The banner is cropped to 288 pixels tall across the column, about 748 pixels wide on a desktop. An image that's 1496 by 576, twice that, shows sharp on every screen. Use imagePosition to keep the right part in view, or imageFull: true to show the whole image.
Link a photo from the post with a path relative to the post file:
The text in the brackets is the photo's alt text: describe what the reader should notice in it. Photos fill the column's width.
-
Two photos side by side: put them on the same line, with nothing between them. Each takes half the width, which suits tall screenshots such as phone screens.

-
A logo: end the alt text with "logo", as in
. It's drawn small and centered, without a frame. In the dark theme it's inverted, which suits dark line art on a transparent background. -
GIFs work the same way as photos.
Run npm run dev, open http://localhost:4321/blog/<post-name>, and check it:
- in both the light and dark themes,
- at phone width, where tables scroll sideways,
- in the blog list at
/blog.
Then run npm run build before you push.
A page alias sends an old address to a new one, so links keep working after a post is renamed. Aliases are the redirects in astro.config.mjs:
// Posts that were renamed after they were published.
redirects: {
"/blog/yams-a301-and-more": "/blog/yams-a301-wrapper",
},To rename a published post:
- Rename its Markdown file. Its address changes with it.
- Add a line to
redirects, from the old address to the new one. - Keep the old line forever. Links on Chief Delphi, Discord and other sites still use the old address.
The same works for any page, not just posts: add "/old-page": "/new-page". The build makes a small page at the old address that sends visitors to the new one.
