Fixed localization

This commit is contained in:
Thomas Boerger 2016-12-09 15:06:54 +01:00
parent b8d0aa0d5b
commit 0c85840d29
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6
4 changed files with 22 additions and 21 deletions

View File

@ -1,4 +1,4 @@
baseurl = "/"
baseurl = "https://gitea.io/"
languageCode = "en-us"
title = "Gitea"
theme = "gitea"
@ -6,7 +6,8 @@ disqusShortname = "gitea"
disableRSS = false
disableSitemap = false
defaultContentLanguage = "en"
defaultContentLanguage = "en-us"
defaultContentLanguageInSubdir = true
[permalinks]
post = "/:year/:month/:title/"
@ -18,8 +19,8 @@ defaultContentLanguage = "en"
Website = "https://gitea.io"
Toplink = "website"
# [languages]
# [languages.en]
# weight = 0
# [languages.de]
# weight = 1
[languages]
[languages.en-us]
weight = 0
[languages.zh-cn]
weight = 1

14
content/index.zh-cn.md Normal file
View File

@ -0,0 +1,14 @@
---
date: "2016-11-08T16:00:00+02:00"
title: "欢迎"
weight: 10
toc: false
draft: false
type: "default"
---
# Gitea - Git with a cup of tea
Gitea is a community managed fork of [Gogs](http://gogs.io), lightweight code hosting solution written in [Go](https://golang.org/) and published under the [MIT](https://github.com/gogits/gogs/blob/master/LICENSE) license. The code of Gitea is currently hosted on [GitHub](https://github.com/go-gitea/).
At the time of writing, there are no official Gitea release yet, but we're working hard to get to 1.0.0 in a way that would allow seamless upgrades of existing Gogs deploys.

View File

@ -1,14 +0,0 @@
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<div class="container content">
<div class="row">
<div class="col-xs-12">
{{ range .Site.Pages }}
{{ .Content }}
{{ end }}
</div>
</div>
</div>
{{ partial "footer.html" . }}