|
4 | 4 | <meta charset="utf-8">
|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
6 | 6 | <title>{{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}</title>
|
7 |
| - <link rel="manifest" href="data:{{.ManifestData}}"/> |
| 7 | + <link rel="manifest" href="data:{{.ManifestData}}"> |
8 | 8 | <meta name="theme-color" content="{{ThemeColorMetaTag}}">
|
9 |
| - <meta name="default-theme" content="{{DefaultTheme}}" /> |
10 |
| - <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}" /> |
11 |
| - <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}" /> |
| 9 | + <meta name="default-theme" content="{{DefaultTheme}}"> |
| 10 | + <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}"> |
| 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 |
| - <meta name="referrer" content="no-referrer" /> |
| 13 | + <meta name="referrer" content="no-referrer"> |
14 | 14 | {{if .GoGetImport}}
|
15 | 15 | <meta name="go-import" content="{{.GoGetImport}} git {{.RepoCloneLink.HTTPS}}">
|
16 | 16 | <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
|
|
22 | 22 | <link rel="icon" href="{{AssetUrlPrefix}}/img/logo.svg" type="image/svg+xml">
|
23 | 23 | <link rel="alternate icon" href="{{AssetUrlPrefix}}/img/favicon.png" type="image/png">
|
24 | 24 | <link rel="stylesheet" href="{{AssetUrlPrefix}}/css/index.css?v={{MD5 AppVer}}">
|
25 |
| - |
26 | 25 | {{template "base/head_script" .}}
|
27 |
| - |
28 | 26 | <noscript>
|
29 | 27 | <style>
|
30 | 28 | .dropdown:hover > .menu { display: block; }
|
31 | 29 | .ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
|
32 | 30 | </style>
|
33 | 31 | </noscript>
|
34 | 32 | {{if .PageIsUserProfile}}
|
35 |
| - <meta property="og:title" content="{{.Owner.DisplayName}}" /> |
36 |
| - <meta property="og:type" content="profile" /> |
37 |
| - <meta property="og:image" content="{{.Owner.AvatarLink}}" /> |
38 |
| - <meta property="og:url" content="{{.Owner.HTMLURL}}" /> |
| 33 | + <meta property="og:title" content="{{.Owner.DisplayName}}"> |
| 34 | + <meta property="og:type" content="profile"> |
| 35 | + <meta property="og:image" content="{{.Owner.AvatarLink}}"> |
| 36 | + <meta property="og:url" content="{{.Owner.HTMLURL}}"> |
39 | 37 | {{if .Owner.Description}}
|
40 | 38 | <meta property="og:description" content="{{.Owner.Description}}">
|
41 | 39 | {{end}}
|
42 | 40 | {{else if .Repository}}
|
43 | 41 | {{if .Issue}}
|
44 |
| - <meta property="og:title" content="{{.Issue.Title}}" /> |
45 |
| - <meta property="og:url" content="{{.Issue.HTMLURL}}" /> |
| 42 | + <meta property="og:title" content="{{.Issue.Title}}"> |
| 43 | + <meta property="og:url" content="{{.Issue.HTMLURL}}"> |
46 | 44 | {{if .Issue.Content}}
|
47 |
| - <meta property="og:description" content="{{.Issue.Content}}" /> |
| 45 | + <meta property="og:description" content="{{.Issue.Content}}"> |
48 | 46 | {{end}}
|
49 | 47 | {{else}}
|
50 |
| - <meta property="og:title" content="{{.Repository.Name}}" /> |
51 |
| - <meta property="og:url" content="{{.Repository.HTMLURL}}" /> |
| 48 | + <meta property="og:title" content="{{.Repository.Name}}"> |
| 49 | + <meta property="og:url" content="{{.Repository.HTMLURL}}"> |
52 | 50 | {{if .Repository.Description}}
|
53 |
| - <meta property="og:description" content="{{.Repository.Description}}" /> |
| 51 | + <meta property="og:description" content="{{.Repository.Description}}"> |
54 | 52 | {{end}}
|
55 | 53 | {{end}}
|
56 |
| - <meta property="og:type" content="object" /> |
| 54 | + <meta property="og:type" content="object"> |
57 | 55 | {{if .Repository.AvatarLink}}
|
58 |
| - <meta property="og:image" content="{{.Repository.AvatarLink}}" /> |
| 56 | + <meta property="og:image" content="{{.Repository.AvatarLink}}"> |
59 | 57 | {{else}}
|
60 |
| - <meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" /> |
| 58 | + <meta property="og:image" content="{{.Repository.Owner.AvatarLink}}"> |
61 | 59 | {{end}}
|
62 | 60 | {{else}}
|
63 | 61 | <meta property="og:title" content="{{AppName}}">
|
64 |
| - <meta property="og:type" content="website" /> |
65 |
| - <meta property="og:image" content="{{AssetUrlPrefix}}/img/logo.png" /> |
66 |
| - <meta property="og:url" content="{{AppUrl}}" /> |
| 62 | + <meta property="og:type" content="website"> |
| 63 | + <meta property="og:image" content="{{AssetUrlPrefix}}/img/logo.png"> |
| 64 | + <meta property="og:url" content="{{AppUrl}}"> |
67 | 65 | <meta property="og:description" content="{{MetaDescription}}">
|
68 | 66 | {{end}}
|
69 |
| -<meta property="og:site_name" content="{{AppName}}" /> |
| 67 | +<meta property="og:site_name" content="{{AppName}}"> |
70 | 68 | {{if .IsSigned }}
|
71 | 69 | {{ if ne .SignedUser.Theme "gitea" }}
|
72 | 70 | <link rel="stylesheet" href="{{AssetUrlPrefix}}/css/theme-{{.SignedUser.Theme | PathEscape}}.css?v={{MD5 AppVer}}">
|
|
0 commit comments