fix(images): drop forced upscaling, match live image sizes
The image macro was resizing every call to its width arg, including upscaling 270x180 service thumbnails to 600x400 and rendering 400x400 doctor portraits at full size. Live serves service thumbs at native 270x180 (CSS-floated) and doctor portraits at 200x200. - image macro: width=0 (default) skips resize, emits raw <img> with no width/height — lets theme CSS do the sizing, matching live pattern - img shortcode: defaults width to 0 so callers can omit it - service grid (home + 7 service pages): drop width=600 - doctor portraits on /team: width=200 (matches live render)
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<div class="col-md-6">
|
||||
<div class="thumbnail clearfix">
|
||||
<a href="{{ card.url | safe }}">
|
||||
{{ image::render(src=card.image, width=600, alt=card.title) }}
|
||||
{{ image::render(src=card.image, alt=card.title) }}
|
||||
</a>
|
||||
<div class="caption">
|
||||
<h3><a href="{{ card.url | safe }}">{{ card.title }}</a></h3>
|
||||
|
||||
Reference in New Issue
Block a user