ソースを参照

Added Some keywords

Yoginth 7 年 前
コミット
5e623f3d73
2 ファイル変更3 行追加5 行削除
  1. 0 4
      templates/base/head.tmpl
  2. 3 1
      templates/base/meta.tmpl

+ 0 - 4
templates/base/head.tmpl

@@ -5,15 +5,11 @@
 	
 	<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
 	<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com">
-	
 	{{template "base/meta" .}}
-
 	<link rel="icon" href="{{AppURL}}favicon.ico" type="image/x-icon"/>
 	<link rel="fluid-icon" href="{{AppURL}}fluidicon.png" title="{{AppName}}">
 	<link rel="search" type="application/opensearchdescription+xml" href="/search.xml" title="{{AppName}}">
 
-	<meta name="hostname" content="{{AppURL}}">
-	<link rel="canonical" href="{{AppURL}}" />
 	<script>
 	if ('serviceWorker' in navigator) {
 		window.addEventListener('load', function() {

+ 3 - 1
templates/base/meta.tmpl

@@ -3,6 +3,8 @@
 <meta name="_csrf" content="{{.CSRFToken}}" />
 <meta name="_suburl" content="{{AppSubURL}}" />
 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
+<meta name="hostname" content="{{AppURL}}">
+<link rel="canonical" href="{{AppURL}}" />
 
 {{if .PageIsAdmin}}
 {{else if .PageIsUserProfile}}
@@ -62,7 +64,7 @@
 
 <meta name="title" content="{{if .IsLogged}}{{.Title}}{{else}}{{if .Title}}{{.Title}} - {{end}}{{AppName}} | {{.i18n.Tr "app_desc"}}{{end}}">
 <meta name="description" content="{{.i18n.Tr "description"}}">
-<meta name="keywords" content="{{AppName}}">
+<meta name="keywords" content="{{AppName}}, developer, git, vcs">
 
 <meta property="og:url" content="{{AppURL}}" />
 <meta property="og:type" content="website" />