out-of-cheese-error / gooseberry

A command line utility to generate a knowledge base from Hypothesis annotations
Apache License 2.0
152 stars 9 forks source link

Provide page URI to templates #84

Closed ngirard closed 3 years ago

ngirard commented 3 years ago

The templates are currently provided with

but, unless I'm misunderstood, they cannot render the URI of the original page that was annotated.

I ended up performing regex search & replace against {{ base_uri }}, but it would be nice if Gooseberry could add this key to the templates.

Ninjani commented 3 years ago

I believe {{ uri }} is what you're looking for, the link to the actual annotation is {{ incontext }}

Edit: I agree the way it's written in the README is a bit confusing, I'll change that

ngirard commented 3 years ago

Jeez... you're right... I need more sleep, thanks ! Feel free to close this issue whenever you want !