-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement/issue 88 header navigation using content as data (#122)
- Loading branch information
1 parent
b27f919
commit 0f6fdca
Showing
9 changed files
with
2,043 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
import "./header.js"; | ||
import pages from "../../stories/mocks/graph.json"; | ||
|
||
export default { | ||
title: "Components/Header", | ||
parameters: { | ||
fetchMock: { | ||
mocks: [ | ||
{ | ||
matcher: { | ||
url: "http://localhost:1984/___graph.json", | ||
response: { | ||
body: pages.filter((page) => page.data.collection === "nav"), | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}; | ||
|
||
const Template = () => "<app-header></app-header>"; | ||
const Template = () => "<app-header current-route='/guides/'></app-header>"; | ||
|
||
export const Primary = Template.bind({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
collection: nav | ||
order: 3 | ||
--- | ||
|
||
<html> | ||
<head> | ||
<title>Greenwood - ${globalThis.page.title}</title> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
--- | ||
title: Docs | ||
layout: docs | ||
collection: nav | ||
order: 1 | ||
--- | ||
|
||
<app-heading-box heading="Docs"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
--- | ||
title: Guides | ||
layout: guides | ||
collection: nav | ||
order: 2 | ||
--- | ||
|
||
<app-heading-box heading="Guides"> | ||
|
Oops, something went wrong.