You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far, everything works. The problem is arises when I want to add a book.liquid template for the URL /{{ publisher.name | slugify }}/books/{{ book.id }}. I've tried to add a _data/book.js file and a book/book.liquid template, but then I get the following error:
[11ty] Output conflict: multiple input files are writing to `_site/undefined/books/index.html`. Use distinct `permalink` values to resolve this conflict.
This would also not be an optimal solution, as _data/book.js is redundant. All the data required to render book.liquid already exists in the data returned by publisher.js. Does anyone have an idea how to solve this predicament in Eleventy?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a
_data/publishers.js
file that exports anasync function
which fetches data from an API:I then have a
publishers/publishers.liquid
file used to render this data:So far, everything works. The problem is arises when I want to add a
book.liquid
template for the URL/{{ publisher.name | slugify }}/books/{{ book.id }}
. I've tried to add a_data/book.js
file and abook/book.liquid
template, but then I get the following error:This would also not be an optimal solution, as
_data/book.js
is redundant. All the data required to renderbook.liquid
already exists in the data returned bypublisher.js
. Does anyone have an idea how to solve this predicament in Eleventy?Beta Was this translation helpful? Give feedback.
All reactions