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.index.html
-rw-r--r--
1297
 1<!DOCTYPE html>
 2<html lang="en">
 3
 4<head>
 5  {{ template "head" .HeadData }}
 6</head>
 7
 8<body>
 9  <div class="content">
10    <div class="metadata">
11      <b>{{ .HeadData.SiteName }}</b>
12    </div>
13    <div>
14      <div class="metadata">
15        <r-grid columns="20" style="gap: 2px;">
16          <r-cell span="5">
17            <b>Name</b>
18          </r-cell>
19          <r-cell span="8">
20            <b>Description</b>
21          </r-cell>
22          <r-cell span="7">
23            <b>Git</b>
24          </r-cell>
25
26          {{ range .Repos }}
27          <r-cell span="5">
28            <div class="ellipsis">
29              <a href="{{ $.HeadData.BaseURL }}{{ .Name }}/log.html">
30                {{ .Name }}
31              </a>
32            </div>
33          </r-cell>
34          <r-cell span="8">
35            <div class="ellipsis">{{ .Description }}</div>
36          </r-cell>
37          <r-cell span="7">
38            <div class="ellipsis">
39              <a class="mono" href="{{ .BaseURL }}git/{{ .Name }}.git">
40                {{ .BaseURL }}{{ .Name }}.git
41              </a>
42            </div>
43          </r-cell>
44          {{ end }}
45        </r-grid>
46      </div>
47      <div style="padding-top: 2em">
48        <small><b>Generated:</b> {{ .HeadData.GenTime }}</small>
49      </div>
50    </div>
51  </div>
52</body>
53
54</html>