dark-flames / apollo-typst

Typst blog template based on Zola, typst.ts, and apollo.
Apache License 2.0
27 stars 1 forks source link

apollo-typst

Typst static site template based on Zola, typst.ts, and apollo. See a live preview here.

Features

Usage

Preparation

Write posts with Typst

Build

# If you updated the frontend
yarn build:fe
# If you updated the typst
yarn build:typ
# Final zola build
zola build

Develop

yarn serve

Deployment

To deploy your site to GitHub Pages, you can use the provided GitHub Action in branch action-v1:

Example .github/workflows/deployl.yaml

name: Deploy

on: workflow_dispatch

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v4
      - name: deploy
        uses: dark-flames/apollo-typst@action-v1
        with:
          access-token: ${{ secrets.ACCESS_TOKEN }}
          deploy-branch: static
        # deploy-repo: ${{ another/repo }}

If you want to use custom page, remember to put CNAME file in the static/.