[READ-ONLY] Mirror of https://github.com/flo-bit/blog-template. minimalistic astro blog template flo-bit.dev/blog-template/
astro blog template
0

Configure Feed

Select the types of activity you want to include in your feed.

test deploy

+14 -26
+11 -9
.github/workflows/deploy.yml
··· 1 1 name: Deploy to GitHub Pages 2 2 3 3 on: 4 - # Trigger the workflow every time you push to the `main` branch 5 - # Using a different branch name? Replace `main` with your branch’s name 6 4 push: 7 5 branches: [ main ] 8 - # Allows you to run this workflow manually from the Actions tab on GitHub. 9 6 workflow_dispatch: 10 7 11 - # Allow this job to clone the repo and create a page deployment 12 8 permissions: 13 9 contents: read 14 10 pages: write ··· 20 16 steps: 21 17 - name: Checkout your repository using git 22 18 uses: actions/checkout@v4 19 + 20 + - name: Set SITE and BASE values if MANUAL_SITE_BASE is false 21 + run: | 22 + if jq '.MANUAL_SITE_BASE == false' src/config.json; then 23 + SITE="https://$GITHUB_ACTOR.github.io" 24 + BASE="/${GITHUB_REPOSITORY#*/}" 25 + jq --arg SITE "$SITE" --arg BASE "$BASE" \ 26 + '.SITE = $SITE | .BASE = $BASE' src/config.json > tmp.$$.json && mv tmp.$$.json src/config.json 27 + fi 28 + 23 29 - name: Install, build, and upload your site 24 30 uses: withastro/action@v3 25 - # with: 26 - # path: . # The root location of your Astro project inside the repository. (optional) 27 - # node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional) 28 - # package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) 29 31 30 32 deploy: 31 33 needs: build ··· 36 38 steps: 37 39 - name: Deploy to GitHub Pages 38 40 id: deployment 39 - uses: actions/deploy-pages@v4 41 + uses: actions/deploy-pages@v4
+3 -2
src/config.json
··· 1 1 { 2 - "SITE": "https://flo-bit.github.io", 3 - "BASE": "/blog-template", 2 + "MANUAL_SITE_BASE": false, 3 + "SITE": "https://test.com", 4 + "BASE": "", 4 5 "SITE_TITLE": "Blog template", 5 6 "SITE_DESCRIPTION": "Welcome to my website!", 6 7 "SITE_FAVICON": "🙃",
-15
src/content/blog/test.md
··· 1 - --- 2 - title: test 3 - description: testytesty 4 - pubDate: Oct 26 2024 5 - heroImage: ../../assets/template-1.png 6 - --- 7 - ## test 123 8 - 9 - ```svelte 10 - <script lang="ts> 11 - export let test = 1; 12 - </script> 13 - 14 - <slot /> 15 - ```