Sorry, totally forgot. Basically, if you put something like this in shortcodes/picture.tmpl
<picture> <source srcset="${args[0]}" media="(max-width: 768px)"> <source srcset="${args[1]}"> <img srcset="${args[1]}" alt="${alt}"> </picture> Then you can do this in any post: {{% picture small.jpg default.jpg alt="My Image"%}} And you will get the markup you want. On Wed, Sep 7, 2016 at 8:18 PM Samat K Jain <sa...@samat.org> wrote: > On 08/26/2016 07:08 PM, Roberto Alsina wrote: > > Actually, the raw shortcut is not what I meant. It's late and I am on > > the phone but I will reply with a decent example tomorrow. > > Roberto, > > Could you share that example? > > Thanks! > > -- > Samat K Jain • GPG: 0x4A456FBA • Pump.IO: https://identi.ca/samatjain > Web: https://samat.org/ • Twitter: https://twitter.com/SamatJain > > This e-mail is: [ ] shareable [x] ask first [ ] private > > -- > You received this message because you are subscribed to the Google Groups > "nikola-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nikola-discuss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.