summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJonas <cez81@users.noreply.github.com>2017-04-01 03:03:01 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-31 18:03:01 -0700
commit095e1f51556d940a07d9f8580d0d25acf6a39c63 (patch)
tree0f704e7f9bcab17bb20fcb1c769846cbf3ccdc80 /templates
parent6a39250579f240721d5d8b2eca017fa94126dc9d (diff)
downloadgitea-095e1f51556d940a07d9f8580d0d25acf6a39c63.tar.gz
gitea-095e1f51556d940a07d9f8580d0d25acf6a39c63.zip
Support for custom html meta (#1423)
* Support for custom html meta * Changed html meta description default
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index f4b883335e..a80075513d 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -5,9 +5,9 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
<meta name="theme-color" content="{{ThemeColorMetaTag}}">
- <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}Gitea - Git with a cup of tea{{end}}" />
- <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go{{end}}" />
- <meta name="keywords" content="go, git, self-hosted, gitea">
+ <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}" />
+ <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}" />
+ <meta name="keywords" content="{{MetaKeywords}}">
<meta name="referrer" content="no-referrer" />
<meta name="_csrf" content="{{.CsrfToken}}" />
<meta name="_suburl" content="{{AppSubUrl}}" />
@@ -68,7 +68,7 @@
<meta property="og:type" content="website" />
<meta property="og:image" content="{{AppSubUrl}}/img/gitea-lg.png" />
<meta property="og:url" content="{{AppUrl}}" />
- <meta property="og:description" content="Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go">
+ <meta property="og:description" content="{{MetaDescription}}">
{{end}}
</head>
<body>