profile.ejs 1.4 KB

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