Source code for my gallery webpage. https://gallery.badmanners.xyz
Find a file
Bad Manners a9d5a88d0e Migrate to LFTP deployment and improve templates
- Add `deploy-lftp` command
- Add 404 page
- Change relative links to absolute links
- Fix pagination links
- Remove drafts from Pagefind indexing
- Fix OpenGraph descriptions for i18n
- Add Commissioners and Requesters components
- Add consistent type-checking for getStaticPaths
2024-06-16 19:43:29 -03:00
.vscode Initial commit 2024-03-20 00:56:57 -03:00
examples Migrate to LFTP deployment and improve templates 2024-06-16 19:43:29 -03:00
public Improve font loading and fix scripts 2024-03-20 21:47:52 -03:00
scripts Move exports/healthcheck to api path 2024-03-27 18:53:05 -03:00
src Migrate to LFTP deployment and improve templates 2024-06-16 19:43:29 -03:00
.gitignore Initial commit 2024-03-20 00:56:57 -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 Add Pagefind searching 2024-04-05 01:00:47 -03:00
deploy_lftp.sh Migrate to LFTP deployment and improve templates 2024-06-16 19:43:29 -03:00
LICENSE Add LICENSE 2024-03-27 22:28:20 -03:00
package-lock.json Migrate to LFTP deployment and improve templates 2024-06-16 19:43:29 -03:00
package.json Migrate to LFTP deployment and improve templates 2024-06-16 19:43:29 -03:00
README.md Migrate to LFTP deployment and improve templates 2024-06-16 19:43:29 -03:00
tailwind.config.mjs Fix up first version and add Prettier and Docker 2024-03-20 11:34:09 -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.

Development

Setup

git clone https://git.badmanners.xyz/badmanners/gallery.badmanners.xyz
cd git.badmanners.xyz
npm install

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/