master
 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    {{ if .InlineStyles }}
 9    <style>{{ LayoutCSSInline .Dark }}</style>
10    {{ else }}
11    <link rel="stylesheet" href="{{ .RootHref }}style.css">
12    {{ end }}
13    {{ template "head" . }}
14</head>
15<body>
16{{ template "svg" . }}
17<div class="menu">
18    <div class="menu-content">
19        {{ if not .IsMultiRepoIndex }}
20        <span class="project-name">
21            {{ if ne .SiteName "" }}
22            <a href="{{ .RootHref }}index.html" class="project-name-site">{{ .SiteName }}</a>
23            <span class="project-name-sep">/</span>
24            {{ end }}
25            <a href="{{ .RepoHref }}index.html" class="project-name-repo">{{ .Name }}</a>
26        </span>
27        <div class="menu-item {{ if eq .Selected "code" }}selected{{ end }}">
28            <a href="{{ .RepoHref }}blob/{{ .CurrentRefDir }}/index.html">
29                <svg aria-hidden="true" width="16" height="16">
30                    <use xlink:href="#code"></use>
31                </svg>
32                Code
33            </a>
34        </div>
35        <div class="menu-item {{ if eq .Selected "branches" }}selected{{ end }}">
36            <a href="{{ .RepoHref }}branches.html">
37                <svg aria-hidden="true" focusable="false" width="16" height="16">
38                    <use xlink:href="#branch"></use>
39                </svg>
40                Branches
41            </a>
42        </div>
43        <div class="menu-item {{ if eq .Selected "tags" }}selected{{ end }}">
44            <a href="{{ .RepoHref }}tags.html">
45                <svg aria-hidden="true" focusable="false" width="16" height="16">
46                    <use xlink:href="#tag"></use>
47                </svg>
48                Tags
49            </a>
50        </div>
51        <div class="menu-item {{ if eq .Selected "commits" }}selected{{ end }}">
52            <a href="{{ .RepoHref }}commits/{{ .CurrentRefDir }}/index.html">
53                <svg aria-hidden="true" focusable="false" width="16" height="16">
54                    <use xlink:href="#commit"></use>
55                </svg>
56                Commits
57            </a>
58        </div>
59        {{ else }}
60        <span class="project-name">
61            <a href="{{ .RootHref }}index.html" class="project-name-site">{{ .SiteName }}</a>
62        </span>
63        {{ end }}
64    </div>
65</div>
66<main>
67    <div class="main-content">
68        {{ template "body" . }}
69    </div>
70</main>
71<footer>
72    Generated by <a href="https://github.com/antonmedv/gitmal">Gitmal</a>
73</footer>
74</body>
75</html>