huge restructure to give flexibility with blog posts and mobile layouts

This commit is contained in:
Jonathan Souter
2023-02-28 21:25:22 +10:30
parent 4bcb5e0dc1
commit 2964a27d53
14 changed files with 135 additions and 53 deletions

View File

@ -4,6 +4,16 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("./src/_assets/fonts");
eleventyConfig.addPassthroughCopy("./src/_assets/js");
eleventyConfig.addCollection("tagsList", function(collectionApi) {
const tagsList = new Set();
collectionApi.getAll().map( item => {
if (item.data.tags) { // handle pages that don't have tags
item.data.tags.map( tag => tagsList.add(tag))
}
});
return tagsList;
});
return {
passthroughFileCopy: true,
dir: {