header.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <header id="site-header" class="animated slideInUp faster">
  2. <div class="hdr-wrapper section-inner">
  3. <div class="hdr-left">
  4. <div class="site-branding">
  5. <a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a>
  6. </div>
  7. <nav class="site-nav hide-in-mobile">
  8. {{- range .Site.Menus.main }}
  9. <a href="{{ .URL }}">{{ .Name }}</a>
  10. {{- end }}
  11. </nav>
  12. </div>
  13. <div class="hdr-right">
  14. <div class="hdr-icons">
  15. {{- with .Params.featuredImg }}
  16. <button id="show-img-btn" class="hdr-btn" onclick="showFeaturedImg()"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-image"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg></button>
  17. {{- end }}
  18. {{- range .Site.Params.social -}}
  19. <a class="hide-in-mobile" href="{{ .url }}" target="_blank" rel="noopener"><span class="screen-reader-text">{{ .name }}</span>{{ partial "social-svg.html" . }}</a>
  20. {{- end -}}
  21. <!-- <button id="search-btn" class="hdr-btn"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg></button> -->
  22. <!-- <button id="toc-btn" class="hdr-btn"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3" y2="6"></line><line x1="3" y1="12" x2="3" y2="12"></line><line x1="3" y1="18" x2="3" y2="18"></line></svg></button> -->
  23. <button id="menu-btn" class="hdr-btn"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg></button>
  24. </div>
  25. </div>
  26. </div>
  27. </header>
  28. <div id="mobile-menu" class="animated fast" style="display: none;">
  29. <ul>
  30. {{- range .Site.Menus.main }}
  31. <li><a href="{{ .URL }}">{{ .Name }}</a></li>
  32. {{- end }}
  33. </ul>
  34. </div>