Quick Start
This is a quick start guide to getting a SuperWeb theme up and running on the internet. This is intended for users already familiar with working with Astro projects. If you prefer a more in-depth guide, see this tutorial.
Download the code
Using git
-
On the theme’s GitHub page, click the green “Code” and copy the
HTTPS URL
. -
Open a terminal and run the following command:
-
Navigate to the theme’s directory, install the dependencies, and start the development server:
-
Open http://localhost:4321 in your browser to view the website.
Using a zip file
-
Download the zip file for a theme, either from the theme’s GitHub page or from Gumroad.
-
Extract the zip file to a directory of your choice.
-
Navigate to the theme’s directory, install the dependencies, and start the development server:
-
Open http://localhost:4321 in your browser to view the website.
Configure your development environment
See Astro’s official editor setup documentation on how you can improve the development experience and unlock helpful features.
Configure package.json
Configure astro.config.mjs
Configure metadata
To change the website’s metadata, edit src/siteConfig.ts
.
Field | Req | Description |
---|---|---|
title | Yes | Displayed in header and browser tab. Used in SEO and RSS. |
description | Yes | Used in SEO and RSS. |
url | Yes | Used in SEO and RSS. |
author | Yes | Used in SEO and RSS. |
locale | Yes | Used for SEO, RSS, and formatting dates. Defaults to en-US. |
Customize the links shown in the navigation bar.
Each link should be an object with a path and a label, and must have a corresponding page in src/pages
. There must be at least one link or the Navigation.astro
component will encounter an error.
Field | Req | Description |
---|---|---|
path | Yes | The path to send the user to. Used in SEO and RSS. |
label | Yes | The text to be used for the link. Used in SEO. |
Customize your social media links. Add as many as you’d like.
Field | Req | Description |
---|---|---|
path | Yes | The path to send the user to. Used in SEO and RSS. |
label | Yes | The text to be used for the link. Used in SEO. |
Start developing
Open src/pages/index.astro
in your text editor and start editing. When you save the file, the page in your browser (http://localhost:4321) will update automatically and reflect the changes you make.
Deploying your site
Read the deployment documentation for information on deploying your site.