1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <nav class="navbar navbar-expand-xl navbar-light bg-light">
- <div class="container-fluid justify-content-between justify-content-xl-start">
- <a class="navbar-brand home" href="/">
- <img src="{{ .Site.Params.logo | relURL }}" alt="{{ .Title }} logo" class="d-none d-lg-block logo">
- <img src="{{ .Site.Params.logo_small | relURL }}" alt="{{ .Title }} logo" class="d-block d-lg-none logo-sm">
- <span class="sr-only">{{ .Title }} - {{ i18n "navHome" }}</span>
- </a>
- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
- aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse w-100" id="navbarSupportedContent">
- <ul class="navbar-nav me-auto mb-2 mb-lg-0 mt-4 mt-lg-0">
- {{ $currentPage := . }}
- {{ range .Site.Menus.main }}
- {{ if .HasChildren }}
- <li class="nav-item dropdown">
- <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown"
- aria-expanded="false">
- {{ .Pre }}
- <span>{{ .Name }}</span>
- </a>
- <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
- {{ range .Children }}
- <li class="{{ if $currentPage.IsMenuCurrent " main" . }}active{{ end }}">
- <a class="dropdown-item" href="{{ .URL }}">{{ .Name }}</a>
- </li>
- {{ end }}
- </ul>
- </li>
- {{ else }}
- <li class="nav-item">
- <a class="nav-link" href="{{ .URL }}">
- {{ .Pre }}
- <span>{{ .Name }}</span>
- </a>
- </li>
- {{ end }}
- {{ end }}
- </ul>
- <ul class="nav navbar-nav navbar-right flex-column flex-xl-row ms-auto mb-3 mb-xl-0">
- <li class="me-2 mb-3 mb-xl-0">
- <button class="language-btn" onclick="toggleLang()">
- 中 / en
- </button>
- </li>
- <li class="me-3 mb-4 mb-xl-0">
- <a href="/virtual-host-solution/" class="solution-link">客製化 AI 主持人報價</a>
- </li>
- <li>
- <a href="https://cloud.choozmo.com/login" target="_blank" class="signin-link">開始製作 AI 主播影片</a>
- </li>
- <!-- <li><a href="https://video.choozmo.com/register.html" class="signup-link">註冊</a></li> -->
- </ul>
- <!-- <ul class="navbar-nav me-auto mb-2 mb-lg-0">
- <li class="nav-item">
- <a class="nav-link active" aria-current="page" href="#">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#">Link</a>
- </li>
- <li class="nav-item dropdown">
- <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
- Dropdown
- </a>
- <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
- <li><a class="dropdown-item" href="#">Action</a></li>
- <li><a class="dropdown-item" href="#">Another action</a></li>
- <li><hr class="dropdown-divider"></li>
- <li><a class="dropdown-item" href="#">Something else here</a></li>
- </ul>
- </li>
- <li class="nav-item">
- <a class="nav-link disabled">Disabled</a>
- </li>
- </ul> -->
- <!-- <form class="d-flex">
- <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
- <button class="btn btn-outline-success" type="submit">Search</button>
- </form> -->
- </div>
- </div>
- </nav>
|