greghendershott / frog

Frog is a static blog generator implemented in Racket, targeting Bootstrap and able to use Pygments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document uri-prefix

pmatos opened this issue · comments

Variable uri-prefix is not documented. I checked, however that's valid and used in the example blog.

Oh. Yes. I don't remember the history off the top of my head. From a quick glance at the code:

The uri-prefix template variable ~= the current-uri-prefix parameter. It's just "stringified" so that if the parameter value is #f, the template variable value is "", which is what you'd want using it in a texty template.

That should be added to https://github.com/greghendershott/frog/blob/master/frog/frog.scrbl#L503 so it appears in https://docs.racket-lang.org/frog/templates.html#(part._page-template).

Looking more carefully: The uri-prefix template variable is supplied to all three templates, {page post index}-template.html, so all three spots in the doc should be updated.

As with any doc change, this won't be reflected at https://docs.racket-lang.org/frog/templates.html until the next build server run (normally within 24 hours). However if you raco update frog it will should your local docs with the change.