saimn / sigal

yet another simple static gallery generator

Home Page:http://sigal.saimon.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I get the path to a file

DuendeInexistente opened this issue · comments

Not an issue, but I can't find info on this anywhere. Would be good if I could just tell sigal to print all {{ possible.variables }}.

How do I get the path to a file? IE. 2021/twit.png .

Which path do you want ? (filename, local path, url)
The Media objects are available in the templates, through their subclasses Image and Video, so any attribute is available:
http://sigal.saimon.org/en/latest/themes.html#sigal.gallery.Media (and same below for Image and Video which add some attributes).