|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
6 | | - <title>{{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} </title> |
| 6 | + <title>{{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}</title> |
7 | 7 | <link rel="manifest" href="data:{{.ManifestData}}"/> |
8 | 8 | <meta name="theme-color" content="{{ThemeColorMetaTag}}"> |
9 | 9 | <meta name="default-theme" content="{{DefaultTheme}}" /> |
10 | 10 | <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}" /> |
11 | 11 | <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}" /> |
12 | 12 | <meta name="keywords" content="{{MetaKeywords}}"> |
13 | 13 | <meta name="referrer" content="no-referrer" /> |
14 | | - <meta name="_csrf" content="{{.CsrfToken}}" /> |
15 | 14 | {{if .GoGetImport}} |
16 | 15 | <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}"> |
17 | 16 | <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}"> |
18 | 17 | {{end}} |
19 | 18 | <script> |
20 | 19 | <!-- /* eslint-disable */ --> |
21 | 20 | window.config = { |
22 | | - AppVer: '{{AppVer}}', |
23 | | - AppSubUrl: '{{AppSubUrl}}', |
24 | | - AssetUrlPrefix: '{{AssetUrlPrefix}}', |
25 | | - IsProd: {{.IsProd}}, |
26 | | - CustomEmojis: {{CustomEmojis}}, |
27 | | - UseServiceWorker: {{UseServiceWorker}}, |
28 | | - csrf: '{{.CsrfToken}}', |
29 | | - pageData: {{ .PageData }}, |
30 | | - HighlightJS: {{if .RequireHighlightJS}}true{{else}}false{{end}}, |
31 | | - SimpleMDE: {{if .RequireSimpleMDE}}true{{else}}false{{end}}, |
32 | | - Tribute: {{if .RequireTribute}}true{{else}}false{{end}}, |
33 | | - NotificationSettings: { |
34 | | - MinTimeout: {{NotificationSettings.MinTimeout}}, |
35 | | - TimeoutStep: {{NotificationSettings.TimeoutStep}}, |
36 | | - MaxTimeout: {{NotificationSettings.MaxTimeout}}, |
37 | | - EventSourceUpdateTime: {{NotificationSettings.EventSourceUpdateTime}}, |
38 | | - }, |
39 | | - EnableTimetracking: {{if EnableTimetracking}}true{{else}}false{{end}}, |
40 | | - PageIsProjects: {{if .PageIsProjects }}true{{else}}false{{end}}, |
| 21 | + appVer: '{{AppVer}}', |
| 22 | + appSubUrl: '{{AppSubUrl}}', |
| 23 | + assetUrlPrefix: '{{AssetUrlPrefix}}', |
| 24 | + runModeIsProd: {{.RunModeIsProd}}, |
| 25 | + customEmojis: {{CustomEmojis}}, |
| 26 | + useServiceWorker: {{UseServiceWorker}}, |
| 27 | + csrfToken: '{{.CsrfToken}}', |
| 28 | + pageData: {{.PageData}}, |
| 29 | + requireTribute: {{.RequireTribute}}, |
| 30 | + notificationSettings: {{NotificationSettings}}, {{/*a map provided by NewFuncMap in helper.go*/}} |
| 31 | + enableTimeTracking: {{EnableTimetracking}}, |
41 | 32 | {{if .RequireTribute}} |
42 | 33 | tributeValues: Array.from(new Map([ |
43 | 34 | {{ range .Participants }} |
|
54 | 45 | {{ end }} |
55 | 46 | ]).values()), |
56 | 47 | {{end}} |
57 | | - MermaidMaxSourceCharacters: {{MermaidMaxSourceCharacters}}, |
| 48 | + mermaidMaxSourceCharacters: {{MermaidMaxSourceCharacters}}, |
58 | 49 | }; |
59 | 50 | </script> |
60 | 51 | <link rel="icon" href="{{AssetUrlPrefix}}/img/logo.svg" type="image/svg+xml"> |
|
0 commit comments