legit/templates/file.html
2022-12-19 17:52:42 +05:30

26 lines
565 B
HTML

{{ define "file" }}
<html>
{{ template "head" . }}
<title>{{.name }} &mdash; {{ .path }}</title>
{{ template "repoheader" . }}
<body>
{{ template "nav" . }}
<main>
<p>{{ .path }}</p>
<div class="file-wrapper">
<div class="line-numbers">
{{- range .linecount }}
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
{{- end -}}
</div>
<div class="file-content">
<span></span>
<pre>
{{- .content -}}
</pre>
</div>
</main>
</body>
</html>
{{ end }}