eleventy
eleventy copied to clipboard
A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
Implementing a good service worker has been one of the most difficult things I have done recently. I wanted a service worker that: 1) Caches all assets 2) Caches the...
Is there a way to render from markdown to html href link path based on the input folder e.g. `/posts/some-post` and not just `/some-post`? All my posts are stored in...
I have data objects that reference other data objects. For example: ``` [ { "_id": "object A id", "key1": "value1", "linked": [ { "_id": "_object B id" } ... ```...
Is there a way to automatically have all subfolders in a folder get a tag assigned that is that subfolders slug? Currently I have to add a `subfolder.11tydata.json` to each...
I have a global data file from [Pinboard](https://pinboard.in/api/). Here's an example of what that looks like: ``` { "href":"http://gt-eesti.com/", "description":"GT Eesti", "extended":"This specimen is delightful. From the bold, large letters...
I'm converting a traditional website to 11ty. The site has a page listing all staff members and then 3 office location pages with the specific staff members that work there...
I have this nested section -> ``` content/ |_blog/ | |_index.md |_poem/ |_2020 |_2020.json |_new-poem.md ``` When I'm on domain.tld/new-poem/ page, how to reach parent folder "poem" and "2020"?
Hi, I have a custom nunjucks tag registered in my `.eleventy.js` file: ```javascript config.addNunjucksTag('ref', function () {}); ``` that I use to retrieve the URL of the passed argument (the...
I have a site that lives in a subdirectory: ``` module.exports = eleventyConfig => { eleventyConfig.addPassthroughCopy('eleventy/images'); return { dir: { input: './eleventy', output: './eleventy/_site', } } } ``` I have...
for: ``` {%- for item in collections.all %} {{ item.url }} {{ item.date }} {{ item.templateContent | striptags | }} ``` I can use nunjucks `replace` to remove matching strings...