Skip to content

Commit a1dd094

Browse files
authored
Update friends.ejs
1 parent 2fc81cc commit a1dd094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layout/friends.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<% getList(group.items).forEach(function(item){ %>
1919
<% if (item.url && item.title) { %>
2020
<a class='friend-card'
21-
target="_blank" rel="external noopener noreferrer" href="<%- url_for(item.url || '/') %>">
21+
target="_blank" rel="external noopener noreferrer" href="<%- url_for(item.url || '/') %>" style="background-color: <%- item.color %>">
2222
<div class='friend-left'>
2323
<% if (item.avatar) { %>
2424
<img class='avatar' src='<%- item.avatar || (theme.plugins.lazyload && theme.plugins.lazyload.loadingImg) %>'/>
@@ -47,7 +47,7 @@
4747
<div class='simpleuser-group'>
4848
<% getList(group.items).forEach(function(item){ %>
4949
<% if (item.url && item.title) { %>
50-
<a class="simpleuser" target="_blank" rel="external noopener noreferrer" href="<%- url_for(item.url || '/') %>">
50+
<a class="simpleuser" target="_blank" rel="external noopener noreferrer" href="<%- url_for(item.url || '/') %>" style="background-color: <%- item.color %>">
5151
<img src="<%- item.avatar || (theme.plugins.lazyload && theme.plugins.lazyload.loadingImg) %>"/>
5252
<span><%- item.title %></span>
5353
</a>

0 commit comments

Comments
 (0)