This is a free theme for Astro created by Cosmic Themes. It is a great place to house links to your various projects and socials.
- Fork this project to your own repository, and clone it to your local machine
- Install all necessary packages with
npm install
- Run
npm run dev
to start the dev server- By default, it will be available at
localhost:4321
- By default, it will be available at
- Edit the content either with Keystatic CMS at
localhost:4321/admin
or by editing the markdown files insrc/content/
- There's also an "Admin Dashboard" button you'll see in the demo that will take you to the CMS editor
- Update the colors if desired in
tailwind.config.cjs
, or any other code to adjust the looks - Update the site URL in
astro.config.mjs
and/public/robots.txt
to match your domain - After you're happy, update your changes to your repo and deploy to Netlify, Vercel, Cloudflare, or other provider of your choice
- A production-ready landing page inspired by linktree, made to be hosted as a static site
- Optional Keystatic CMS integration for editing content
- Built-in image optimiation using
astro:assets
- Tailwind CSS for styling
- See my blog post on recommended Astro web development setup.
- You can learn more information from the theme docs pages.
This project is open source and available under the GPL-3.0 License.
However, If you have purchased All Access from Cosmic Themes, there is a no attribution required license you can view at License details.
Astro looks for .astro
or .md
files in the src/pages/
directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/
, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/
directory. I also frequently use src/assets
for images when using Astro asssets for image optimization.
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:3000 |
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 |
Feel free to check out the Astro documentation.