header.ejs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <header id="header">
  2. <div id="banner"></div>
  3. <div id="header-outer" class="outer">
  4. <div id="header-title" class="inner">
  5. <h1 id="logo-wrap">
  6. <a href="<%- url_for() %>" id="logo"><%= config.title %></a>
  7. </h1>
  8. <% if (theme.subtitle){ %>
  9. <h2 id="subtitle-wrap">
  10. <a href="<%- url_for() %>" id="subtitle"><%= theme.subtitle %></a>
  11. </h2>
  12. <% } %>
  13. </div>
  14. <div id="header-inner" class="inner">
  15. <nav id="main-nav">
  16. <a id="main-nav-toggle" class="nav-icon"></a>
  17. <% for (var i in theme.menu){ %>
  18. <a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
  19. <% } %>
  20. </nav>
  21. <nav id="sub-nav">
  22. <% if (theme.rss){ %>
  23. <a id="nav-rss-link" class="nav-icon" href="<%- url_for(theme.rss) %>" title="<%= __('rss_feed') %>"></a>
  24. <% } %>
  25. <a id="nav-search-btn" class="nav-icon" title="<%= __('search') %>"></a>
  26. </nav>
  27. <div id="search-form-wrap">
  28. <%- search_form({button: '&#xF002;'}) %>
  29. </div>
  30. </div>
  31. </div>
  32. </header>