Upload files to "/"
This commit is contained in:
commit
9737e1fecf
7
.eleventy.js
Normal file
7
.eleventy.js
Normal file
@ -0,0 +1,7 @@
|
||||
module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addCollection("colors", function (collectionApi) {
|
||||
return collectionApi.getAll().filter(function (item) {
|
||||
return "colors" in item.data;
|
||||
});
|
||||
});
|
||||
};
|
10
index.liquid
Normal file
10
index.liquid
Normal file
@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<title>Page title</title>
|
||||
<p>Hi</p>
|
||||
|
||||
<ul>
|
||||
{% for tag in collections.colors | log %}
|
||||
{% capture tagUrl %}/tags/{{ tag | slugify }}/{% endcapture %}
|
||||
<li><a href="{{ tagUrl }}">{{ tag }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
15
package.json
Normal file
15
package.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "11tytest",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"description": "",
|
||||
"dependencies": {
|
||||
"@11ty/eleventy": "^2.0.1"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user