-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Bug with Filters in Computed Data #1061
Labels
Milestone
Comments
What does the new failing one look like? |
@zachleat do you mean the YFM that doesn't work? Same as the other with just ---
layout: page
pagination:
data: collections.articlesByMonth
size: 1
alias: month
permalink: "articles/{{ month }}/"
eleventyComputed:
title: Articles published in {{ month | monthString }}
---
… |
zachleat
changed the title
Is
Bug with filters in computed data
Apr 1, 2020
eleventyComputed
supposed to replace renderData
completely?
zachleat
changed the title
Bug with filters in computed data
Bug with Filters in Computed Data
Apr 1, 2020
zachleat
added a commit
that referenced
this issue
Apr 1, 2020
I read somewhere that the title should be in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I tried to replace all
renderData
in my templates witheleventyComputed
, but the build now doesn't work.To Reproduce
I used to have this YFM in this template:
https://github.com/nhoizey/nicolas-hoizey.com/blob/master/src/articles/index-months.njk
I tried to replace
renderData
witheleventyComputed
, but it gives me this error:I guess it comes from the
alias
because the errorCannot read property 'replace' of undefined
comes from themonthString
filter:https://github.com/nhoizey/nicolas-hoizey.com/blob/master/src/_11ty/filters/dates.js#L7-L11
Expected behavior
I thought
eleventyComputed
was supposed to replacerenderData
completely.Environment:
The text was updated successfully, but these errors were encountered: