header.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536
  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. {{- with .Site.Params.social }}
  19. <span class="hide-in-mobile">
  20. {{- partialCached "social-icons.html" . -}}
  21. </span>
  22. {{- end }}
  23. <!-- <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> -->
  24. <!-- <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> -->
  25. <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>
  26. </div>
  27. </div>
  28. </div>
  29. </header>
  30. <div id="mobile-menu" class="animated fast" style="display: none;">
  31. <ul>
  32. {{- range .Site.Menus.main }}
  33. <li><a href="{{ .URL }}">{{ .Name }}</a></li>
  34. {{- end }}
  35. </ul>
  36. </div>