diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 000000000..c8c129a91 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,45 @@ +name: Deploy Quartz site to GitHub Pages + +on: + push: + branches: + - v4 + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Fetch all history for git info + - uses: actions/setup-node@v3 + with: + node-version: 18.14 + - name: Install Dependencies + run: npm ci + - name: Build Quartz + run: npx quartz build + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: public + + deploy: + needs: build + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/content/.gitkeep b/content/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/index.md b/content/index.md new file mode 100644 index 000000000..1fd58b2ae --- /dev/null +++ b/content/index.md @@ -0,0 +1,5 @@ +--- +title: be-far's Digital Garden +--- +# Welcome! +You're on a site called a [[what-is-a-garden|Digital Garden]]. Here's some info on [[why-i-garden|Why I Garden]]. \ No newline at end of file diff --git a/content/what-is-a-garden.md b/content/what-is-a-garden.md new file mode 100644 index 000000000..51662abb4 --- /dev/null +++ b/content/what-is-a-garden.md @@ -0,0 +1,4 @@ +--- +title: What is a Garden? +--- +A Digital Garden is \ No newline at end of file diff --git a/content/why-i-garden.md b/content/why-i-garden.md new file mode 100644 index 000000000..04812d00e --- /dev/null +++ b/content/why-i-garden.md @@ -0,0 +1,3 @@ +--- +title: Why I Garden +--- diff --git a/quartz.config.ts b/quartz.config.ts index 447039d62..0713c824a 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -3,19 +3,17 @@ import * as Plugin from "./quartz/plugins" const config: QuartzConfig = { configuration: { - pageTitle: "🪴 Quartz 4.0", + pageTitle: "🪴 be-far", enableSPA: true, enablePopovers: true, - analytics: { - provider: "plausible", - }, - baseUrl: "quartz.jzhao.xyz", + analytics: null, + baseUrl: "be-far.com", ignorePatterns: ["private", "templates"], theme: { typography: { - header: "Schibsted Grotesk", - body: "Source Sans Pro", - code: "IBM Plex Mono", + header: "Overpass Mono", + body: "Inter", + code: "Fira Code", }, colors: { lightMode: {