<div class="columns is-centered">
<div class="column is-8">
<figure class="image modal-trigger" data-target="%(id)s">
- <img src="/docs%(url)s" alt="%(caption)s">
+ <img src="/docs%(url)s?s=640&%(args)s" alt="%(caption)s">
<figcaption class="figure-caption">%(caption)s</figcaption>
</figure>
<div class="modal-content">
<p class="image">
- <img src="/docs%(plain_url)s?s=1920" alt="%(caption)s"
+ <img src="/docs%(url)s?s=1920&%(args)s" alt="%(caption)s"
loading="lazy">
</p>
</div>
if not file or not file.is_image():
return "<!-- Could not find image %s in %s -->" % (url, self.path)
- # Scale down the image if not already done
- if not "s" in args:
- args["s"] = "920"
+ # Remove any requested size
+ if "s" in args:
+ del args["s"]
# Append arguments to the URL
if args: