This repository contains the source code for the Swedish MTBO community site Mountainbikeorientering (https://mountainbikeorientering.se). The code is free and open-source; anyone willing to contribute can submit a pull request with new content, styling changes, or other improvements to the site.
The site is built using Astro based on the Astrowind template which is a free and open-source template to make websites using Astro 5.0 + Tailwind CSS.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
npm run check |
Run code quality checks (Astro, ESLint, Prettier) |
npm run test |
Run all verification tests (OG, Meta, Hreflang, Links) |
npm run optimize-images |
Optimize large source images (>2MB) to prevent performance issues |
npm run submit:indexnow |
Submit updated URLs to IndexNow (requires build first) |
If you have any idea, suggestions or find any bugs, feel free to open a discussion, an issue or create a pull request. That would be very useful for all of us and we would be happy to listen and take action.
Initially created by blaudden and maintained by a community of contributors.
Mountainbikeorientering is licensed under the MIT license — see the LICENSE file for details.