blob: 08f1b8e6501f3959a51a1f874333e39292cca48f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ .Title }} - Gemini proxy</title>
<link rel="stylesheet" href="{{ .Assets.Style }}" />
{{- template "_fonts.html" . -}}
</head>
<body class="{{ if not .Lines }}is-plain{{ end }}">
{{- template "_header.html" . -}}
<main class="wrap">
<pre class="content content--has-monospace-font{{ if .Lines }} content--has-type-annotations{{ end }}">
{{- if .Lines -}}
{{- $content := "" -}}
{{- range .Lines -}}
{{- if ne $content "" -}}
{{- $content = printf "%s\n" $content -}}
{{- end -}}
{{- if .Link -}}
{{- $content = printf "%s%s" $content (printf "<span class=\"type-annotation\">%s </span><a class=\"link link--%s\" href=\"%s\">%s</a>" .Type .Type .Link (.Text | HTMLEscape)) -}}
{{- else -}}
{{- $content = printf "%s%s" $content (printf "<span class=\"type-annotation\"> </span>%s" (.Text | HTMLEscape)) -}}
{{- end -}}
{{- end -}}
{{- $content | safeHtml -}}
{{- else -}}
{{- .RawText -}}
{{- end -}}
</pre>
</main>
{{- template "_modals.html" . -}}
<script src="{{ .Assets.JS }}"></script>
</body>
</html>
|