Files
praxis-page/templates/shortcodes/img.html
T
Brummel 9cf54f9459 feat: home page template with carousel, news, about, services, team sections
- 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
2026-05-20 22:39:59 +02:00

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="")) }}