astro-template Svelte Themes

Astro Template

my astro template

Astro Template

It's a twitter-like Astro blog template. Based on commit

Usage

Before you use this template, these are the following places you need to modify according to your actual environment.

  1. .github\workflows\deploy.yml
    • If you don't need to use GitHub's workflow for deployment, then you should just remove it.
    • Otherwise, you should edit the two environment variables under jobs->build-and-deploy->env to match your deployment url.
  2. package.json
    • You need to modify the build script like this
      "build": "cross-env PUBLIC_BASE_URL='/astro-template/' cross-env PUBLIC_SITE_URL='https://nigh.github.io' astro build"
      
      As with workflow above, configure it with the correct environment variables

Now, things would works perfectly.

npm install
# start a dev server
npm run dev
# prettier format
npm run format
# build a static site
npm run build

Top categories

Loading Svelte Themes