Skip to content

Commit 9836265

Browse files
committed
config: link YouTube channel handle in My Channel source row
1 parent ffb418f commit 9836265

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

blog/templates/config.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,19 @@ <h2 class="config-section__heading">📡 Content Sources</h2>
129129
{% if channel_ids %}
130130
<br>
131131
{% if auto_discovered_channels %}
132-
<span class="config-detail config-status--ok">auto-discovered from GitHub profile</span>
132+
<span class="config-detail config-status--ok">
133+
{% for handle in auto_discovered_channels %}
134+
<a href="https://www.youtube.com/{{ handle }}" target="_blank" rel="noopener noreferrer nofollow">{{ handle }}</a>{% if not loop.last %}, {% endif %}
135+
{% endfor %}
136+
(auto-discovered from GitHub profile)
137+
</span>
133138
{% else %}
134-
<span class="config-detail">(via <code>YOUTUBE_CHANNEL_IDS</code>)</span>
139+
<span class="config-detail">
140+
{% for cid in channel_ids %}
141+
<a href="https://www.youtube.com/channel/{{ cid }}" target="_blank" rel="noopener noreferrer nofollow">{{ cid }}</a>{% if not loop.last %}, {% endif %}
142+
{% endfor %}
143+
(via <code>YOUTUBE_CHANNEL_IDS</code>)
144+
</span>
135145
{% endif %}
136146
{% endif %}
137147
</td>

0 commit comments

Comments
 (0)