Skip to content

Commit c5592f8

Browse files
committed
feat: tweaking netlify cms config and file structure
1 parent 2bde2da commit c5592f8

32 files changed

+75
-67
lines changed

_headers

Lines changed: 0 additions & 2 deletions
This file was deleted.

components/Header.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
>
1212
<div>
1313
<nuxt-link to="/" class="flex">
14-
<img class="h-5" src="/img/logo.svg" alt="Workflow" />
14+
<img class="h-5" src="/assets/images/logo.svg" alt="Workflow" />
1515
</nuxt-link>
1616
</div>
1717
<div class="-my-2 -mr-2 md:hidden">
@@ -90,7 +90,11 @@
9090
<div class="px-5 pt-5 pb-6 space-y-6">
9191
<div class="flex items-center justify-between">
9292
<nuxt-link to="/" @click.native="toggleMenu">
93-
<img class="h-5" src="/img/logo.svg" alt="Workflow" />
93+
<img
94+
class="h-5"
95+
src="/assets/images/logo.svg"
96+
alt="Workflow"
97+
/>
9498
</nuxt-link>
9599
<div class="-mr-2">
96100
<button

content/blog/2016-12-17-making-sense-of-the-scaas-new-flavor-wheel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: Making sense of the SCAA’s new Flavor Wheel
33
date: 2016-12-17T15:04:10.000Z
44
featuredpost: false
5-
featuredimage: /img/flavor_wheel.jpg
5+
featuredimage: /assets/images/flavor_wheel.jpg
66
description: The Coffee Taster’s Flavor Wheel, the official resource used by coffee tasters, has been revised for the first time this year.
77
tags:
88
- flavor
99
- tasting
1010
---
11-
![flavor wheel](/img/flavor_wheel.jpg)
11+
![flavor wheel](/assets/images/flavor_wheel.jpg)
1212

1313
The SCAA updated the wheel to reflect the finer nuances needed to describe flavors more precisely. The new descriptions are more detailed and hence allow cuppers to distinguish between more flavors.
1414

content/blog/2017-01-04-a-beginners-guide-to-brewing-with-chemex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: A beginners’ guide to brewing with Chemex
33
date: 2017-01-04T15:04:10.000Z
44
featuredpost: false
5-
featuredimage: /img/chemex.jpg
5+
featuredimage: /assets/images/chemex.jpg
66
description: Brewing with a Chemex probably seems like a complicated, time-consuming ordeal, but once you get used to the process, it becomes a soothing ritual that's worth the effort every time.
77
tags:
88
- brewing
99
- chemex
1010
---
11-
![chemex](/img/chemex.jpg)
11+
![chemex](/assets/images/chemex.jpg)
1212

1313
This week we’ll **take** a look at all the steps required to make astonishing coffee with a Chemex at home. The Chemex Coffeemaker is a manual, pour-over style glass-container coffeemaker that Peter Schlumbohm invented in 1941, and which continues to be manufactured by the Chemex Corporation in Chicopee, Massachusetts.
1414

content/blog/2017-01-04-just-in-small-batch-of-jamaican-blue-mountain-in-store-next-week.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 'Just in: small batch of Jamaican Blue Mountain in store next week'
33
date: 2017-01-04T15:04:10.000Z
44
featuredpost: true
5-
featuredimage: /img/blog-index.jpg
5+
featuredimage: /assets/images/assets/images/blog-index.jpg
66
description: >-
77
We’re proud to announce that we’ll be offering a small batch of Jamaica Blue
88
Mountain coffee beans in our store next week.

content/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Great coffee with a conscience
3-
image: /img/home-jumbotron.jpg
3+
image: /assets/images/home-jumbotron.jpg
44
heading: Great coffee with a conscience
55
subheading: Support sustainable farming while enjoying a cup
66
mainpitch:
@@ -17,27 +17,27 @@ description: >-
1717
anyone.
1818
intro:
1919
blurbs:
20-
- image: /img/coffee.png
20+
- image: /assets/images/coffee.png
2121
text: >
2222
We sell green and roasted coffee beans that are sourced directly from
2323
independent farmers and farm cooperatives. We’re proud to offer a
2424
variety of coffee beans grown with great care for the environment and
2525
local communities. Check our post or contact us directly for current
2626
availability.
27-
- image: /img/coffee-gear.png
27+
- image: /assets/images/coffee-gear.png
2828
text: >
2929
We offer a small, but carefully curated selection of brewing gear and
3030
tools for every taste and experience level. No matter if you roast your
3131
own beans or just bought your first french press, you’ll find a gadget
3232
to fall in love with in our shop.
33-
- image: /img/tutorials.png
33+
- image: /assets/images/tutorials.png
3434
text: >
3535
Love a great cup of coffee, but never knew how to make one? Bought a
3636
fancy new Chemex but have no clue how to use it? Don't worry, we’re here
3737
to help. You can schedule a custom 1-on-1 consultation with our baristas
3838
to learn anything you want to know about coffee roasting and brewing.
3939
Email us or call the store for details.
40-
- image: /img/meeting-space.png
40+
- image: /assets/images/meeting-space.png
4141
text: >
4242
We believe that good coffee has the power to bring people together.
4343
That’s why we decided to turn a corner of our shop into a cozy meeting
@@ -59,11 +59,11 @@ main:
5959
optimal for the plants, farmers and the local environment.
6060
image1:
6161
alt: A close-up of a paper filter filled with ground coffee
62-
image: /img/products-grid3.jpg
62+
image: /assets/images/products-grid3.jpg
6363
image2:
6464
alt: A green cup of a coffee on a wooden table
65-
image: /img/products-grid2.jpg
65+
image: /assets/images/products-grid2.jpg
6666
image3:
6767
alt: Coffee beans
68-
image: /img/products-grid1.jpg
68+
image: /assets/images/products-grid1.jpg
6969
---

content/products.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Our Coffee
3-
image: /img/jumbotron.jpg
3+
image: /assets/images/jumbotron.jpg
44
heading: Great coffee with a conscience
55
description: >-
66
Kaldi is the ultimate spot for coffee lovers who want to learn about their
@@ -9,27 +9,27 @@ description: >-
99
anyone.
1010
intro:
1111
blurbs:
12-
- image: /img/coffee.png
12+
- image: /assets/images/coffee.png
1313
text: >
1414
We sell green and roasted coffee beans that are sourced directly from
1515
independent farmers and farm cooperatives. We’re proud to offer a
1616
variety of coffee beans grown with great care for the environment and
1717
local communities. Check our post or contact us directly for current
1818
availability.
19-
- image: /img/coffee-gear.png
19+
- image: /assets/images/coffee-gear.png
2020
text: >
2121
We offer a small, but carefully curated selection of brewing gear and
2222
tools for every taste and experience level. No matter if you roast your
2323
own beans or just bought your first french press, you’ll find a gadget
2424
to fall in love with in our shop.
25-
- image: /img/tutorials.png
25+
- image: /assets/images/tutorials.png
2626
text: >
2727
Love a great cup of coffee, but never knew how to make one? Bought a
2828
fancy new Chemex but have no clue how to use it? Don't worry, we’re here
2929
to help. You can schedule a custom 1-on-1 consultation with our baristas
3030
to learn anything you want to know about coffee roasting and brewing.
3131
Email us or call the store for details.
32-
- image: /img/meeting-space.png
32+
- image: /assets/images/meeting-space.png
3333
text: >
3434
We believe that good coffee has the power to bring people together.
3535
That’s why we decided to turn a corner of our shop into a cozy meeting
@@ -51,13 +51,13 @@ main:
5151
optimal for the plants, farmers and the local environment.
5252
image1:
5353
alt: A close-up of a paper filter filled with ground coffee
54-
image: /img/products-grid3.jpg
54+
image: /assets/images/products-grid3.jpg
5555
image2:
5656
alt: A green cup of a coffee on a wooden table
57-
image: /img/products-grid2.jpg
57+
image: /assets/images/products-grid2.jpg
5858
image3:
5959
alt: Coffee beans
60-
image: /img/products-grid1.jpg
60+
image: /assets/images/products-grid1.jpg
6161
testimonials:
6262
- author: Elisabeth Kaurismäki
6363
quote: >-
@@ -67,7 +67,7 @@ testimonials:
6767
quote: >-
6868
Kaldi is the place to go if you want the best quality coffee. I love their
6969
stance on empowering farmers and transparency.
70-
full_image: /img/products-full-width.jpg
70+
full_image: /assets/images/products-full-width.jpg
7171
pricing:
7272
heading: Monthly subscriptions
7373
description: >-

jsconfig.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

layouts/default.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@
77
</template>
88

99
<script>
10-
export default {}
10+
export default {
11+
head() {
12+
return {
13+
script: [
14+
{
15+
src: 'https://identity.netlify.com/v1/netlify-identity-widget.js',
16+
defer: true,
17+
},
18+
],
19+
}
20+
},
21+
}
1122
</script>
1223

1324
<style scoped></style>

netlify.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
command = "npm run generate"
44
functions = "lambda"
55

6+
[[redirects]]
7+
from = "/admin"
8+
to = "/admin/"
9+
status = 301
10+
force = true
11+
612
[[redirects]]
713
from = "/api/*"
814
to = "/.netlify/functions/:splat"

0 commit comments

Comments
 (0)