Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
swift502 committed Nov 13, 2024
1 parent a742b79 commit 298c5a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/projects/[project].astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import BigButton from '../../components/core/BigButton.astro';
import { getProjects, getContentBlockLibrary, logError, getPageInfo } from '../../scripts/astro-helpers';
import '../../styles/tiles.css';
const { project } = Astro.props;
// Dynamic routing
export async function getStaticPaths()
{
Expand All @@ -17,6 +15,8 @@ export async function getStaticPaths()
}));
}
const { project } = Astro.props;
// Get content blocks
let contentBlockLibrary = getContentBlockLibrary();
Expand Down Expand Up @@ -58,7 +58,8 @@ const pageInfo = getPageInfo({
if (block.type in contentBlockLibrary)
{
const Component = contentBlockLibrary[block.type];
return <Component project={project}
return <Component
project={project}
contentBlock={{
'index': index,
'properties': block,
Expand Down

0 comments on commit 298c5a4

Please sign in to comment.