Questions tagged [eleventy]

Eleventy (11ty) is a static site generator. Use this tag for questions about the generator itself or about the usage of it.

Eleventy is a Node.js-based static site generator. It is template/framework-agnostic, works with multiple template languages, from Markdown to Liquid, or just JavaScript.

  • Good performance
  • Templating engine-independent
  • Framework-agnostic, no JavaScript runtime
  • Layout inheritance
  • Shortcodes
  • Custom 'filter' to modify content in multiple template engines
  • Generate pages from static JSON files

Find out more at 11ty.dev.


Resources

Competitors

261 questions
0
votes
1 answer

Show specific JSON values in a nunjuck template

Trying filter values from a JSON-file and showing in an nunjuck-template. This is the JSON-file: {"rows": [ {"value": { "name":"'s Gravenwezel", "zip":"2970" } }, { "value": { "name":"'s Herenelderen", …
Tuxy
  • 91
  • 10
0
votes
1 answer

11ty shortcode to output a menu

I'm trying to construct a 11ty universal shortcode that outputs a menu when passed a collection. (I'm not entirely sure this is the best may to output a menu.) So far I've tried: config.addShortcode("navList", function( list ) { var result =…
jshwlkr
  • 335
  • 6
  • 18
-1
votes
1 answer

Bootstrap 5 navbar logo overlap and toggle bar items alignment

I am working on 11ty+bootstrap template and trying to make some changes. I cloned the template from Github link and currently working in localhost. The navbar has a normal text logo with background color along with some margins and paddings. The…
Dee
  • 119
  • 5
-1
votes
2 answers

How can I set Eleventy (11ty) to output a working static site to _site folder?

For the last few years I've been using Hexo.io to generate my static site. When I run "hexo g" it outputs a static site I can open locally without a server. This is what I want 11ty to do. After converting my site to 11ty it works great while I'm…
-1
votes
1 answer

Add a variable into a js url path

I'm trying to a add a variable into the following: eleventyConfig.addPassthroughCopy({ "random-folder/img": "subfolder/img" }); What I've tried: var directory = "random-folder"; eleventyConfig.addPassthroughCopy({ directory + "/img":…
morgyface
  • 368
  • 1
  • 9
-2
votes
2 answers

11ty error TypeError: eleventyConfig.addPassthroughCopy is not a function

I am trying to add my css and javascript codes to 11ty. I learned that 11ty has something called .11ty.js, so i tried using the addPassthroughCopy() function. Here is the script: module.exports = function (eleventyConfig) { …
1 2 3
17
18