header.ejs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <header class="l_header">
  2. <div class='wrapper'>
  3. <div class="nav-main container container--flex">
  4. <a class="logo flat-box" href='<%= url_for("/") %>' >
  5. <%- config.title %>
  6. </a>
  7. <div class='menu'>
  8. <ul class='h-list'>
  9. <% (theme.menu||[]).forEach(function(value){ %>
  10. <li>
  11. <a class='flat-box nav-<%=value.slug%>' href='<%=url_for(value.url)%>'>
  12. <%=value.name%>
  13. </a>
  14. </li>
  15. <%})%>
  16. </ul>
  17. <div class='underline'></div>
  18. </div>
  19. <% if (theme.search.enable === true) { %>
  20. <div class="m_search">
  21. <form name="searchform" class="form u-search-form">
  22. <input type="text" class="input u-search-input" placeholder="Search" />
  23. <span class="icon icon-search"></span>
  24. </form>
  25. </div>
  26. <% } %>
  27. <ul class='switcher h-list'>
  28. <% if (theme.search.enable === true) { %>
  29. <li class='s-search'><a href='javascript:void(0)'><span class="icon icon-search flat-box"></span></a></li>
  30. <% } %>
  31. <li class='s-menu'><a href='javascript:void(0)'><span class="icon icon-menu flat-box"></span></a></li>
  32. </ul>
  33. </div>
  34. <div class='nav-sub container container--flex'>
  35. <a class="logo" class="flat-box" href='javascript:void(0)'>
  36. Word of Forks
  37. </a>
  38. <ul class='switcher h-list'>
  39. <li class='s-comment'><a href='javascript:void(0)'><span class="icon icon-chat_bubble_outline flat-box"></span></a></li>
  40. <li class='s-top'><a href='javascript:void(0)'><span class="icon icon-arrow_upward flat-box"></span></a></li>
  41. <li class='s-toc'><a href='javascript:void(0)'><span class="icon icon-format_list_numbered flat-box"></span></a></li>
  42. </ul>
  43. </div>
  44. </div>
  45. </header>
  46. <aside class="menu-phone">
  47. <nav>
  48. <% (theme.menu||[]).forEach(function(value, key) {
  49. if (value.url && value.slug && value.name) { %>
  50. <a href="<%= url_for(value.url) %>" class="nav-<%= value.slug %> nav">
  51. <%= value.name %>
  52. </a>
  53. <% } }); %>
  54. </nav>
  55. </aside>