Site for my Call of Duty: Mobile clan. http://codm.ataraxy.tk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.8 KiB

  1. {{"<!-- Fixed Navigation -->" | safeHTML}}
  2. <nav id="navigation" class="navbar navbar-expand-lg navigation sticky-top">
  3. <div class="container">
  4. {{"<!-- logo -->" | safeHTML}}
  5. <a class="navbar-brand logo" href="{{ .Site.BaseURL | absURL }}">
  6. <img src="{{ .Site.Params.logo | absURL }}" alt="Logo" />
  7. <span class="pl-2 font-weight-bold">{{ index (split .Site.Title "|") 0 }}</span>
  8. </a>
  9. {{"<!-- /logo -->" | safeHTML}}
  10. {{"<!-- responsive nav button -->" | safeHTML}}
  11. <button class="navbar-toggler navbar-dark" type="button" data-toggle="collapse"
  12. data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
  13. aria-label="Toggle navigation">
  14. <span class="navbar-toggler-icon"></span>
  15. </button>
  16. {{"<!-- /responsive nav button -->" | safeHTML}}
  17. {{"<!-- main nav -->" | safeHTML}}
  18. {{ if .IsHome }}
  19. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  20. <ul class="navbar-nav ml-auto navigation-menu">
  21. <li class="nav-item"><a class="nav-link" data-scroll
  22. href="#body">{{ with $.Site.Params.home }}{{ . }}{{ end }}</a></li>
  23. {{ range $.Site.Menus.nav }}
  24. <li class="nav-item"><a class="nav-link" data-scroll href="#{{ .URL }}">{{ .Name }}</a></li>
  25. {{ end }}
  26. </ul>
  27. </div>
  28. {{ else }}
  29. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  30. <ul class="navbar-nav ml-auto navigation-menu">
  31. <li class="nav-item"><a class="nav-link" data-scroll
  32. href="{{ $.Site.BaseURL }}#body">{{ with $.Site.Params.home }}{{ . }}{{ end }}</a></li>
  33. {{ range $.Site.Menus.nav }}
  34. <li class="nav-item"><a class="nav-link" data-scroll href="{{ $.Site.BaseURL }}#{{ .URL }}">{{ .Name }}</a></li>
  35. {{ end }}
  36. </ul>
  37. </div>
  38. {{ end }}
  39. {{"<!-- /main nav -->" | safeHTML}}
  40. </div>
  41. </nav>
  42. {{"<!-- End Fixed Navigation -->" | safeHTML}}