1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{{ define "file" }} <html> {{ template "head" . }} {{ template "repoheader" . }} <body> {{ template "nav" . }} <main> <div class="file-wrapper"> <div class="line-numbers"> {{- range .linecount }} <a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a> {{- end -}} </div> <div> <span></span> <pre> {{- .content -}} </pre> </div> </main> </body> </html> {{ end }}