profile.ejs 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <% var profile = theme.customize.profile; %>
  2. <aside id="profile">
  3. <div class="inner profile-inner">
  4. <div class="base-info profile-block">
  5. <img id="avatar" src="<%= ( profile.gravatar ? gravatar(profile.gravatar) : url_for(profile.avatar)) %>" />
  6. <h2 id="name"><%= profile.author %></h2>
  7. <h3 id="title"><%= profile.author_title %></h3>
  8. <span id="location"><i class="fa fa-map-marker"></i><%= profile.location %></span>
  9. <a id="follow" target="_blank" href="<%= profile.follow %>"><%= __('profile.follow') %></a>
  10. </div>
  11. <div class="article-info profile-block">
  12. <div class="article-info-block">
  13. <%= site.posts.length %>
  14. <span><%= (site.posts.length > 1 ? __('profile.posts') : __('profile.post')) %></span>
  15. </div>
  16. <div class="article-info-block">
  17. <%= site.tags.length %>
  18. <span><%= (site.tags.length > 1 ? __('profile.tags') : __('profile.tag')) %></span>
  19. </div>
  20. </div>
  21. <% if(theme.customize.social_links) { %>
  22. <div class="profile-block social-links">
  23. <table>
  24. <tr>
  25. <% for(var i in theme.customize.social_links) { %>
  26. <td><a href="<%- url_for(theme.customize.social_links[i]) %>" target="_blank" title="<%= i %>"><i class="fa fa-<%= i %>"></i></a></td>
  27. <% } %>
  28. </tr>
  29. </table>
  30. </div>
  31. <% } %>
  32. </div>
  33. </aside>