gridsome-source-greenhouse
v2.0.1
Published
Greenhouse source for Gridsome
Downloads
4
Maintainers
Readme
gridsome-source-greenhouse
Greenhouse Source for Gridsome
Retrieves all of your Greenhouse jobs and details so you can present them in your Gridsome site.
Install
npm install gridsome-source-greenhouse
Usage
Add the plugin to gridsome.config.js
export default {
plugins: [
{
use: 'gridsome-source-greenhouse',
options: {
boardToken: 'companyname', // Greenhouse board token
}
}
]
}
Content Type Names
GreenhouseJobs
- Content from the list jobs APIGreenhouseJobDetails
- Content from the retrieve job API
Example query
<static-query>
query GreenhouseJobDetails {
jobDetails: allGreenhouseJobDetails {
edges {
node {
title
content
}
}
}
}
</static query>
Example usage
<div class="jobs" v-for="edge in $static.jobDetails.edges" :key="edge.node.id">
<h2>
{{ edge.node.title }}
</h2>
<div class="content">
{{ edge.node.content }}
</div>
</div>