mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-11-14 17:15:15 +01:00
stuff
This commit is contained in:
parent
e5f05857c2
commit
2be0026f5d
@ -5,16 +5,11 @@ cache:
|
|||||||
- node_modules/
|
- node_modules/
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get -qq update
|
|
||||||
- sudo apt-get install python python-pip
|
|
||||||
- pip install --user awscli
|
|
||||||
- export PATH=$PATH:$HOME/.local/bin
|
|
||||||
- npm i -g gatsby-cli
|
- npm i -g gatsby-cli
|
||||||
- export PATH="$PATH:/usr/local/bin/gatsby"
|
- export PATH="$PATH:/usr/local/bin/gatsby"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- testing
|
- testing
|
||||||
- deployment
|
|
||||||
|
|
||||||
testing:
|
testing:
|
||||||
stage: test
|
stage: test
|
||||||
@ -26,8 +21,8 @@ testing:
|
|||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
||||||
deployment:
|
# deployment:
|
||||||
stage: deploy
|
# stage: deploy
|
||||||
script: aws s3 sync ./public s3://beta.matthiaskretschmann.com --delete --acl public-read
|
# script: aws s3 sync ./public s3://beta.matthiaskretschmann.com --delete --acl public-read
|
||||||
only:
|
# only:
|
||||||
- master
|
# - master
|
||||||
|
@ -12,6 +12,8 @@ module.exports = {
|
|||||||
'gatsby-transformer-json',
|
'gatsby-transformer-json',
|
||||||
'gatsby-transformer-sharp',
|
'gatsby-transformer-sharp',
|
||||||
'gatsby-plugin-sharp',
|
'gatsby-plugin-sharp',
|
||||||
|
'gatsby-plugin-offline',
|
||||||
|
'gatsby-plugin-sitemap',
|
||||||
{
|
{
|
||||||
resolve: 'gatsby-plugin-sass',
|
resolve: 'gatsby-plugin-sass',
|
||||||
options: {
|
options: {
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
"gatsby-image": "^1.0.47",
|
"gatsby-image": "^1.0.47",
|
||||||
"gatsby-link": "^1.6.41",
|
"gatsby-link": "^1.6.41",
|
||||||
"gatsby-plugin-google-analytics": "^1.0.31",
|
"gatsby-plugin-google-analytics": "^1.0.31",
|
||||||
|
"gatsby-plugin-offline": "^1.0.15",
|
||||||
"gatsby-plugin-react-helmet": "^2.0.11",
|
"gatsby-plugin-react-helmet": "^2.0.11",
|
||||||
"gatsby-plugin-react-next": "^1.0.11",
|
"gatsby-plugin-react-next": "^1.0.11",
|
||||||
"gatsby-plugin-sass": "^1.0.26",
|
"gatsby-plugin-sass": "^1.0.26",
|
||||||
|
@ -3,23 +3,29 @@ import PropTypes from 'prop-types'
|
|||||||
import Helmet from 'react-helmet'
|
import Helmet from 'react-helmet'
|
||||||
import WebFont from 'webfontloader'
|
import WebFont from 'webfontloader'
|
||||||
|
|
||||||
const Head = ({ meta }) => {
|
class Head extends React.Component {
|
||||||
const { title, tagline, description, url, typekit } = meta
|
componentDidMount() {
|
||||||
|
WebFont.load({ typekit: { id: this.props.meta.typekit } })
|
||||||
|
}
|
||||||
|
|
||||||
WebFont.load({ typekit: { id: typekit } })
|
render() {
|
||||||
|
const { title, tagline, description, url } = this.props.meta
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Helmet
|
<Helmet
|
||||||
defaultTitle={`${title.toLowerCase()} { ${tagline.toLowerCase()} }`}
|
defaultTitle={`${title.toLowerCase()} { ${tagline.toLowerCase()} }`}
|
||||||
titleTemplate={`%s // ${title.toLowerCase()} { ${tagline.toLowerCase()} }`}
|
titleTemplate={`%s // ${title.toLowerCase()} { ${tagline.toLowerCase()} }`}
|
||||||
>
|
>
|
||||||
|
|
||||||
<meta name="description" content={description} />
|
<meta name="description" content={description} />
|
||||||
|
|
||||||
{window.location.protocol + '//' + window.location.hostname !==
|
{window.location.protocol + '//' + window.location.hostname !== `${url}` &&
|
||||||
`${url}` && <meta content="noindex,nofollow" name="robots" />}
|
<meta content="noindex,nofollow" name="robots" />
|
||||||
|
}
|
||||||
</Helmet>
|
</Helmet>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Head.propTypes = {
|
Head.propTypes = {
|
||||||
meta: PropTypes.object,
|
meta: PropTypes.object,
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
.project__links {
|
.project__links {
|
||||||
ul {
|
ul {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-left: -($spacer / 2);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
margin-left: -($spacer / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
|
||||||
margin-left: -($spacer / 2);
|
margin-left: -($spacer / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,7 +16,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background: rgba(#fff, .15);
|
background: rgba(#fff, .15);
|
||||||
color: $brand-grey-light;
|
color: $brand-grey-light;
|
||||||
flex: 1 1 calc((100% / 3) - #{$spacer});
|
flex: 0 0 calc(33% - #{$spacer / 2});
|
||||||
margin-left: $spacer / 2;
|
margin-left: $spacer / 2;
|
||||||
margin-bottom: $spacer / 2;
|
margin-bottom: $spacer / 2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user