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
The text was updated successfully, but these errors were encountered:
gdbaldw
changed the title
Copy into _includes/blog-details.njk causes Problem writing Eleventy templates
Copy into docs/_includes/blog-details.njk causes Problem writing Eleventy templates
Dec 6, 2020
gdbaldw
changed the title
Copy into docs/_includes/blog-details.njk causes Problem writing Eleventy templates
Copy blog-details.njk into docs/_includes/ causes Problem writing Eleventy templates
Dec 7, 2020
BUG FOUND: The variable 'section' is undefined when the template is copied into "docs/_includes/".
MY SOLUTION: Replace the variable 'section' with the constant string "blog". So,
{{ collections["blog"] | rocketPageAnchors({ title: title }) | rocketNavToHtml({
No longer an issue for me, but worth noting that 'section' is undefined outside of the "blog" package.
gdbaldw
changed the title
Copy blog-details.njk into docs/_includes/ causes Problem writing Eleventy templates
Variable 'section' is undefined within a "docs/_includes" template
Dec 7, 2020
I'd like to source "blog-details.njk" from the "docs/_includes" directory. Should this be possible? A bug?
I've isolated the issue to this line:
{{ collections[section] | rocketPageAnchors({ title: title }) | rocketNavToHtml({
TypeError: nodes is not iterable
The text was updated successfully, but these errors were encountered: