-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error for dynamic permalink in JS #49
Comments
I'm getting a syntax error when defining dynamic permalink in JS frontmatter like above or in JS data file (see also the comments in #32). For this frontmatter: ---js
{
title: "About",
description: "This page explains what WebC is all about!",
lang: "en",
permalink: function(data) {
return "`/${this.slugify(data.title)}/`";
}
}
--- I get this error:
|
Seems to be the same issue as #50, and especially to this comment. |
zachleat
added
bug
Something isn't working
duplicate
This issue or pull request already exists
labels
Feb 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.11ty.dev/docs/data-frontmatter/#javascript-front-matter
Originally posted by @zachleat in #42 (comment)
The text was updated successfully, but these errors were encountered: