aboutsummaryrefslogtreecommitdiffstats
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-rw-r--r--template.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/template.go b/template.go
index 7aee61a..54aa53a 100644
--- a/template.go
+++ b/template.go
@@ -15,6 +15,13 @@ var tpltext = `<!doctype html>
15 src: url('{{ .Assets.FontW2 }}') format('woff2'), 15 src: url('{{ .Assets.FontW2 }}') format('woff2'),
16 url('{{ .Assets.FontW }}') format('woff'); 16 url('{{ .Assets.FontW }}') format('woff');
17 } 17 }
18 @font-face {
19 font-family: 'Iosevka Aile';
20 font-style: normal;
21 font-weight: normal;
22 src: url('{{ .Assets.PropFontW2 }}') format('woff2'),
23 url('{{ .Assets.PropFontW }}') format('woff');
24 }
18 </style> 25 </style>
19 </head> 26 </head>
20 <body class="{{ if not .Lines }}is-plain{{ end }}"> 27 <body class="{{ if not .Lines }}is-plain{{ end }}">
@@ -63,7 +70,7 @@ var tpltext = `<!doctype html>
63 </div> 70 </div>
64 </header> 71 </header>
65 <main class="wrap"> 72 <main class="wrap">
66 <pre class="content{{ if .Lines }} content--has-type-annotations{{ end }}"> 73 <pre class="content content--has-monospace-font{{ if .Lines }} content--has-type-annotations{{ end }}">
67 {{- if .Lines -}} 74 {{- if .Lines -}}
68 {{- $content := "" -}} 75 {{- $content := "" -}}
69 {{- range .Lines -}} 76 {{- range .Lines -}}
@@ -92,6 +99,10 @@ var tpltext = `<!doctype html>
92 <strong class="setting__label">Wrap wide content</strong> 99 <strong class="setting__label">Wrap wide content</strong>
93 <button class="setting__value">[N/A]</button> 100 <button class="setting__value">[N/A]</button>
94 </div> 101 </div>
102 <div class="setting setting--monospace-font">
103 <strong class="setting__label">Monospace font</strong>
104 <button class="setting__value">[N/A]</button>
105 </div>
95 <div class="setting setting--image-previews"> 106 <div class="setting setting--image-previews">
96 <strong class="setting__label">Image thumbnails</strong> 107 <strong class="setting__label">Image thumbnails</strong>
97 <button class="setting__value">[N/A]</button> 108 <button class="setting__value">[N/A]</button>