can't use pagetree as argument to raco pollen render
#249
Closed
opened 4 years ago by mbutterick
·
5 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
According to this comment.
@otherjoel I’m not clear how to reproduce the problem you observed. The attached test case seems to work OK. What is missing?
249-test-case.zip
Yes, you're right that works.
Here's how I can reproduce the problem I was having. To your test case from #248, add a file
posts/test.ptree
:Then:
You know what, I’m an idiot…the output file paths in the pagetree have to be relative to the current directory, not to the directory the pagetree file is in. Sorry for the bogus report!
OK I take it back. I thought I was an idiot but now I’m not so sure. The only reference to this that I could find in the docs is the last sentence of 14.5.1, which says:
OK, I see the problem. When a pagetree inside a subdirectory is passed to
raco pollen render
, the pagenodes inside of that pagetree were not being calculated relative to that subdirectory.