Newer
Older
import { Content,Link ,News } from "@onegeo/gatsby-theme-onegeo"
return (
<Content>
<div className="prose">
<Link to="/doc">Retour</Link>
<h1>News</h1>
<h2>Props</h2>
<div className="mockup-code">
<pre>
<code>
{`
}
GraphQL query
query {
directus {
news(
limit: 3
filter: { status: { _eq: "published" } }
sort: "-date_published"
) {
id
content
title
date_published
image {
id
imageFile {
childImageSharp {
gatsbyImageData
}
}
}
}
}
}
<h2>Example</h2>
</div>
<News
title="Actualités"
action={{
name: "Plus d'actualités",
url: "#",