Fix index err on chans w/o extern links

This commit is contained in:
syeopite 2021-05-08 06:33:01 -07:00
parent fbe9a0c0f2
commit d91eff14d7
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82

View file

@ -1,7 +1,7 @@
<% if channel.banner %>
<div class="pure-g" id="channel-banner-container">
<div class="pure-u-1" id="banner" style='background-image: url(/ggpht<%= URI.parse(channel.banner.not_nil!.gsub("=w1060-", "=w1280-")).request_target %>)'>
<% if channel.links %>
<% if !channel.links.empty? %>
<div id="link-holder">
<div id="link-widget-primary" class="link-widget-link">
<a href="<%=channel.links[0][1]%>" title=<%=channel.links[0][0]%>>