lessmore/templates/common/header.html

51 lines
1.8 KiB
HTML
Raw Normal View History

2021-03-25 18:11:00 +03:00
{{ define "header" }}
<!DOCTYPE html>
<html>
2021-03-30 19:47:25 +03:00
<title>{{ if .CurrentPage }}static | {{ .CurrentPage }}{{ else }}static{{ end }}</title>
2021-03-25 18:11:00 +03:00
<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 -->
2021-03-30 19:47:25 +03:00
<nav class="navbar navbar-expand-lg sticky-top navbar-dark dynamic-panel mb-2 shadow">
2021-03-25 18:11:00 +03:00
<div class="container-fluid">
2021-03-30 19:47:25 +03:00
<a class="navbar-brand" href="/">{{ if .CurrentPage }}static | {{ .CurrentPage }}{{ else }}static{{ end }}</a>
2021-03-25 18:11:00 +03:00
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
2021-03-26 11:11:14 +03:00
<div class="nav-item">
<a class="nav-link"
href="#"
role="button">
feed
2021-03-25 18:11:00 +03:00
</a>
2021-03-26 11:11:14 +03:00
</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>
2021-03-25 18:11:00 +03:00
</ul>
2021-03-30 19:47:25 +03:00
<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">
2021-03-26 11:11:14 +03:00
<button class="btn btn-outline-light" type="submit">Search</button>
2021-03-25 18:11:00 +03:00
</form>
</div>
</div>
</nav>
{{ end }}