header.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <header class="mega-menu full-width fixed">
  2. <div class="header">
  3. <nav>
  4. <!-- <label for="drop" class="toggle"><i class="fa fa-bars fa-2x" aria-hidden="true"></i></label>
  5. <div id="logo" style="font-size:1.6rem;">小寶優居</div> -->
  6. <div class="d-inline-flex">
  7. <label for="drop" class="toggle"><i class="fa fa-bars" aria-hidden="true" style="padding-top:2px;font-size:1.6rem;"></i></label>
  8. <span id="logo">
  9. <a href="/" style="color:#656565;font-size:1.4rem;">
  10. <div class="row">
  11. <div class="col">
  12. <img
  13. alt="小寶優居 | 北歐風格"
  14. src="/img/logo2.png"
  15. height="30px"
  16. width="auto"
  17. layout="responsive">
  18. </img>
  19. </div>
  20. </div>
  21. </a>
  22. </span>
  23. </div>
  24. <input type="checkbox" id="drop" />
  25. <ul class="menu">
  26. {{ range .Site.Menus.main }}
  27. {{ if .HasChildren }}
  28. <li>
  29. <!-- First Tier Drop Down -->
  30. <label for="drop-{{ .Name }}" class="toggle">{{ .Name }} +</label>
  31. <a href="{{ .URL }}">{{ .Name }}</a>
  32. <input type="checkbox" id="drop-{{ .Name }}"/>
  33. <ul>
  34. {{ range .Children }}
  35. <li><a href="{{ .URL }}">{{ .Name }}</a></li>
  36. {{ end }}
  37. </ul>
  38. </li>
  39. {{ else }}
  40. <li>
  41. <a title="{{ .Name }}" href="{{ .URL }}">{{ .Name }}</a>
  42. </li>
  43. {{ end }}
  44. {{ end }}
  45. </ul>
  46. </nav>
  47. </div>
  48. </header>