181e9639ed
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)
9 lines
478 B
HTML
9 lines
478 B
HTML
{# Image shortcode for use inside Markdown content.
|
|
Forwards to the shared image macro so we have one source of truth.
|
|
Usage in markdown:
|
|
{{ img(src="team/Olli.jpg", width=200, alt="Dr. Riemann") }} # resized
|
|
{{ img(src="services/HV.jpg", alt="HV", class="float-right") }} # raw, CSS-sized
|
|
#}
|
|
{%- import "macros/image.html" as image -%}
|
|
{{ image::render(src=src, width=width | default(value=0), alt=alt | default(value=""), class=class | default(value="")) }}
|