{% comment %} A compact bordered card that looks exactly like embed/links/custom-link.html (avatar + a short line of text), but instead of pointing at an external URL that opens in a new tab, clicking the card opens a lightbox gallery of images in place — the same magnific-popup gallery embed/image/gallery.html uses for its zoomed view (prev/next arrows, loop-aware). Parameters (card look — identical to custom-link.html): author - author / page / profile name (avatar initial + alt) avatar - avatar image URL (optional; falls back to the author's initial) fill_avatar - if truthy, the avatar image fills the whole circle (cropped) width - max width in px (optional; default 500) center - center the avatar+text group (optional, default true; pass center=false to left-align) text - body text; may contain Markdown (e.g. a [link](url)). Capture it first, then pass as text=, or inline a string. Parameters (gallery): paths - comma-separated list of image paths (whitespace/newlines around each entry are trimmed). Pass two, three, or more. alts - comma-separated alt text, matched to paths by position loop - wrap the lightbox around endlessly (default false: the prev arrow is hidden on the first photo, next on the last) Usage: {% include embed/image/popup.html author="author" avatar="https://.../logo.png" text="Zobacz **galerię zdjęć**." paths='/assets/img/posts/2026/elementarz-kredka-3.png, /assets/img/posts/2026/elementarz-kredka-4.png' %} {% endcomment %} {%- assign path_list = include.paths | split: ',' -%} {%- assign alt_list = include.alts | split: ',' -%} {%- assign is_loop = false -%}{%- if include.loop == true -%}{%- assign is_loop = true -%}{%- endif -%} {% capture _popup_inner %} {% if include.avatar %} {{ include.author }} {% else %} {% if include.author %} {% endif %} {% endif %} {% endcapture %}