- var short = alt.substring(0, alt.indexOf('_'));

.lazyload-wrapper(data-src-lg=base + short + '/' + alt + '.jpg?sw=400&sh=400')
  img.lazyload-small(src=base + short + '/' + alt + '.jpg?sw=10&sh=10')
  .lazyload-pad(style='padding-bottom: 100%')

.lazyload-wrapper(data-src-lg=base + short + '/' + alt + '.jpg?sw=400&sh=400')
  img.lazyload-small(src=base + short + '/' + alt + '.jpg?sw=10&sh=10')
  .lazyload-pad(style='padding-bottom: 100%')

Remove unnecessary var in template.
Remove unnecessary var in template.
