Source code for my gallery webpage. https://gallery.badmanners.xyz
Find a file
Bad Manners a713adc1ec Add Mastodon links to new stories, add title texts, and improve tags
- Added Mastodon links to "Woofer Exploration" and "Rose's Binge"
- Add title texts to stories and games thumbnails on index, stories, games, and tag pages
- Add descriptions and related tags to tag pages
2024-07-23 17:12:54 -03:00
.vscode Migrate deploy-lftp script to tsx 2024-07-18 19:18:09 -03:00
examples Add _Rose's Binge_ and add gallery post links for previous stories 2024-07-20 22:42:16 -03:00
public Add Mastodon links to new stories, add title texts, and improve tags 2024-07-23 17:12:54 -03:00
scripts Migrate deploy-lftp script to tsx 2024-07-18 19:18:09 -03:00
src Add Mastodon links to new stories, add title texts, and improve tags 2024-07-23 17:12:54 -03:00
.gitignore Migrate deploy-lftp script to tsx 2024-07-18 19:18:09 -03:00
.prettierignore Add Mastodon comments and remove date-fns dependency 2024-03-27 11:54:18 -03:00
.prettierrc.mjs Fix up first version and add Prettier and Docker 2024-03-20 11:34:09 -03:00
astro.config.mjs Migrate deploy-lftp script to tsx 2024-07-18 19:18:09 -03:00
LICENSE Add LICENSE 2024-03-27 22:28:20 -03:00
package-lock.json Add Mastodon links to new stories, add title texts, and improve tags 2024-07-23 17:12:54 -03:00
package.json Add Mastodon links to new stories, add title texts, and improve tags 2024-07-23 17:12:54 -03:00
README.md Migrate deploy-lftp script to tsx 2024-07-18 19:18:09 -03:00
tailwind.config.mjs Add Mastodon links to new stories, add title texts, and improve tags 2024-07-23 17:12:54 -03:00
tsconfig.json Fix up first version and add Prettier and Docker 2024-03-20 11:34:09 -03:00

gallery.badmanners.xyz

Static website built in Astro + Typescript + TailwindCSS.

Requirements

  • Node.js 20+
  • LFTP, for remote deployment script
  • LibreOffice, for story export script

Development

Setup

git clone https://git.badmanners.xyz/badmanners/gallery.badmanners.xyz
cd gallery.badmanners.xyz
npm install && npm run astro -- sync

Local development

npm run dev             # Start development server (quit with Ctrl-C)
npm run astro -- sync   # Rebuild types from src/content/ files
npm run prettier        # Prettier formatting

Export story for upload

Requires libreoffice to be installed and in your path.

npm run export-story -- --output-dir ~/Documents/TO_UPLOAD slug-for-story-to-export

Build and deploy to remote

npm run build

Then, if you're using LFTP:

  1. Create a new .env file at the root of the project:
DEPLOY_LFTP_HOST=https://example-webdav-server.com
DEPLOY_LFTP_USER=example_user
DEPLOY_LFTP_PASSWORD=sup3r_s3cr3t_password
DEPLOY_LFTP_TARGETFOLDER=sites/gallery.badmanners.xyz/
  1. Run the following command: npm run deploy-lftp

Otherwise, to deploy over SSH: scp -r ./dist/* my-ssh-server:./gallery.badmanners.xyz/