Subdirectories and here
, previous
, and next
#211
Closed
opened 5 years ago by sturgman
·
2 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?
Hello!
I am currently going through the pollen documentation setting up my directories as follows:
I ran
raco pollen start
from thepollentest
directory. The decision to set up like this led me to confusion when doing the pagetree section of tutorial2. In particular, this snippet:I could not get the previous and next pages to render. With this template, the rendered text looked like this:
It took me some time to realize that this was because of my directory structure. If I start pollen in the tutorial2 directory, everything works fine. I suspect this happens because
◊|here|
returns the full path name of the current page relative to the place where I started the pollen server, whileprevious
andselect
expect just the file name of the current page. Is that correct?I any case, I just wanted to provide some feedback on my experience. I figure later in the documentation I will find how to deal with subdirectories.
The first tutorial asks readers to make a directory for the tutorial source files and then start the project server from this same directory. If what you’re saying is “when one follows the instructions, it works” then I agree 😉 (Or, if there’s an instruction that’s defective, I can fix it.)
Fair enough!
Note that tutorial one also says: " For each directory in your project,
starting at the top, the project server displays a dashboard in your web
browser. The dashboard gives you an overview of the files in the directory,
and links to view them." which at the time gave me the impression that I
could do what I was doing...
I'll follow the instructions more closely from now on! 😇
On Thu, Nov 14, 2019 at 12:02 PM Matthew Butterick notifications@github.com
wrote: