mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
config tweaks
This commit is contained in:
parent
6dc0237256
commit
44642c3194
@ -9,10 +9,15 @@ module.exports = {
|
|||||||
'gatsby-plugin-react-helmet',
|
'gatsby-plugin-react-helmet',
|
||||||
'gatsby-plugin-sitemap',
|
'gatsby-plugin-sitemap',
|
||||||
'gatsby-transformer-json',
|
'gatsby-transformer-json',
|
||||||
|
'gatsby-transformer-sharp',
|
||||||
|
'gatsby-plugin-sharp',
|
||||||
{
|
{
|
||||||
resolve: 'gatsby-plugin-sass',
|
resolve: 'gatsby-plugin-sass',
|
||||||
options: {
|
options: {
|
||||||
includePaths: [`${__dirname}/node_modules`, `${__dirname}/src/styles`],
|
includePaths: [
|
||||||
|
`${__dirname}/node_modules`,
|
||||||
|
`${__dirname}/src/styles`
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -22,6 +27,13 @@ module.exports = {
|
|||||||
path: `${__dirname}/data/`,
|
path: `${__dirname}/data/`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
resolve: 'gatsby-source-filesystem',
|
||||||
|
options: {
|
||||||
|
name: 'images',
|
||||||
|
path: `${__dirname}/src/images`,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
resolve: 'gatsby-plugin-google-analytics',
|
resolve: 'gatsby-plugin-google-analytics',
|
||||||
options: {
|
options: {
|
||||||
|
@ -3,15 +3,18 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gatsby": "^1.9.251",
|
"gatsby": "^1.9.252",
|
||||||
|
"gatsby-image": "^1.0.46",
|
||||||
"gatsby-link": "^1.6.39",
|
"gatsby-link": "^1.6.39",
|
||||||
"gatsby-plugin-google-analytics": "^1.0.30",
|
"gatsby-plugin-google-analytics": "^1.0.30",
|
||||||
"gatsby-plugin-react-helmet": "^2.0.8",
|
"gatsby-plugin-react-helmet": "^2.0.8",
|
||||||
"gatsby-plugin-react-next": "^1.0.11",
|
"gatsby-plugin-react-next": "^1.0.11",
|
||||||
"gatsby-plugin-sass": "^1.0.25",
|
"gatsby-plugin-sass": "^1.0.25",
|
||||||
|
"gatsby-plugin-sharp": "^1.6.42",
|
||||||
"gatsby-plugin-sitemap": "^1.2.21",
|
"gatsby-plugin-sitemap": "^1.2.21",
|
||||||
"gatsby-source-filesystem": "^1.5.32",
|
"gatsby-source-filesystem": "^1.5.33",
|
||||||
"gatsby-transformer-json": "^1.0.16",
|
"gatsby-transformer-json": "^1.0.16",
|
||||||
|
"gatsby-transformer-sharp": "^1.6.22",
|
||||||
"react-helmet": "^5.2.0",
|
"react-helmet": "^5.2.0",
|
||||||
"react-markdown": "^3.3.0",
|
"react-markdown": "^3.3.0",
|
||||||
"react-transition-group": "^2.3.1"
|
"react-transition-group": "^2.3.1"
|
||||||
@ -23,7 +26,7 @@
|
|||||||
"eslint-plugin-graphql": "^1.5.0",
|
"eslint-plugin-graphql": "^1.5.0",
|
||||||
"eslint-plugin-prettier": "^2.6.0",
|
"eslint-plugin-prettier": "^2.6.0",
|
||||||
"eslint-plugin-react": "^7.7.0",
|
"eslint-plugin-react": "^7.7.0",
|
||||||
"prettier": "^1.12.0",
|
"prettier": "^1.12.1",
|
||||||
"stylelint": "^9.2.0",
|
"stylelint": "^9.2.0",
|
||||||
"stylelint-config-standard": "^18.2.0"
|
"stylelint-config-standard": "^18.2.0"
|
||||||
},
|
},
|
||||||
|
@ -23,7 +23,8 @@ const Project = ({ pathContext }) => {
|
|||||||
previous,
|
previous,
|
||||||
} = project
|
} = project
|
||||||
|
|
||||||
return <Fragment>
|
return (
|
||||||
|
<Fragment>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta name="description" content={description} />
|
<meta name="description" content={description} />
|
||||||
@ -39,7 +40,8 @@ const Project = ({ pathContext }) => {
|
|||||||
<img className="project__image" src={images[img]} alt={title} />
|
<img className="project__image" src={images[img]} alt={title} />
|
||||||
</FullWidth>
|
</FullWidth>
|
||||||
|
|
||||||
{!!img_more && <FullWidth>
|
{!!img_more &&
|
||||||
|
<FullWidth>
|
||||||
{img_more.map(key => (
|
{img_more.map(key => (
|
||||||
<img
|
<img
|
||||||
key={key}
|
key={key}
|
||||||
@ -48,7 +50,8 @@ const Project = ({ pathContext }) => {
|
|||||||
alt={title}
|
alt={title}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</FullWidth>}
|
</FullWidth>
|
||||||
|
}
|
||||||
|
|
||||||
<footer className="project__meta">
|
<footer className="project__meta">
|
||||||
{!!techstack && <ProjectTechstack techstack={techstack} />}
|
{!!techstack && <ProjectTechstack techstack={techstack} />}
|
||||||
@ -60,6 +63,7 @@ const Project = ({ pathContext }) => {
|
|||||||
<ProjectNav previous={previous} next={next} />
|
<ProjectNav previous={previous} next={next} />
|
||||||
</main>
|
</main>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Project.propTypes = {
|
Project.propTypes = {
|
||||||
|
Loading…
Reference in New Issue
Block a user