main
1{{- /*gotype: github.com/antonmedv/gitmal/pkg/templates.LayoutParams*/ -}}
2<!DOCTYPE html>
3<html lang="en">
4<head>
5 <meta charset="UTF-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <title>{{ .Title }}</title>
8 <link rel="stylesheet" href="{{ .RootHref }}assets/{{ index .AssetNames "common.css" }}">
9 {{ template "head" . }}
10</head>
11<body>
12{{ template "svg" . }}
13<div class="menu">
14 <div class="menu-content">
15 <a href="{{ .RootHref }}index.html" class="project-name">{{ .Name }}</a>
16 <div class="menu-item {{ if eq .Selected "code" }}selected{{ end }}">
17 <a href="{{ .RootHref }}blob/{{ .CurrentRefDir }}/index.html">
18 <svg aria-hidden="true" width="16" height="16">
19 <use xlink:href="#code"></use>
20 </svg>
21 Code
22 </a>
23 </div>
24 <div class="menu-item {{ if eq .Selected "branches" }}selected{{ end }}">
25 <a href="{{ .RootHref }}branches.html">
26 <svg aria-hidden="true" focusable="false" width="16" height="16">
27 <use xlink:href="#branch"></use>
28 </svg>
29 Branches
30 </a>
31 </div>
32 <div class="menu-item {{ if eq .Selected "tags" }}selected{{ end }}">
33 <a href="{{ .RootHref }}tags.html">
34 <svg aria-hidden="true" focusable="false" width="16" height="16">
35 <use xlink:href="#tag"></use>
36 </svg>
37 Tags
38 </a>
39 </div>
40 <div class="menu-item {{ if eq .Selected "commits" }}selected{{ end }}">
41 <a href="{{ .RootHref }}commits/{{ .CurrentRefDir }}/index.html">
42 <svg aria-hidden="true" focusable="false" width="16" height="16">
43 <use xlink:href="#commit"></use>
44 </svg>
45 Commits
46 </a>
47 </div>
48 </div>
49</div>
50<main>
51 <div class="main-content">
52 {{ template "body" . }}
53 </div>
54</main>
55<footer>
56 Generated by <a href="https://github.com/antonmedv/gitmal">Gitmal</a>
57</footer>
58</body>
59</html>