51 lines
1.8 KiB
HTML
51 lines
1.8 KiB
HTML
{{ define "header" }}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<title>{{ if .CurrentPage }}static | {{ .CurrentPage }}{{ else }}static{{ end }}</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
|
|
<body class="dynamic-bg">
|
|
|
|
<!-- Panel -->
|
|
<nav class="navbar navbar-expand-lg sticky-top navbar-dark dynamic-panel mb-2 shadow">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="/">{{ if .CurrentPage }}static | {{ .CurrentPage }}{{ else }}static{{ end }}</a>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
<div class="nav-item">
|
|
<a class="nav-link"
|
|
href="#"
|
|
role="button">
|
|
feed
|
|
</a>
|
|
</div>
|
|
<div class="nav-item">
|
|
<a class="nav-link"
|
|
href="/forum"
|
|
role="button">
|
|
forum
|
|
</a>
|
|
</div>
|
|
<div class="nav-item">
|
|
<a class="nav-link"
|
|
href="#"
|
|
role="button">
|
|
new
|
|
</a>
|
|
</div>
|
|
</ul>
|
|
<form method="get" action="/find" class="d-flex">
|
|
<input
|
|
class="form-control me-2 bg-dark text-white-50 border-0"
|
|
type="search"
|
|
placeholder='search query'
|
|
aria-label="Search"
|
|
name="query">
|
|
<button class="btn btn-outline-light" type="submit">Search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
{{ end }}
|