mbutterick / pollen

book-publishing system [mirror of main repo at https://git.matthewbutterick.com/mbutterick/pollen]

Home Page:https://git.matthewbutterick.com/mbutterick/pollen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

path->pagenode returns incorrect path if starting-path is an immediate relative filename

stschmid opened this issue · comments

> (path->pagenode "assets" 'index.html)
'../assets

(dirname path) (respectively (split-path path)) returns 'relative for an immediate relative filename.
(path->pagenode p [starting-path]) should return p if (eq? starting-dir 'relative).