Files
indiekit-endpoint-youtube/includes/@indiekit-endpoint-youtube-widget.njk
Ricardo 43090ce8af fix: dashboard controller support for multi-channel mode
The Indiekit backend UI was broken when using channels array
because the dashboard controller only checked for channelId/channelHandle.

Now uses getPrimaryChannel() helper to extract the first channel
from either single-channel or multi-channel configuration.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 13:59:25 +01:00

13 lines
330 B
Plaintext

{% call widget({
title: __("youtube.title")
}) %}
<p class="prose">{{ __("youtube.widget.description") }}</p>
<div class="button-grid">
{{ button({
classes: "button--secondary-on-offset",
href: application.youtubeEndpoint or "/youtube",
text: __("youtube.widget.view")
}) }}
</div>
{% endcall %}