hexo-theme-amane/layout/common/profile.ejs

34 lines
1.5 KiB
Plaintext
Raw Normal View History

2016-02-02 16:19:44 +00:00
<% var profile = theme.customize.profile; %>
<aside id="profile">
<div class="inner profile-inner">
<div class="base-info profile-block">
<img id="avatar" src="<%= ( profile.gravatar ? gravatar(profile.gravatar) : url_for(profile.avatar)) %>" />
<h2 id="name"><%= profile.author %></h2>
<h3 id="title"><%= profile.author_title %></h3>
<span id="location"><i class="fa fa-map-marker"></i><%= profile.location %></span>
<a id="follow" href="<%= profile.follow %>"><%= __('profile.follow') %></a>
</div>
<div class="article-info profile-block">
<div class="article-info-block">
<%= site.posts.length %>
<span><%= (site.posts.length > 1 ? __('profile.posts') : __('profile.post')) %></span>
</div>
<div class="article-info-block">
<%= site.tags.length %>
<span><%= (site.tags.length > 1 ? __('profile.tags') : __('profile.tag')) %></span>
</div>
</div>
<% if(theme.customize.social_links) { %>
<div class="profile-block social-links">
<table>
<tr>
<% for(var i in theme.customize.social_links) { %>
<td><a href="<%- url_for(theme.customize.social_links[i]) %>" target="_blank" title="<%= i %>"><i class="fa fa-<%= i %>"></i></a></td>
<% } %>
</tr>
</table>
</div>
<% } %>
</div>
</aside>