No description
  • Astro 43.6%
  • MDX 27.9%
  • TypeScript 23.3%
  • Nix 2.4%
  • CSS 1.6%
  • Other 1.2%
Find a file
2026-03-11 17:18:46 -03:00
.vscode Migrate tags to single file 2024-12-15 15:30:12 -03:00
examples Migrate to Astro 5 2024-12-05 21:43:04 -03:00
npins Remove flake 2026-02-14 10:30:07 -03:00
public Improved a11y and SEO 2024-11-05 19:42:21 -03:00
scripts Add labels to icons and add 'Party Trick' 2025-01-02 11:23:24 -03:00
src SoFurry Beta is now the main one 2026-03-11 17:18:46 -03:00
.envrc Remove flake 2026-02-14 10:30:07 -03:00
.gitignore Update to Nix setup and remove SoFurry links 2026-01-10 19:41:13 -03:00
.prettierignore Bring over improvements from badmanners.xyz 2024-08-20 15:36:48 -03:00
.prettierrc.mjs Fix up first version and add Prettier and Docker 2024-03-20 11:34:09 -03:00
astro.config.mjs Remove Apache and change instructions 2026-02-08 09:55:20 -03:00
bun.lock Remove Apache and change instructions 2026-02-08 09:55:20 -03:00
LICENSE.md Update navbar in GalleryLayout and add astro-htaccess 2024-08-30 17:50:38 -03:00
package-lock.json Remove Apache and change instructions 2026-02-08 09:55:20 -03:00
package.json Remove Apache and change instructions 2026-02-08 09:55:20 -03:00
README.md Remove Apache and change instructions 2026-02-08 09:55:20 -03:00
shell.nix Remove flake 2026-02-14 10:30:07 -03:00
tailwind.config.mjs Start creating blog posts 2024-09-13 22:36:39 -03:00
tsconfig.json Use path aliasing and improve accesibility 2024-09-14 17:52:43 -03:00

gallery.badmanners.xyz

Static gallery website built in Astro + Typescript + TailwindCSS.

For attributions, see licenses.toml.

Requirements

  • Bun
  • (optional) rsync, for remote deployment.
  • (optional) LibreOffice, for the story export script.

Development

Setup

git clone https://git.badmanners.xyz/badmanners/gallery.badmanners.xyz
cd gallery.badmanners.xyz
direnv allow
bun install

Local development

bun dev       # Start development server (quit with Ctrl-C)
bun sync      # Rebuild types from Astro config and src/content/ files
bun prettier  # Prettier formatting

Configuration

The following optional environment variables can be set within a .env file:

Name Type Description
PUBLISH_DRAFTS boolean If set to true, includes drafts in the production build. Published drafts still won't be directly indexed by any other pages.

Export story for upload

Requires libreoffice to be installed and in your path.

bun export-story -- -o ~/Documents/TO_UPLOAD slug-for-story-to-export

Build and deploy to remote

bun run build

Then, if you're using rsync, after configuring the gallerybm host (or the name of your choosing) in ~/.ssh/config, you can use a command like:

rsync --delete-after -acP dist/ gallerybm:www