You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

head.tmpl 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html lang="{{ctx.Locale.Lang}}" class="theme-{{if .SignedUser.Theme}}{{.SignedUser.Theme}}{{else}}{{DefaultTheme}}{{end}}">
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <title>{{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}}{{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}</title>
  6. {{if .ManifestData}}<link rel="manifest" href="data:{{.ManifestData}}">{{end}}
  7. <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}">
  8. <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}">
  9. <meta name="keywords" content="{{MetaKeywords}}">
  10. <meta name="referrer" content="no-referrer">
  11. {{if .GoGetImport}}
  12. <meta name="go-import" content="{{.GoGetImport}} git {{.RepoCloneLink.HTTPS}}">
  13. <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
  14. {{end}}
  15. {{if and .EnableFeed .FeedURL}}
  16. <link rel="alternate" type="application/atom+xml" title="" href="{{.FeedURL}}.atom">
  17. <link rel="alternate" type="application/rss+xml" title="" href="{{.FeedURL}}.rss">
  18. {{end}}
  19. <link rel="icon" href="{{AssetUrlPrefix}}/img/favicon.svg" type="image/svg+xml">
  20. <link rel="alternate icon" href="{{AssetUrlPrefix}}/img/favicon.png" type="image/png">
  21. {{template "base/head_script" .}}
  22. <noscript>
  23. <style>
  24. .dropdown:hover > .menu { display: block; }
  25. .ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
  26. </style>
  27. </noscript>
  28. {{template "base/head_opengraph" .}}
  29. {{template "base/head_style" .}}
  30. {{template "custom/header" .}}
  31. </head>
  32. <body>
  33. {{ctx.DataRaceCheck $.Context}}
  34. {{template "custom/body_outer_pre" .}}
  35. <div class="full height">
  36. <noscript>{{ctx.Locale.Tr "enable_javascript"}}</noscript>
  37. {{template "custom/body_inner_pre" .}}
  38. {{if not .PageIsInstall}}
  39. {{template "base/head_navbar" .}}
  40. {{end}}
  41. {{if false}}
  42. {{/* to make html structure "likely" complete to prevent IDE warnings */}}
  43. </div>
  44. </body>
  45. </html>
  46. {{end}}