|
|
@ -29,7 +29,7 @@ |
|
|
|
window.config = { |
|
|
|
window.config = { |
|
|
|
AppVer: '{{AppVer}}', |
|
|
|
AppVer: '{{AppVer}}', |
|
|
|
AppSubUrl: '{{AppSubUrl}}', |
|
|
|
AppSubUrl: '{{AppSubUrl}}', |
|
|
|
StaticUrlPrefix: '{{StaticUrlPrefix}}', |
|
|
|
AssetUrlPrefix: '{{AssetUrlPrefix}}', |
|
|
|
UseServiceWorker: {{UseServiceWorker}}, |
|
|
|
UseServiceWorker: {{UseServiceWorker}}, |
|
|
|
csrf: '{{.CsrfToken}}', |
|
|
|
csrf: '{{.CsrfToken}}', |
|
|
|
HighlightJS: {{if .RequireHighlightJS}}true{{else}}false{{end}}, |
|
|
|
HighlightJS: {{if .RequireHighlightJS}}true{{else}}false{{end}}, |
|
|
@ -61,12 +61,12 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<link rel="icon" href="{{StaticUrlPrefix}}/img/logo.svg" type="image/svg+xml"> |
|
|
|
<link rel="icon" href="{{AssetUrlPrefix}}/img/logo.svg" type="image/svg+xml"> |
|
|
|
<link rel="alternate icon" href="{{StaticUrlPrefix}}/img/favicon.png" type="image/png"> |
|
|
|
<link rel="alternate icon" href="{{AssetUrlPrefix}}/img/favicon.png" type="image/png"> |
|
|
|
{{if .RequireSimpleMDE}} |
|
|
|
{{if .RequireSimpleMDE}} |
|
|
|
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/easymde.css?v={{MD5 AppVer}}"> |
|
|
|
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/easymde.css?v={{MD5 AppVer}}"> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}"> |
|
|
|
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/index.css?v={{MD5 AppVer}}"> |
|
|
|
<noscript> |
|
|
|
<noscript> |
|
|
|
<style> |
|
|
|
<style> |
|
|
|
.dropdown:hover > .menu { display: block; } |
|
|
|
.dropdown:hover > .menu { display: block; } |
|
|
@ -105,17 +105,17 @@ |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
<meta property="og:title" content="{{AppName}}"> |
|
|
|
<meta property="og:title" content="{{AppName}}"> |
|
|
|
<meta property="og:type" content="website" /> |
|
|
|
<meta property="og:type" content="website" /> |
|
|
|
<meta property="og:image" content="{{StaticUrlPrefix}}/img/logo.png" /> |
|
|
|
<meta property="og:image" content="{{AssetUrlPrefix}}/img/logo.png" /> |
|
|
|
<meta property="og:url" content="{{AppUrl}}" /> |
|
|
|
<meta property="og:url" content="{{AppUrl}}" /> |
|
|
|
<meta property="og:description" content="{{MetaDescription}}"> |
|
|
|
<meta property="og:description" content="{{MetaDescription}}"> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<meta property="og:site_name" content="{{AppName}}" /> |
|
|
|
<meta property="og:site_name" content="{{AppName}}" /> |
|
|
|
{{if .IsSigned }} |
|
|
|
{{if .IsSigned }} |
|
|
|
{{ if ne .SignedUser.Theme "gitea" }} |
|
|
|
{{ if ne .SignedUser.Theme "gitea" }} |
|
|
|
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/theme-{{.SignedUser.Theme}}.css?v={{MD5 AppVer}}"> |
|
|
|
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/theme-{{.SignedUser.Theme}}.css?v={{MD5 AppVer}}"> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{else if ne DefaultTheme "gitea"}} |
|
|
|
{{else if ne DefaultTheme "gitea"}} |
|
|
|
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/theme-{{DefaultTheme}}.css?v={{MD5 AppVer}}"> |
|
|
|
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/theme-{{DefaultTheme}}.css?v={{MD5 AppVer}}"> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{template "custom/header" .}} |
|
|
|
{{template "custom/header" .}} |
|
|
|
</head> |
|
|
|
</head> |
|
|
|