lessmore/templates/common/header.html

61 lines
1.9 KiB
HTML
Raw Normal View History

2021-03-25 18:11:00 +03:00
{{ define "header" }}
<!DOCTYPE html>
<html>
2021-04-02 17:11:12 +03:00
<head>
<title>{{ if .CurrentPage }}static | {{ .CurrentPage }}{{ else }}static{{ end }}</title>
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<link rel="icon" type="image/png" href="/static/images/favicon.png">
</head>
2021-03-25 18:11:00 +03:00
<body class="dynamic-bg">
<!-- Panel -->
2021-04-02 17:11:12 +03:00
<nav class="navbar navbar-expand-sm sticky-top navbar-dark dynamic-panel mb-2 shadow lg">
2021-03-25 18:11:00 +03:00
<div class="container-fluid">
2021-04-02 17:11:12 +03:00
<span class="navbar-brand">{{ if .CurrentPage }}static | {{ .CurrentPage }}{{ else }}static{{ end }}</span>
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"
2021-04-02 17:11:12 +03:00
href="/"
2021-03-26 11:11:14 +03:00
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"
2021-04-02 17:11:12 +03:00
href="/forum/page/1"
2021-03-26 11:11:14 +03:00
role="button">
2021-04-02 17:11:12 +03:00
threads
2021-03-26 11:11:14 +03:00
</a>
</div>
<div class="nav-item">
<a class="nav-link"
href="#"
role="button">
new
</a>
</div>
2021-04-02 18:03:28 +03:00
<div class="nav-item">
<a class="nav-link"
href="/docs/formatting"
role="button">
doc
</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
2021-04-02 17:11:12 +03:00
class="form-control me-2 base2 border-0"
2021-03-30 19:47:25 +03:00
type="search"
placeholder='search query'
aria-label="Search"
name="query">
2021-04-02 17:11:12 +03:00
<button class="btn text-white-50" type="submit">Search</button>
2021-03-25 18:11:00 +03:00
</form>
</div>
</div>
</nav>
{{ end }}