gshr
git static host repo -- generates static html for repos
git clone https://git.vogt.world/gshr.git
Log | Files | README.md | LICENSE
← All files
name: template.partials.html
-rw-r--r--
1894
 1{{ define "head" }}
 2<meta charset="utf-8">
 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 4<meta http-equiv="X-UA-Compatible" content="IE=edge">
 5<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 6<link rel="stylesheet" href="{{ .BaseURL }}gshr.css" type="text/css">
 7<meta name="description" content="git static host repo">
 8<title>{{ .SiteName }}</title>
 9{{ end }}
10
11{{ define "metadata" }}
12<div class="metadata">
13  <r-grid columns="12" style="gap: 2px;">
14    <r-cell span="12">
15      <div class="ellipsis">
16        <a href="{{ .HeadData.BaseURL }}">
17          <span>
1819            Back to main page
20          </span>
21        </a>
22      </div>
23    </r-cell>
24    <r-cell span="12" style="padding-top: 12px;">
25      <div class="ellipsis">
26        <div><b>{{ .Name }}</b></div>
27        <div>{{ .Description }}</div>
28      </div>
29    </r-cell>
30    <r-cell span="12">
31      <div class="mono ellipsis">
32        git clone {{ .HeadData.BaseURL }}{{ .Name }}.git
33      </div>
34    </r-cell>
35    {{ if not (eq .AltLink "") }}
36    <r-cell span="12">
37      <div class="ellipsis">
38        alt url: <a href="{{ .AltLink }}">{{ .AltLink }}</a>
39      </div>
40    </r-cell>
41    {{ end }}
42    <r-cell span="12">
43      <div>
44        <a href="{{ .HeadData.BaseURL }}{{ .Name }}/log.html">Log</a>
45        |
46        <a href="{{ .HeadData.BaseURL }}{{ .Name }}/files.html">Files</a>
47        {{ if not (eq .ReadMePath "") }}
48        |
49        <a href="{{ .HeadData.BaseURL }}{{ .Name }}/files/{{ .ReadMePath }}/index.html">
50          {{ .ReadMePath }}
51        </a>
52        {{ end }}
53        {{ if not (eq .LicenseFilePath "") }}
54        |
55        <a href="{{ .HeadData.BaseURL }}{{ .Name }}/files/{{ .LicenseFilePath }}/index.html">
56          {{ .LicenseFilePath }}
57        </a>
58        {{ end }}
59      </div>
60    </r-cell>
61  </r-grid>
62</div>
63{{ end }}