Comments (4)
Are you using Nunjucks or LiquidJS?
from eleventy.
from eleventy.
Odd, I was unable to reproduce with your code (except i'm on macOS 14.3.1 )
---
# src/index.njk
references:
- id: eli-european-legislation-identifier
- id: issn-profil-dapplication-rdf-et-versement-dans-wikidata
---
<ul>
{% for reference in references %}
<li>loop.index {{ loop.index }}, loop.index0 {{ loop.index0 }}</li>
<!-- {{ loop | dump | safe }} -->
{% endfor %}
</ul>
OUTPUT:
<ul>
<li>loop.index 1, loop.index0 0</li>
<!-- {"index":1,"index0":0,"revindex":2,"revindex0":1,"first":true,"last":false,"length":2} -->
<li>loop.index 2, loop.index0 1</li>
<!-- {"index":2,"index0":1,"revindex":1,"revindex0":0,"first":false,"last":true,"length":2} -->
</ul>
LOG:
eleventy
[11ty] Writing www/index.html from ./src/index.njk
[11ty] Wrote 1 file in 0.03 seconds (v2.0.1)
from eleventy.
Cannot reproduce either now... closing
from eleventy.
Related Issues (20)
- [3.0.0-alpha.5] Watch mode crash when build works
- RenderPlugin: support relative paths
- Layouts not working in 3.0? HOT 4
- Customize markdown headings rendering HOT 4
- Strict variables and custom filters in includes HOT 5
- getNextCollectionItem not working where there are multiple languages and fileslug is the same in each language
- [WARNING] for errors in CI allows build to succeed HOT 5
- access eleventyConfig plugin property HOT 3
- Trouble rendering files HOT 5
- "Unhandled rejection in promise" for watching files comes and goes (v3.0.0-alpha.5) HOT 2
- Eleventy Does not Accept Valid YAML Datetimes in Front Matter HOT 4
- Pagination data could not be found in JavaScript template file HOT 1
- error `(node:458793) MaxListenersExceededWarning`
- Add support for YAML as a default template/directory data file format HOT 5
- Update CLI `--help` text HOT 4
- Nunjucks file included in Markdown result in unwanted paragraph elements HOT 3
- Is it possible to know all the pages before execution of a custom transform? HOT 3
- ELEVENTY_VERSION environment variable HOT 3
- Permalinks and filters do not work with pagination
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eleventy.