Personal portfolio website using Astro
Find a file
Troy 3698e926ea
All checks were successful
Docker / run-tests (push) Successful in 2m38s
Docker / build-and-push-image (push) Successful in 2m54s
fix: remove trailing slash (#1)
Set `SERVER_REDIRECT_TRAILING_SLASH=false` within Dockerfile to disable SWS from adding a trailing slash.

Reviewed-on: #1
Co-authored-by: Troy <hello@troylusty.com>
Co-committed-by: Troy <hello@troylusty.com>
2025-04-14 01:16:25 +00:00
.forgejo/workflows feat: build using forgejo actions 2025-03-08 14:53:12 +00:00
public feat: switch back to previous favicon 2025-02-17 20:51:13 +00:00
src fix: remove duplicate dates on articles 2025-04-10 10:48:00 +01:00
.dockerignore first commit 2024-12-23 21:18:55 +00:00
.gitattributes first commit 2024-12-23 21:18:55 +00:00
.gitignore first commit 2024-12-23 21:18:55 +00:00
.prettierrc.json first commit 2024-12-23 21:18:55 +00:00
astro.config.ts feat: article tags link to articles with the same tag 2025-03-11 20:56:54 +00:00
Dockerfile fix: remove trailing slash (#1) 2025-04-14 01:16:25 +00:00
LICENSE first commit 2024-12-23 21:18:55 +00:00
package-lock.json fix: remove trailing slash (#1) 2025-04-14 01:16:25 +00:00
package.json fix: remove trailing slash (#1) 2025-04-14 01:16:25 +00:00
README.md docs: fix readme showcase image 2025-03-09 21:25:55 +00:00
shell.nix feat: match cv style to new site theming 2025-03-02 18:07:22 +00:00
showcase.webp docs: fix readme showcase image 2025-03-09 21:25:55 +00:00
tsconfig.json first commit 2024-12-23 21:18:55 +00:00

Astro Portfolio: Personal Website

Showcase

Features:

  • SEO-friendly
  • Sitemap
  • RSS Feed
  • Markdown & MDX
  • TailwindCSS
  • Fontsource

🚀 Project Structure

Inside of this Astro project, you'll see the following folders and files:

├── public/
├── src/
│   ├── components/
│   ├── content/
│   ├── layouts/
│   └── pages/
├── Dockerfile
├── README.md
├── astro.config.ts
├── package.json
├── tailwind.config.ts
└── tsconfig.json

The layout of directories and content should match Astro's own recommendations with components being found in src/components/ for example.

Project and post articles are contained within MDX documents located in src/content/. This has been done to allow for videos to be embedded when they are also kept in the corresponding content directory.

🚧 Building

Docker is used to deploy the site to a VPS. Container images are built using an Action from the included Dockerfile.

🧞 Commands

All commands are run from the root of the project, from a terminal.

Command Action
npm install Install dependencies
npm run dev Start local dev server at localhost:4321
npm run build Build production site to ./dist/
npm run preview Preview build locally, before deploying
npm run format:check Check files with Prettier
npm run format:write Run Prettier on all files, rewriting all files in place
npm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

All available commands can be found by running npm run from a terminal.

📜 Licence

This project is under the MIT LICENSE. However, this applies to the ONLY to the website itself and does not extend to any content included within.