fix(widget): hide follow button if link is empty
parent
8804d4612d
commit
5d7260c846
|
@ -69,10 +69,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
<% if (widget.follow_link) { %>
|
||||||
<div class="level">
|
<div class="level">
|
||||||
<a class="level-item button is-link is-rounded" href="<%= url_for(widget.follow_link) %>" target="_blank">
|
<a class="level-item button is-link is-rounded" href="<%= url_for(widget.follow_link) %>" target="_blank">
|
||||||
<%= __('widget.follow') %></a>
|
<%= __('widget.follow') %></a>
|
||||||
</div>
|
</div>
|
||||||
|
<% } %>
|
||||||
<% const socialLinks = get_config_from_obj(widget, 'social_links'); %>
|
<% const socialLinks = get_config_from_obj(widget, 'social_links'); %>
|
||||||
<% if (socialLinks !== null) { %>
|
<% if (socialLinks !== null) { %>
|
||||||
<div class="level is-mobile">
|
<div class="level is-mobile">
|
||||||
|
|
Loading…
Reference in New Issue