mirror of
https://github.com/svemagie/indiekit-endpoint-youtube.git
synced 2026-04-02 15:54:59 +02:00
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>
14 lines
435 B
Plaintext
14 lines
435 B
Plaintext
{# Videos partial for embedding in other templates #}
|
|
{% if videos and videos.length > 0 %}
|
|
<ul class="youtube-list youtube-list--compact">
|
|
{% for video in videos %}
|
|
{% if loop.index <= 5 %}
|
|
<li class="youtube-list__item">
|
|
<a href="{{ video.url }}" target="_blank" rel="noopener">{{ video.title }}</a>
|
|
<small class="youtube-meta">{{ video.viewCount }} views</small>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|