Replies: 1 comment
-
|
Hmm. I just created a bare minimum 1ty project to demo the problem, and it works as I want it to. So the problem is somewhere in my project. :-/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to override permalinks in an *.11tydata.js file?
I have a directory with reads/bookmarks, where the front matter includes the url of an article external to my site. I'd like to use fetch to retrieve the url and possibly get the title of the page, but I'd rather it not create any page if the url results in an error, e.g., 404, 410, 501, etc. The permalink is set in an upstream 11dataty json file.
My
posts.11tydata.jsonfile:{ "permalink": "/{{ page.fileSlug }}" }Inside the posts directory is a subdirectory
readswithreads.11tydata.js;With this setup, the page is created on each build, regardless of the status returned by fetch.
Beta Was this translation helpful? Give feedback.
All reactions