-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97114ff
commit 76c1e52
Showing
29 changed files
with
7,081 additions
and
21 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,189 @@ | ||
{ | ||
"timezone": "Etc/UTC", | ||
"_inputs": { | ||
"layout": { | ||
"hidden": "true" | ||
} | ||
}, | ||
"collections_config": { | ||
"authors": { | ||
"path": "authors", | ||
"output": false, | ||
"auto_discovered": false, | ||
"name": "The Authors" | ||
}, | ||
"posts": { | ||
"path": "posts", | ||
"output": true, | ||
"auto_discovered": true | ||
}, | ||
"pages": { | ||
"path": "pages", | ||
"output": true, | ||
"filter": "strict", | ||
"auto_discovered": true | ||
}, | ||
"data": { | ||
"path": "_data", | ||
"output": false, | ||
"auto_discovered": false | ||
} | ||
}, | ||
"base_url": "", | ||
"source": "", | ||
"paths": { | ||
"static": "", | ||
"uploads": "uploads", | ||
"data": "_data", | ||
"collections": "", | ||
"pages": "pages", | ||
"layouts": "_includes" | ||
}, | ||
"cloudcannon": { | ||
"name": "eleventy-plugin-cloudcannon", | ||
"version": "0.0.21" | ||
}, | ||
"collections": { | ||
"authors": [ | ||
{ | ||
"filePathStem": "/authors/jane-doe", | ||
"fileSlug": "jane-doe", | ||
"tags": [ | ||
"authors" | ||
], | ||
"permalink": false, | ||
"name": "Jane Doe", | ||
"description": "Tall", | ||
"path": "authors/jane-doe.md", | ||
"url": "", | ||
"output": false, | ||
"collection": "authors" | ||
}, | ||
{ | ||
"filePathStem": "/authors/john-doe", | ||
"fileSlug": "john-doe", | ||
"tags": [ | ||
"authors" | ||
], | ||
"permalink": false, | ||
"name": "John Doe", | ||
"description": "Very tall", | ||
"path": "authors/john-doe.md", | ||
"url": "", | ||
"output": false, | ||
"collection": "authors" | ||
} | ||
], | ||
"posts": [ | ||
{ | ||
"filePathStem": "/posts/totally-awesome", | ||
"fileSlug": "totally-awesome", | ||
"layout": "default.njk", | ||
"tags": [ | ||
"posts", | ||
"News" | ||
], | ||
"permalink": "/posts/{{ page.fileSlug }}/", | ||
"title": "Totally awesome", | ||
"date": "2021-08-10T00:00:00.000Z", | ||
"author": "/authors/jane-doe.md", | ||
"authorItem": "[FILTERED]", | ||
"path": "posts/totally-awesome.md", | ||
"url": "/posts/totally-awesome/", | ||
"output": true, | ||
"collection": "posts" | ||
}, | ||
{ | ||
"filePathStem": "/posts/wicked-cool", | ||
"fileSlug": "wicked-cool", | ||
"layout": "default.njk", | ||
"tags": [ | ||
"posts" | ||
], | ||
"permalink": "/posts/{{ page.fileSlug }}/", | ||
"title": "Wicked cool", | ||
"date": "2021-12-11T00:00:00.000Z", | ||
"author": "/authors/john-doe.md", | ||
"authorItem": "[FILTERED]", | ||
"path": "posts/wicked-cool.md", | ||
"url": "/posts/wicked-cool/", | ||
"output": true, | ||
"collection": "posts" | ||
} | ||
], | ||
"pages": [ | ||
{ | ||
"filePathStem": "/pages/about", | ||
"fileSlug": "about", | ||
"layout": "default.njk", | ||
"permalink": "/{{ page.fileSlug }}/", | ||
"title": "About", | ||
"description": "All about us!", | ||
"path": "pages/about.njk", | ||
"url": "/about/", | ||
"output": true, | ||
"collection": "pages" | ||
}, | ||
{ | ||
"filePathStem": "/pages/blog", | ||
"fileSlug": "blog", | ||
"layout": "default.njk", | ||
"permalink": "/blog/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber + 1 }}/{% endif %}", | ||
"title": "Blog", | ||
"path": "pages/blog.njk", | ||
"url": "/blog/", | ||
"output": true, | ||
"collection": "pages" | ||
}, | ||
{ | ||
"filePathStem": "/pages/index", | ||
"fileSlug": "pages", | ||
"layout": "default.njk", | ||
"permalink": "/", | ||
"title": null, | ||
"quotes": [ | ||
{ | ||
"message": "So awesome!", | ||
"name": "Happy Chappy" | ||
}, | ||
{ | ||
"message": "Totally rad!", | ||
"name": "Skatey One Eighty" | ||
}, | ||
{ | ||
"message": "Gnarly!", | ||
"name": "Surfer Dude" | ||
} | ||
], | ||
"path": "pages/index.njk", | ||
"url": "/", | ||
"output": true, | ||
"collection": "pages" | ||
}, | ||
{ | ||
"filePathStem": "/pages/notes", | ||
"fileSlug": "notes", | ||
"layout": "default.njk", | ||
"permalink": "/{{ page.fileSlug }}/", | ||
"title": "The notes!", | ||
"path": "pages/notes.md", | ||
"url": "/notes/", | ||
"output": true, | ||
"collection": "pages" | ||
} | ||
] | ||
}, | ||
"data": {}, | ||
"generator": { | ||
"name": "eleventy", | ||
"version": "1.0.0", | ||
"environment": "", | ||
"metadata": { | ||
"markdown": "markdown-it", | ||
"markdown-it": { | ||
"html": true | ||
} | ||
} | ||
}, | ||
"version": "0.0.3" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const pluginCloudCannon = require('eleventy-plugin-cloudcannon'); | ||
|
||
module.exports = function (eleventyConfig) { | ||
eleventyConfig.setUseGitIgnore(false); | ||
eleventyConfig.setDataDeepMerge(true); | ||
|
||
eleventyConfig.addCollection('postsWithAuthor', (collectionApi) => { | ||
const authors = collectionApi.getFilteredByTag('authors'); | ||
|
||
return collectionApi.getFilteredByTag('posts').map((post) => { | ||
post.data.authorItem = authors.find((author) => author.inputPath === `.${post.data.author}`); | ||
return post; | ||
}); | ||
}); | ||
|
||
eleventyConfig.cloudcannonOptions = { | ||
dir: { | ||
pages: 'pages' | ||
} | ||
}; | ||
|
||
eleventyConfig.addPlugin(pluginCloudCannon); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
_site/ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"site_title": "Test site", | ||
"description": "Testing example content." | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
--- | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title>Test</title> | ||
</head> | ||
|
||
<body> | ||
<nav> | ||
<ul> | ||
<li><a href="/">Home</a></li> | ||
<li><a href="/about/">About</a></li> | ||
<li><a href="/notes/">Notes</a></li> | ||
<li><a href="/blog/">Blog</a></li> | ||
</ul> | ||
</nav> | ||
|
||
<main> | ||
{{ content | safe }} | ||
</main> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"tags": "authors", | ||
"permalink": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
name: Jane Doe | ||
description: Tall | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
name: John Doe | ||
description: Very tall | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
timezone: 'Etc/UTC', | ||
_inputs: { | ||
layout: { | ||
hidden: 'true' | ||
} | ||
}, | ||
collections_config: { | ||
authors: { | ||
name: 'The Authors', | ||
path: 'authors', | ||
output: false | ||
} | ||
} | ||
}; |
Oops, something went wrong.