go-bouquins/templates/header.html

28 lines
1.2 KiB
HTML
Raw Normal View History

2017-07-30 16:09:27 +00:00
<!DOCTYPE html>
<html lang="fr">
<head>
2017-08-03 17:51:56 +00:00
<title>{{ if .Title }}{{ .Title }} | {{ end }}Bouquins</title>
2017-07-30 16:09:27 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8" />
<link rel="stylesheet" href="/css/bootstrap.min.css">
2017-08-05 09:16:19 +00:00
<link rel="preload" href="/js/vue.js" as="script">
<link rel="prefetch" href="/js/vue.js">
2017-08-06 11:12:59 +00:00
<link rel="preload" href="/js/bouquins.js" as="script">
<link rel="prefetch" href="/js/bouquins.js">
2017-07-30 16:09:27 +00:00
</head>
<body>
<nav class="navbar navbar-inverse" id="nav">
<div class="container">
<ul class="nav navbar-nav">
2017-08-06 14:05:58 +00:00
<li{{ if ne .Page "search" }}{{ if (ne .Page "about") }} class="active"{{ end }}{{ end }}><a href="/">Accueil</a></li>
<li{{ if eq .Page "search" }} class="active"{{ end }}><a href="/search/">Recherche</a></li>
<li{{ if eq .Page "about" }} class="active"{{ end }}><a href="/about/">A propos</a></li>
2017-07-30 16:09:27 +00:00
</ul>
2017-08-06 13:41:58 +00:00
<form class="navbar-form navbar-right" role="search" method="get" action="/search/">
2017-07-30 16:09:27 +00:00
<div class="form-group">
<input name="q" type="text" class="form-control" placeholder="Recherche">
</div>
</form>
</div>
</nav>