Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix console warning #124

Merged
merged 1 commit into from Sep 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/getPostBySlug.test.ts
Expand Up @@ -10,7 +10,7 @@ test('should return parsed post data for a given slug', () => {
draft: false,
date: new Date('2019-04-26T00:00:00.000Z'),
image: {
url: 'images/blue-paint-swirls.jpg',
url: 'blue-paint-swirls.jpg',
alt: 'Abstract swirling colors of blue and red',
},
tags: ['testing', 'jest', 'javascript'],
Expand Down
4 changes: 2 additions & 2 deletions pages/blog/[slug].tsx
Expand Up @@ -221,8 +221,8 @@ export const getStaticProps: GetPostPageStaticProps = async ctx => {
// If there's an image, fetch the image, resize it to the max width shown, and
// create a low quality placeholder image.
if (frontmatter.image?.url) {
const resized = require(`../../${frontmatter.image.url}?resize&size=640`)
const image = require(`../../${frontmatter.image.url}?lqip`)
const resized = require(`../../images/${frontmatter.image.url}?resize&size=640`)
const image = require(`../../images/${frontmatter.image.url}?lqip`)

imageProps.image = {
src: resized.src,
Expand Down
2 changes: 1 addition & 1 deletion writing/5-myths-about-the-post-bootcamp-job-search.md
Expand Up @@ -3,7 +3,7 @@ title: 5 Myths About The Post-Bootcamp Job Search
description: Here’s 5 common misconceptions that could be holding you back from your first development job.
date: 2017-08-14
image:
url: 'images/blog-img-man-at-desk.jpg'
url: 'blog-img-man-at-desk.jpg'
alt: Man working at desk, taking notes
---

Expand Down
Expand Up @@ -3,7 +3,7 @@ title: Clean Console
description: Using Chrome DevTools to Inspect JSON Responses from API Requests
date: 2018-02-01
image:
url: 'images/tools.jpg'
url: 'tools.jpg'
alt: Tools at a workdesk
---

Expand Down
2 changes: 1 addition & 1 deletion writing/empathetic-code.md
Expand Up @@ -3,7 +3,7 @@ title: Coding with empathy
description: It's important to write code with emotional awareness. When we forget that code is also for humans to read, we end up with scary codebases that make the future maintainers of our code sad.
date: 2019-02-07
image:
url: 'images/battle-board-game-pieces.jpg'
url: 'battle-board-game-pieces.jpg'
alt: A team of four game pieces stand in a row
---

Expand Down
Expand Up @@ -3,7 +3,7 @@ title: Friends Don't Let Friends Write React Boilerplate
description: If the core of your app could be done on top of a "boilerplate framework", save yourself some time & effort—focus on delivering an awesome user experience.
date: 2018-02-13
image:
url: 'images/pies.jpg'
url: 'pies.jpg'
alt: Three pies on a table
---

Expand Down
2 changes: 1 addition & 1 deletion writing/giving-up-control-to-your-tools.md
Expand Up @@ -4,7 +4,7 @@ description: There's nothing wrong about caring about code formatting! Using a f
draft: false
date: 2019-03-01
image:
url: 'images/plane-controls.jpg'
url: 'plane-controls.jpg'
alt: Flight commander tweaks airplane controls
by: https://unsplash.com/@byronsterk
source: https://unsplash.com
Expand Down
2 changes: 1 addition & 1 deletion writing/intro-to-testing.md
Expand Up @@ -4,7 +4,7 @@ description: TBD
draft: true
date: 2019-04-27
# image:
# url: 'images/battle-board-game-pieces.jpg'
# url: 'battle-board-game-pieces.jpg'
# alt: A team of four game pieces stand in a row
---

Expand Down
2 changes: 1 addition & 1 deletion writing/mocking-fetch.md
Expand Up @@ -4,7 +4,7 @@ description: Why should we mock the network? We'll take a look at why it's impor
draft: false
date: 2019-04-26
image:
url: 'images/blue-paint-swirls.jpg'
url: 'blue-paint-swirls.jpg'
alt: 'Abstract swirling colors of blue and red'
tags:
- testing
Expand Down
2 changes: 1 addition & 1 deletion writing/service-worker-cheatsheet.md
Expand Up @@ -4,7 +4,7 @@ description: TBD
draft: true
date: 2019-11-30
# image:
# url: 'images/battle-board-game-pieces.jpg'
# url: 'battle-board-game-pieces.jpg'
# alt: A team of four game pieces stand in a row
---

Expand Down
2 changes: 1 addition & 1 deletion writing/things-to-keep-an-eye-on-in-2018.md
Expand Up @@ -3,7 +3,7 @@ title: 5 Front-End Technologies I'm Keeping My Eye on in 2018
description: Here's some things I'm placing bets on & diving into in 2018.
date: 2018-01-06
image:
url: 'images/ace-card.jpg'
url: 'ace-card.jpg'
alt: Ace of Spades against a black background
---

Expand Down
2 changes: 1 addition & 1 deletion writing/thoughts-on-elm.md
Expand Up @@ -3,7 +3,7 @@ title: Some Thoughts on Elm
date: 2018-01-27
description: Elm is a functional compile-to-JavaScript language used for building robust, bug-resistant UIs.
image:
url: 'images/elm-logo.png'
url: 'elm-logo.png'
alt: Elm Logo
tags:
- functional-programming
Expand Down
2 changes: 1 addition & 1 deletion writing/typesafe-errors-in-typescript.md
Expand Up @@ -4,7 +4,7 @@ description: You get more out of the type system if you think of the compiler as
date: 2020-04-12
draft: false
image:
url: 'images/pawel-czerwinski-unsplash.jpg'
url: 'pawel-czerwinski-unsplash.jpg'
alt: 'Abstract rock pattern with vibrant colors'
tags:
- typescript
Expand Down
2 changes: 1 addition & 1 deletion writing/typescript-async-function.md
Expand Up @@ -4,7 +4,7 @@ description: Understanding how JavaScript async functions work under the hood he
date: 2020-04-22
draft: false
image:
url: 'images/photo-boards-shapes.jpg'
url: 'photo-boards-shapes.jpg'
alt: 'Abstract wall decor in blue, yellow and brown'
tags:
- typescript
Expand Down
Expand Up @@ -3,7 +3,7 @@ title: Why Keeping a Code Journal Will Help You Become a Better Developer
description: Even if you’re not journaling frequently, reflection is one of the best ways to internalize the things that you learn.
date: 2017-10-24
image:
url: 'images/blog-img-journal.jpg'
url: 'blog-img-journal.jpg'
alt: Journal and pen lying on a table
---

Expand Down