header.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <header id="site-header" class="animated">
  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 hdr-icons">
  14. {{ if (or .Params.images .Params.featuredImg) -}}
  15. <button id="img-btn" class="hdr-btn" title="Featured Image"><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>
  16. {{- end }}
  17. {{- with .Params.toc -}}
  18. <button id="toc-btn" class="hdr-btn desktop-only-ib" title="Table Of Contents"><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>
  19. {{- end }}
  20. {{- with .Site.Params.social -}}
  21. <span class="hdr-social hide-in-mobile">{{ partialCached "social-icons.html" . }}</span>
  22. {{- end -}}
  23. <button id="menu-btn" class="hdr-btn" title="Menu"><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">
  29. <ul>
  30. {{- range .Site.Menus.main }}
  31. <li><a href="{{ .URL }}">{{ .Name }}</a></li>
  32. {{- end }}
  33. </ul>
  34. </div>