Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map((post, idx) => )
}
<section style="{styles.section}">
<h1>/home</h1>
<p>{inHome.length} entries found.</p>
{
inHome
.map((post, idx) => )
}
</section>
)
}
export default withPosts(Index)
const styles = {
main: {
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
fontWeight: 100,
display: 'flex',
flexDirection: 'column'
},
section: {
display: 'flex',
flexDirection: 'column',
alignSelf: 'center',
width: '60vw'
},
navigation: {
position: 'absolute',
const inTag = posts.filter(containsTag(tag))
return (
<div>
<h1>{tag}</h1>
{ inTag.map((post, idx) => ())}
</div>
)
})
}
)
}
export default withPosts(Index)
const styles = {
main: {
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
fontWeight: 100,
display: 'flex',
flexDirection: 'column'
},
section: {
display: 'flex',
flexDirection: 'column',
alignSelf: 'center',
width: '60vw'
},
navigation: {
position: 'absolute',
return (
<main style="{styles.main}">
<section style="{styles.section}">
{
posts
.map((post, idx) => )
}
</section>
</main>
)
}
export default withPosts(Index)
const styles = {
main: {
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
fontWeight: 100,
display: 'flex',
flexDirection: 'column'
},
section: {
display: 'flex',
flexDirection: 'column',
alignSelf: 'center',
width: '60vw'
},
navigation: {
position: 'absolute',
{author && `Written by ${author.name}`}
{author && source && ` ${String.fromCharCode(183)} `}
{source && `From ${source.name}`}
<p></p>
<content>
)
})}
)
}
}
export default withPosts(Index)
</content>