diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 22cc2dc..0be6882 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,23 +26,10 @@ jobs: echo REPO_VERSION_HASH=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT echo PROJECT_VERSION=$(npm pkg get version --workspaces=false | tr -d \") >> $GITHUB_OUTPUT - - name: Show Metadata - run: | - set -x - echo "${{ steps.project_metadata.outputs.REPO_NAME }}" - echo "${{ steps.project_metadata.outputs.repo_version_hash }}" - echo "${{ steps.project_metadata.outputs.project_version }}" build_and_push: runs-on: ubuntu-latest needs: determine_version steps: - - name: Show Metadata - run: | - set -x - echo "${{ needs.determine_version.outputs.repo_name }}" - echo "${{ needs.determine_version.outputs.repo_name }}" - echo "${{ needs.determine_version.outputs.repo_name }}" - - name: Checkout Repository uses: actions/checkout@v4 diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000..80bf719 Binary files /dev/null and b/public/favicon.png differ diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index f157bd1..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 74a8fde..85f245f 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,15 +1,17 @@ --- -const pageTitle = Astro.props.title || "Corwin Perren"; +const pageTitle = Astro.props.title ? `${Astro.props.title} - Corwin Perren`: "Corwin Perren"; --- + - - - - + + + + {pageTitle} +

{pageTitle}

\ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro deleted file mode 100644 index 838fd78..0000000 --- a/src/layouts/Layout.astro +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - Corwin Perren - - - - - - - diff --git a/src/pages/hobby/[id].astro b/src/pages/hobby/[id].astro index 25e2536..a4ca14d 100644 --- a/src/pages/hobby/[id].astro +++ b/src/pages/hobby/[id].astro @@ -1,17 +1,18 @@ --- -import { getCollection, render } from 'astro:content'; +import {getCollection, render} from 'astro:content'; +import BaseLayout from "../../layouts/BaseLayout.astro"; // 1. Generate a new path for every collection entry export async function getStaticPaths() { const hobbies = await getCollection('hobbies'); return hobbies.map(hobby => ({ - params: { id: hobby.id }, - props: { hobby: hobby }, + params: {id: hobby.id}, + props: {hobby: hobby, title: hobby.id}, })); } // 2. For your template, you can get the entry directly from the prop -const { hobby } = Astro.props; -const { Content } = await render(hobby); - +const {hobby} = Astro.props; +const {Content} = await render(hobby); --- -

{hobby.id}

- \ No newline at end of file + + + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index eb277da..4afe7a0 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,23 +1,27 @@ --- -import { getCollection } from 'astro:content'; +import {getCollection} from 'astro:content'; +import BaseLayout from "../layouts/BaseLayout.astro"; + const projects = await getCollection('projects'); const hobbies = await getCollection('hobbies'); --- -

My Projects

- + +

My Projects

+ + +

My Hobbies

+ +
-

My Hobbies

- - @@ -46,4 +50,3 @@ const hobbies = await getCollection('hobbies'); - \ No newline at end of file diff --git a/src/pages/project/[id].astro b/src/pages/project/[id].astro index 0b78494..d462206 100644 --- a/src/pages/project/[id].astro +++ b/src/pages/project/[id].astro @@ -1,17 +1,18 @@ --- -import { getCollection, render } from 'astro:content'; +import {getCollection, render} from 'astro:content'; +import BaseLayout from "../../layouts/BaseLayout.astro"; // 1. Generate a new path for every collection entry export async function getStaticPaths() { const projects = await getCollection('projects'); return projects.map(project => ({ - params: { id: project.id }, - props: { project: project }, + params: {id: project.id}, + props: {project: project}, })); } // 2. For your template, you can get the entry directly from the prop -const { project } = Astro.props; -const { Content } = await render(project); - +const {project} = Astro.props; +const {Content} = await render(project); --- -

{project.id}

- \ No newline at end of file + + + \ No newline at end of file