i18n
xaoxuu 5 years ago
parent 6d45249215
commit 1e35ae64d2
  1. 9
      layout/archive.ejs
  2. 24
      source/less/_archive.less

@ -24,17 +24,14 @@
<% } else if (post.date) { %> <% } else if (post.date) { %>
<%= date(post.date, config.date_format) %> <%= date(post.date, config.date_format) %>
<% } %> <% } %>
<% if(post.music){ %> <% if(post.music && post.music.enable != false){ %>
&nbsp;<i class="fas fa-headphones-alt" aria-hidden="true"></i> &nbsp;<i class="fas fa-headphones-alt music" aria-hidden="true"></i>
<% } %>
<% if(post.video){ %>
&nbsp;<i class="fas fa-video" aria-hidden="true"></i>
<% } %> <% } %>
<% if (post.icon) { %> <% if (post.icon) { %>
&nbsp;<i class="<%- post.icon %>" aria-hidden="true"></i> &nbsp;<i class="<%- post.icon %>" aria-hidden="true"></i>
<% } %> <% } %>
<% (post.icons && post.icons||[]).forEach(function(icon){ %> <% (post.icons && post.icons||[]).forEach(function(icon){ %>
&nbsp;<i class="<%- icon %>" aria-hidden="true"></i> &nbsp;<i class="<%- icon %>" aria-hidden="true"></i>
<% }) %> <% }) %>
</span> </span>
</a> </a>

@ -46,6 +46,30 @@
color: fade(@color_text_main, 90%); color: fade(@color_text_main, 90%);
i{ i{
color: @theme_main; color: @theme_main;
&.music {
color: @color_text_highlight;
}
&.red {
color: @color_mac_close;
}
&.green {
color: @color_mac_maximize;
}
&.yellow {
color: @color_mac_minimize;
}
&.blue {
color: @color_mac_finder;
}
&.theme {
color: @theme_main;
}
&.accent {
color: @color_text_highlight;
}
&.orange {
color: @color_md_deep_orange;
}
} }
} }
} }

Loading…
Cancel
Save