Skip to main content
The 2024 Developer Survey results are live! See the results

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
1 vote
0 answers
14 views

Process eleventy shortcodes in markdown-rendered FrontMatter data

I'm using 11ty with Decap CMS for a client webiste. I have several front-matter fields to add markdown content (I need to add Markdown content to boxes in several locations) . I render the markdown ...
vermar's user avatar
  • 37
0 votes
0 answers
13 views

in eleventy, how do I modify the response header, In the response header I want to add Strict-Transport-Security: max-age=31536000; includeSubDomain;

Please click these for the images These is the response header I would want to put some HSTS/ Stric-Transport-Security: max-age=31536000; includeSubDomains; preload, I already done using a way that I ...
chemuel castillo's user avatar
1 vote
0 answers
21 views

Getting node-pandoc to return filename with error

I replaced the default markdown processor in Eleventy 2.0.1 with node-pandoc like thus: const nodePandoc = require('node-pandoc'); module.exports = function(eleventyConfig) { async function ...
Pedro Palazzo's user avatar
0 votes
0 answers
15 views

Is it possible for a user of CloudCannon to change easily global colors of my site?

I'm beginner in Eleventy, CloudCannon and not very good in english. Sorry for my mistakes. I have an eleventy static site with global css values in my css file in :root I installed the site in ...
Gaëlle Bono's user avatar
0 votes
0 answers
31 views

Accessing the collections object and json data from a JavaScript file with Eleventy

I'm a very beginner in eleventy. And also in English! I'm studying alone. I have a html page gallery.html with a dropdown menu. I have a javascript file that will add some html content dynamically ...
Gaëlle Bono's user avatar
1 vote
1 answer
31 views

Display HTML front matter in a layout using Eleventy

I'm using Eleventy to generate pages for a blog. I have some HTML content in the front matter of my posts, but I cannot get it to display as HTML. When I reference it in my template, it's converted to ...
mack's user avatar
  • 2,905
0 votes
0 answers
92 views

Eleventy - Unable to find images on build

I am building a static blog using eleventy. I have my layouts set up but I'm having trouble getting the images to display. I'm using 11ty 3.0.0-alpha.10 with @11ty/eleventy-img version 4.0.2. I'm ...
mack's user avatar
  • 2,905
0 votes
0 answers
15 views

Different conversion functions per file path in Eleventy?

I replaced the default Markdown-It library with node-pandoc in my instance of Eleventy, as per the code below. Now, I would like to apply different arguments to the nodePandoc function according to ...
Pedro Palazzo's user avatar
0 votes
1 answer
72 views

Stackblitz "Failed to run start command"

Today I wanted to continue working on my Github reposiroty via Stackblitz and ran into some issues. For some reason I'm not able to start the terminal process to start the live server. I need it to ...
UTINNI's user avatar
  • 31
0 votes
0 answers
48 views

Eleventy not updating changes from src folder to public folder

I just started working with Eleventy and everything was working fine till I came to the point where my public folder is not getting updated when I make changes in the src folder. This is my code so ...
UTINNI's user avatar
  • 31
1 vote
0 answers
78 views

created template for blog article doesn't take css file

Currently I'm working on a project to create my first blog website. Therefore I created my website with HTML and CSS and implemented everything with Eleventy so I can put my webpage into a CMS for ...
UTINNI's user avatar
  • 31
1 vote
1 answer
88 views

Make JavaScript function available for Nunjucks templates

How can I provide JavaScript functions for my Nunjucks templates when building websites with Eleventy? Let's suppose I have a Nunjucks layout file my_layout.njk in the folder _includes: <!doctype ...
Martin Hinze's user avatar
0 votes
0 answers
28 views

Client-side site search using combobox, most performant way to get the indexed results

I'm implementing a site search in a site I have built. The site uses the JAM stack (11ty & Netlify) and I'm unsure which strategy to use for grabbing the query data. It's a basic combobox pattern, ...
Daz Lee's user avatar
  • 174
0 votes
0 answers
41 views

Eleventy/11ty paginate content in pages generated from global data

I have a big global data JSON of images (ìmages.json) to build an image gallery with a structure like this (It's exported from a DB table): [ { "category_id": "4", "...
Carlos Cabo's user avatar
0 votes
1 answer
70 views

Nunjucks and an Eleventy shortcode aren't connecting to each other

I've written an Eleventy shortcode to take the filename of an image (as well as text for an alt tag, etc), and output a whole srcset so it becomes a responsive image. The site's written using Nunjucks,...
Dan Gilmore's user avatar

15 30 50 per page
1
2 3 4 5
19