diff --git a/config.toml b/config.toml index 8c2d70a..79d94ee 100644 --- a/config.toml +++ b/config.toml @@ -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 diff --git a/content/index.md b/content/index.en-us.md similarity index 100% rename from content/index.md rename to content/index.en-us.md diff --git a/content/index.zh-cn.md b/content/index.zh-cn.md new file mode 100644 index 0000000..03c8a98 --- /dev/null +++ b/content/index.zh-cn.md @@ -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. diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 1b9ce25..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ partial "header.html" . }} -{{ partial "navbar.html" . }} - -
-
-
- {{ range .Site.Pages }} - {{ .Content }} - {{ end }} -
-
-
- -{{ partial "footer.html" . }}