9cf54f9459
- Extends base.html, uses shared image macro for resize_image - Refactored img shortcode to forward to macros/image.html (DRY) - News pulled via get_page from content/news.md - Notfall section skipped (was unpublished in grav) - Map call commented out until shortcode lands in Task 20
9 lines
442 B
HTML
9 lines
442 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=400, alt="Dr. Riemann") }}
|
|
{{ img(src="services/HV.jpg", width=600, alt="...", class="float-right") }}
|
|
#}
|
|
{%- import "macros/image.html" as image -%}
|
|
{{ image::render(src=src, width=width, alt=alt | default(value=""), class=class | default(value="")) }}
|