Commit bb93219c authored by Zach Krall's avatar Zach Krall

fix build error

parent 7c887081
Pipeline #172786120 passed with stage
in 0 seconds
---
excluded_paths:
- 'content/**'
- 'public/**'
\ No newline at end of file
// .remarkrc.js
exports.plugins = [
require('remark-frontmatter'),
[
require('remark-retext'),
require('unified')().use({
plugins: [
require('retext-english'),
require('retext-syntax-urls'),
[require('retext-sentence-spacing'), { preferred: 1 }],
require('retext-repeated-words'),
require('retext-usage'),
],
}),
],
require('remark-preset-lint-consistent'),
require('remark-preset-lint-recommended'),
require('remark-preset-lint-markdown-style-guide'),
];
\ No newline at end of file
---
title: Away Status
description: |
Site-specific video projection.
description: Site-specific video projection
metadata:
year: 2015
categories:
......@@ -13,8 +12,6 @@ images:
- "/media/away-status_zach-krall_01.jpg"
- "/media/away-status_zach-krall_02.jpg"
- "/media/away-status_zach-krall_video.png"
textColor: "#fff"
bgColor: "#00f"
---
![Away Status](/media/away-status_zach-krall_01.jpg)
......
---
title: Bandwidth (Unique Forms of Continuity)
description:
metadata:
year: 2016
categories:
......
{
"commit": "bcd597d4e7fdd951e01743795d833167123b4b0d"
"commit": "7c8870810495e18218015663a474b895bf0745ee"
}
\ No newline at end of file
......@@ -77,8 +77,8 @@ export default function Post({ post }) {
<span>{post.metadata.year}</span>
<span>Categories</span>
<span>{post.metadata.categories.join(', ')}</span>
<span>Tools</span>
<span>{post.metadata.tools.join(', ')}</span>
{post.metadata.tools && <><span>Tools</span>
<span>{post.metadata.tools.join(', ')}</span></>}
{post.metadata.typefaces && (<>
<span>Typefaces</span>
<span dangerouslySetInnerHTML={{ __html: post.metadata.typefaces.join(', ') }}></span>
......@@ -144,8 +144,6 @@ export async function getStaticProps({ params }) {
"content",
"metadata",
"people",
"textColor",
"bgColor",
"external_link"
]
const post = await getDetailsForSlug("projects", params.slug, fields)
......
......@@ -68,38 +68,40 @@ export default function Post({ post }) {
<Heading style={{ fontSize: "var(--font-md)", marginBottom: '1.2em' }} text={post.title} />
<Grid>
<aside>
<div>Year<br />{post.metadata.year}</div>
<br />
<div>Categories<br />{post.metadata.categories.join(', ')}</div>
</aside>
<main>
<Markdown
options={{
forceBlock: true,
overrides: {
p: {
component: props => {
for (let child of props.children) {
console.log(child)
<>
<aside>
<div>Year<br />{post.metadata.year}</div>
<br />
<div>Categories<br />{post.metadata.categories.join(', ')}</div>
</aside>
<main>
<Markdown
options={{
forceBlock: true,
overrides: {
p: {
component: props => {
for (let child of props.children) {
console.log(child)
}
return props.children.some(
(child: JSX.Element) =>
child.type && child.type === "img"
) ? (
<>{props.children}</>
) : (
<p {...props} />
)
}
return props.children.some(
(child: JSX.Element) =>
child.type && child.type === "img"
) ? (
<>{props.children}</>
) : (
<p {...props} />
)
}
}
}
}}
>
{post.content}
</Markdown>
</main>
}}
>
{post.content}
</Markdown>
</main>
</>
</Grid>
</Content>
</div>
......
import { StringValue } from "gsap"
type Metadata = {
categories: string[]
year: string
}
type People = {
label: string
value: string
}
type ProjectType = {
slug: string
title: string
description: string
metadata: Metadata
images: string[]
content: string
featured_image: string
featured_background: string
featured_color: string
featured: boolean
slug?: string
title?: string
description?: string
metadata?: Metadata
images?: string[]
content?: string
featured_image?: string
featured_background?: string
featured_color?: string
featured?: boolean
external_link?: string
people?: People[]
}
export default ProjectType
module.exports = {
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment