1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-14 09:05:17 +01:00

Merge pull request #109 from kremalicious/updates

Updates
This commit is contained in:
Matthias Kretschmann 2018-12-02 00:09:12 +01:00 committed by GitHub
commit 905c9c661d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 27 deletions

View File

@ -35,7 +35,7 @@ module.exports = {
maxWidth: 630,
quality: 80,
withWebp: true,
linkImagesToOriginal: false,
linkImagesToOriginal: true,
sizeByPixelDensity: true,
showCaptions: true,
backgroundColor: '#e7eef4'

View File

@ -33,31 +33,31 @@
"dms2dec": "^1.1.0",
"fast-exif": "^1.0.1",
"fraction.js": "^4.0.11",
"gatsby": "^2.0.54",
"gatsby-image": "^2.0.20",
"gatsby-plugin-catch-links": "^2.0.8",
"gatsby": "^2.0.60",
"gatsby-image": "^2.0.22",
"gatsby-plugin-catch-links": "^2.0.9",
"gatsby-plugin-favicon": "^3.1.4",
"gatsby-plugin-feed": "^2.0.9",
"gatsby-plugin-feed": "^2.0.11",
"gatsby-plugin-lunr": "^1.2.0",
"gatsby-plugin-matomo": "^0.5.0",
"gatsby-plugin-matomo": "^0.5.1",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-offline": "^2.0.16",
"gatsby-plugin-react-helmet": "^3.0.2",
"gatsby-plugin-sass": "^2.0.4",
"gatsby-plugin-sharp": "^2.0.13",
"gatsby-plugin-sitemap": "^2.0.2",
"gatsby-plugin-offline": "^2.0.18",
"gatsby-plugin-react-helmet": "^3.0.4",
"gatsby-plugin-sass": "^2.0.5",
"gatsby-plugin-sharp": "^2.0.14",
"gatsby-plugin-sitemap": "^2.0.3",
"gatsby-plugin-svgr": "^2.0.1",
"gatsby-plugin-webpack-size": "^0.0.3",
"gatsby-redirect-from": "^0.1.1",
"gatsby-remark-autolink-headers": "^2.0.11",
"gatsby-remark-copy-linked-files": "^2.0.6",
"gatsby-remark-autolink-headers": "^2.0.12",
"gatsby-remark-copy-linked-files": "^2.0.7",
"gatsby-remark-highlights": "^1.3.4",
"gatsby-remark-images": "^3.0.0",
"gatsby-remark-smartypants": "^2.0.6",
"gatsby-source-filesystem": "^2.0.8",
"gatsby-source-graphql": "^2.0.6",
"gatsby-transformer-remark": "^2.1.12",
"gatsby-transformer-sharp": "^2.1.8",
"gatsby-remark-images": "^3.0.1",
"gatsby-remark-smartypants": "^2.0.7",
"gatsby-source-filesystem": "^2.0.10",
"gatsby-source-graphql": "^2.0.7",
"gatsby-transformer-remark": "^2.1.15",
"gatsby-transformer-sharp": "^2.1.9",
"graphql": "^0.13.2",
"intersection-observer": "^0.5.1",
"load-script": "^1.0.0",
@ -67,7 +67,7 @@
"pigeon-marker": "^0.3.4",
"react": "^16.6.3",
"react-blockies": "^1.4.0",
"react-clipboard.js": "^2.0.1",
"react-clipboard.js": "^2.0.2",
"react-dom": "^16.6.3",
"react-helmet": "^5.2.0",
"react-modal": "^3.6.1",
@ -83,7 +83,7 @@
"devDependencies": {
"@babel/node": "^7.0.0",
"@babel/preset-env": "^7.1.6",
"@svgr/webpack": "^4.0.3",
"@svgr/webpack": "^4.1.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.9.0",
"eslint-config-prettier": "^3.3.0",
@ -94,11 +94,11 @@
"eslint-plugin-react": "^7.11.1",
"fs-extra": "^7.0.1",
"markdownlint-cli": "^0.13.0",
"npm-run-all": "^4.1.3",
"npm-run-all": "^4.1.5",
"ora": "^3.0.0",
"prettier": "^1.15.2",
"prettier": "^1.15.3",
"prettier-stylelint": "^0.4.2",
"stylelint": "^9.8.0",
"stylelint": "^9.9.0",
"stylelint-config-css-modules": "^1.3.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-scss": "^3.4.0",

View File

@ -12,9 +12,28 @@ SITEMAP_URL="https%3A%2F%2Fkremalicious.com%2Fsitemap.xml"
set -e;
function s3sync {
aws s3 sync ./public s3://"$1" --exclude "*.html" --exclude "*.xml" --exclude "*.json" --cache-control max-age=31536000,public,immutable --delete --acl public-read --quiet
aws s3 sync ./public s3://"$1" \
--exclude "*" \
--include "*.js" \
--include "*.css" \
--include "static/*" \
--include "icons/*" \
--exclude "sw.js" \
--exclude "workbox*/*" \
--cache-control public,max-age=31536000,immutable \
--delete \
--acl public-read \
--quiet
aws s3 sync ./public s3://"$1" --exclude "*" --include "*.html" --include "*.xml" --include "*.json" --cache-control max-age=0,no-cache,no-store,must-revalidate --delete --acl public-read --quiet
aws s3 sync ./public s3://"$1" \
--exclude "*" \
--include "*.html" \
--include "*.xml" \
--include "sw.js" \
--cache-control public,max-age=0,must-revalidate \
--delete \
--acl public-read \
--quiet
}
##

View File

@ -28,7 +28,7 @@ const Posts = ({ data, location, pageContext }) => {
)}
{image && (
<Link to={slug}>
<Link to={slug} title={title}>
<PostImage
title={type === 'photo' ? title : null}
fluid={image.childImageSharp.fluid}