Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templating errors in permalinks get logged as error in files #1020

Open
dd-pardal opened this issue Mar 14, 2020 · 0 comments
Open

Templating errors in permalinks get logged as error in files #1020

dd-pardal opened this issue Mar 14, 2020 · 0 comments

Comments

@dd-pardal
Copy link

Describe the bug

Templating errors in permalinks get logged as templating errors in files, even if the permalink is not defined in the file's front matter.

To Reproduce

Steps to reproduce the behavior:

  1. Create a file named page.md with any content (doesn't need front matter).

  2. Create a file named page.11tydata.json.

  3. Insert the following code in page.11tydata.json:

     {
       "permalink": "{{+}}"
     }
    
  4. Run eleventy.

  5. Eleventy logs:

     Problem writing Eleventy templates: (more in DEBUG output)
     > Having trouble rendering md template ./page.md
    

Expected behavior

Eleventy to log something like:

Problem writing Eleventy templates: (more in DEBUG output)
> Having trouble parsing the permalink for ./page.md using liquid template engine

Environment:

  • OS and Version: Windows 10 Home 1909
  • Eleventy Version 0.10.0

Additional context

This really confused me, in combination with #1019.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant