1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-01-03 10:25:07 +01:00

set cropFocus on photos page

This commit is contained in:
Matthias Kretschmann 2018-11-06 21:03:45 +01:00
parent b3f1bb7434
commit 86ff85f3df
Signed by: m
GPG Key ID: 606EEEF3C479A91F
21 changed files with 84 additions and 13 deletions

View File

@ -1,8 +0,0 @@
---
type: photo
title: Suddenly... a new Hindu temple appears around the corner
image: ../media/2015-04-17-suddenly-a-new-hindu-temple-appears-around-the-corner.jpg
author: Matthias Kretschmann
---
[Instagram](https://instagram.com/p/08ngIbtSvs/)

View File

@ -1,8 +1,8 @@
---
type: photo
title: Obligatory it's summer in Berlin photo
title: "Obligatory it's summer in Berlin photo"
image: ../media/obligatory-it-s-summer-in-berlin-photo.jpg
author: Matthias Kretschmann
---
[Instagram](https://instagram.com/p/1ikG3qtSkG/)
[Instagram](https://instagram.com/p/1ikG3qtSkG/)

View File

@ -0,0 +1,8 @@
---
type: photo
title: "Suddenly... a new Hindu temple appears around the corner"
image: 2015-04-17-suddenly-a-new-hindu-temple-appears-around-the-corner.jpg
author: Matthias Kretschmann
---
[Instagram](https://instagram.com/p/08ngIbtSvs/)

View File

@ -1,7 +1,7 @@
---
type: photo
title: "The Propylaea"
image: .2017-11-10-acropolis-the-propylaea.jpg
image: 2017-11-10-acropolis-the-propylaea.jpg
author: Matthias Kretschmann
date: 2017-11-10 14:32:19.869188000 +02:00
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -0,0 +1,9 @@
---
type: photo
date: 2018-01-13T00:00:00.000Z
title: Teatro Jaraguá
image: 2018-01-13-teatro-jaragua.jpg
---
[Teatro Jaraguá](http://teatrojaragua.com.br/o-teatro/), São Paulo, Brasil.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

View File

@ -0,0 +1,9 @@
---
type: photo
date: 2018-01-15T00:00:00.000Z
title: A Revolução Não Será Televisionada
image: 2018-01-15-a-revolucao-nao-sera-televisionada.jpg
---
Estação da Luz, São Paulo, Brasil

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

View File

@ -0,0 +1,9 @@
---
type: photo
date: 2018-01-17T00:00:00.000Z
title: Instituto Ricardo Brennand
image: 2018-01-17-instituto-ricardo-brennand.jpg
---
[Instituto Ricardo Brennand](http://www.institutoricardobrennand.org.br), Recife, Brasil.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -0,0 +1,9 @@
---
type: photo
date: 2018-01-26T00:00:00.000Z
title: Auditório Ibirapuera
image: 2018-01-26-auditorio-ibirapuera.jpg
---
[Auditório do Ibirapuera](http://www.auditorioibirapuera.com.br) no Parque Ibirapuera, São Paulo, Brasil. Designed by Oscar Niemeyer in 1951, built from 2002-2005.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

View File

@ -0,0 +1,9 @@
---
type: photo
date: 2018-01-26T00:00:00.000Z
title: Oca do Ibirapuera I
image: 2018-01-26-oca-do-ibirapuera-i.jpg
---
[Pavilhão Lucas Nogueira Garcez](https://parqueibirapuera.org/equipamentos-parque-ibirapuera/oca-do-ibirapuera/), popularmente conhecido como Oca no Parque Ibirapuera, São Paulo, Brasil. Designed by Oscar Niemeyer and built in 1951.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@ -0,0 +1,9 @@
---
type: photo
date: 2018-01-26T00:00:00.000Z
title: Oca do Ibirapuera II
image: 2018-01-26-oca-do-ibirapuera-ii.jpg
---
[Pavilhão Lucas Nogueira Garcez](https://parqueibirapuera.org/equipamentos-parque-ibirapuera/oca-do-ibirapuera/), popularmente conhecido como Oca no Parque Ibirapuera, São Paulo, Brasil. Designed by Oscar Niemeyer and built in 1951.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 MiB

View File

@ -0,0 +1,9 @@
---
type: photo
date: 2018-01-26T00:00:00.000Z
title: Pavilhão das Culturas Brasileiras
image: 2018-01-26-pavilhao-das-culturas-brasileiras.jpg
---
[Pavilhão das Culturas Brasileiras](https://parqueibirapuera.org/equipamentos-parque-ibirapuera/pavilhao-das-culturas-brasileiras/) no Parque Ibirapuera, São Paulo, Brasil. Designed by Oscar Niemeyer and built in 1951.

View File

@ -52,7 +52,12 @@ export const photosQuery = graphql`
type
image {
childImageSharp {
fluid(maxWidth: 400, maxHeight: 400, quality: 85) {
fluid(
maxWidth: 400
maxHeight: 400
quality: 85
cropFocus: CENTER
) {
...GatsbyImageSharpFluid_withWebp
}
}

View File

@ -42,11 +42,14 @@ const Post = ({ data, location }) => {
<article className={styles.hentry}>
<PostTitle type={type} linkurl={linkurl} title={title} />
{type === 'post' && <PostLead post={post} />}
{type === 'photo' && <PostContent post={post} />}
{image && (
<PostImage fluid={image.childImageSharp.fluid} alt={title} />
)}
{image && image.fields && <Exif exif={image.fields.exif} />}
<PostContent post={post} />
{type !== 'photo' && <PostContent post={post} />}
{type === 'link' && <PostLinkActions slug={slug} linkurl={linkurl} />}
<PostActions slug={slug} url={meta.siteUrl} />
<PostMeta post={post} meta={meta} />