Commits

Chris Wesseling  committed eeb1eea

Adds new template var ORIG, containing url of the original image.

  • Participants
  • Parent commits 9370fb3

Comments (0)

Files changed (1)

File hs/curator-hs

 
         comment = getcomment(origfn)
         url = choproot(fn) if opts.resize else join('..', fn)
+        orig = join('..', origfn)
         thumbfn = choproot(thumbfn)
         tmpl = linktmpl
         tmpl = tmpl.replace('URL', url)
+        tmpl = tmpl.replace('ORIG', orig)
         tmpl = tmpl.replace('THUMB', thumbfn)
         tmpl = tmpl.replace('TITLE', comment or '')
         entries.append(tmpl)