Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lokimckay/astro-starter

My lightweight Astro starter template
https://github.com/lokimckay/astro-starter

Last synced: 23 days ago
JSON representation

My lightweight Astro starter template

Awesome Lists containing this project

README

        

# Astro Starter

My lightweight Astro starter template

Demo: https://lokimckay.github.io/astro-starter/

## Features

- [Dark/light mode toggle](https://docs.astro.build/en/tutorial/6-islands/2/)
- [Emoji favicon](https://css-tricks.com/emoji-as-a-favicon/)
- [Fixel font](https://fixel.macpaw.com/)
- [View transitions](https://docs.astro.build/en/guides/view-transitions/)
- [MDX integration](https://docs.astro.build/en/guides/integrations-guide/mdx/)
- TS config `"@/*": ["./src/*"]` path mapping
- Github pages deployment

## Usage

```shell
npx degit lokimckay/astro-starter my-new-project \
cd my-new-project \
npm install \
npm start
```

## Optional next steps

### Add integrations

- [preact](https://docs.astro.build/en/guides/integrations-guide/preact)

### Remove github pages deployment

1. Delete `.github` directory
1. Remove `site` and `base` configuration from `astro.config.mjs`
1. Change relative navigation links (e.g. `"./about"`) to absolute in `layouts/base.astro`
1. Change relative asset links (e.g. `"./fonts/*`) to absolute in `styles/base.css`