Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit f3faab1

Browse files
refactor: endre namn på values-sida til about-sida
1 parent e55283e commit f3faab1

File tree

7 files changed

+16
-18
lines changed

7 files changed

+16
-18
lines changed

cypress/e2e/basic.cy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ describe("empty spec", () => {
1313
cy.get("h1").contains(/Our Coffee/i);
1414
});
1515

16-
it("navigates to the values page", () => {
17-
cy.get('a[href="/values"]').eq(0).click();
18-
cy.url().should("include", "/values");
19-
cy.get("h1").contains(/Values/i);
16+
it("navigates to the about page", () => {
17+
cy.get('a[href="/about"]').eq(0).click();
18+
cy.url().should("include", "/about");
19+
cy.get("h1").contains(/About/i);
2020
});
2121

2222
it("navigates to the blog page", () => {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "Values"
2+
title: "About"
33
image: /img/about-jumbotron.jpg
4-
values:
4+
about:
55
- heading: "Shade-grown coffee"
66
text: >
77
Coffee is a small tree or shrub that grows in the forest

site/layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{{ partial "2-up" .Params }}
88

9-
{{ partial "text-and-image" (dict "heading" .Params.values.heading "text" .Params.values.text "buttonText" "Read more" "buttonLink" "/values") }}
9+
{{ partial "text-and-image" (dict "heading" .Params.about.heading "text" .Params.about.text "buttonText" "Read more" "buttonLink" "/about") }}
1010

1111
{{ partial "blog" . }}
1212

site/layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<h3 class="f4 b lh-title mb1 primary">NLL</h3>
1515
<ul class="mb3">
1616
<li><a href="/" class="link">Home</a></li>
17-
<li><a href="/values" class="link">About</a></li>
17+
<li><a href="/about" class="link">About</a></li>
1818
<li><a href="/post" class="link">Blog</a></li>
1919
<li><a href="/contact" class="link">Contact</a></li>
2020
</ul>

site/layouts/partials/nav.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
</div>
1616

1717
<ul class="flex b grey-3 nav-menu">
18-
<li><a href="/products" class="pa3 no-underline db">Products</a></li>
19-
20-
<li><a href="/values" class="pa3 no-underline db">Values</a></li>
18+
<li><a href="/about" class="pa3 no-underline db">About</a></li>
2119

2220
<li><a href="/post" class="pa3 no-underline db">Blog</a></li>
2321

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<div class="mw7 center ph3 pt4">
66

7-
{{ range $index, $element := .Params.values }}
7+
{{ range $index, $element := .Params.about }}
88
{{ if modBool $index 2 }}
99
{{ partial "media-block" $element }}
1010
{{ else }}

site/static/admin/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ collections: # A list of collections the CMS should be able to edit
3838
- {label: "Products", name: products, widget: list, fields: [
3939
{label: "Image", name: "image", widget: "image"},
4040
{label: "Text", name: "text", widget: "text"}]}
41-
- {label: "Values", name: "values", widget: "object", fields: [
41+
- {label: "About", name: "about", widget: "object", fields: [
4242
{label: "Heading", name: "heading", widget: string},
4343
{label: "Text", name: "text", widget: "text"}]}
4444
- file: "site/content/contact/_index.md"
@@ -69,14 +69,14 @@ collections: # A list of collections the CMS should be able to edit
6969
- {label: Testimonials, name: testimonials, widget: list, fields: [{label: Quote, name: quote, widget: string}, {label: Author, name: author, widget: string}]}
7070
- {label: Full_image, name: full_image, widget: image}
7171
- {label: Pricing, name: pricing, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: string}, {label: Plans, name: plans, widget: list, fields: [{label: Plan, name: plan, widget: string}, {label: Price, name: price, widget: string}, {label: Description, name: description, widget: string}, {label: Items, name: items, widget: list}]}]}
72-
- file: "site/content/values/_index.md"
73-
label: "Values Page"
74-
name: "values"
72+
- file: "site/content/about/_index.md"
73+
label: "About Page"
74+
name: "about"
7575
fields:
7676
- {label: Title, name: title, widget: string}
7777
- {label: Image, name: image, widget: image}
78-
- label: Values
79-
name: values
78+
- label: About
79+
name: about
8080
widget: list
8181
fields:
8282
- {label: Heading, name: heading, widget: string}

0 commit comments

Comments
 (0)