gitssg/templates/file.html.tmpl

44 lines
1.5 KiB
Cheetah
Raw Permalink Normal View History

2024-06-29 23:25:22 +01:00
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{.filename}} - {{.repoInfo.Name}} - {{.repoInfo.Description}}</title>
<link rel="icon" type="image/png" href="{{.relpath}}favicon.png" />
<link rel="alternate" type="application/atom+xml" title="bag Atom Feed" href="{{.relpath}}atom.xml" />
<link rel="alternate" type="application/atom+xml" title="bag Atom Feed (tags)" href="{{.relpath}}tags.xml" />
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
2024-06-29 23:25:22 +01:00
</head>
<body>
<table>
<tr>
<td><a href="{{.relpath}}../"><img src="{{.relpath}}logo.png" alt="" width="32" height="32" /></a></td>
2024-06-29 23:25:22 +01:00
<td><h1>{{.repoInfo.Name}}</h1><span class="desc">{{.repoInfo.Description}}</span></td>
</tr>
<tr class="url">
<td></td>
<td>
{{if ne .repoInfo.Url ""}}
git clone <a href="{{.repoInfo.Url}}">{{.repoInfo.Url}}</a>
{{end}}
</td>
</tr>
<tr>
<td></td>
<td>
{{menu .repoInfo .relpath}}
</td>
2024-06-29 23:25:22 +01:00
</tr>
</table>
<hr/>
<div id="content">
<p> {{.filename}} ({{.filesize}}B)</p><hr/><pre id="blob">
{{- range $i, $line := .filelines}}
{{- $index := inc $i}}
<a href="#l{{$index}}" class="line" id="l{{$index}}">{{printf "%7d" $index}}</a> {{$line}}
{{- end}}
</pre>
</div>
</body>
</html>