Merge pull request #14 from go-gitea/content

Fixed content and i18n
This commit is contained in:
Thomas Boerger 2016-12-12 14:55:06 +01:00 коммит произвёл GitHub
Родитель 0106560a75 f7cd6f7cf1
Коммит 87442d2c32
13 изменённых файлов: 161 добавлений и 61 удалений

Просмотреть файл

@ -6,6 +6,7 @@ pipeline:
image: webhippie/hugo:latest
pull: true
commands:
- make clean
- make build
checks:

Просмотреть файл

@ -1 +1 @@
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIHBhdGg6IHNyYwoKcGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogd2ViaGlwcGllL2h1Z286bGF0ZXN0CiAgICBwdWxsOiB0cnVlCiAgICBjb21tYW5kczoKICAgICAgLSBtYWtlIGJ1aWxkCgogIGNoZWNrczoKICAgIGltYWdlOiB3ZWJoaXBwaWUvbGlua2NoZWNrZXI6bGF0ZXN0CiAgICBjb21tYW5kczoKICAgICAgLSBsaW5rY2hlY2tlciAtdiBodHRwOi8vbG9jYWxob3N0OjgwODAKCiAgZG9ja2VyOgogICAgaW1hZ2U6IHBsdWdpbnMvZG9ja2VyCiAgICByZXBvOiBnaXRlYS9yZWRpcmVjdHMKICAgIHRhZ3M6IFsgJyR7VEFHfScgXQogICAgd2hlbjoKICAgICAgZXZlbnQ6IHRhZwogICAgICBicmFuY2g6IHJlZnMvdGFncy8qCgogIGRvY2tlcjoKICAgIGltYWdlOiBwbHVnaW5zL2RvY2tlcgogICAgcmVwbzogZ2l0ZWEvcmVkaXJlY3RzCiAgICB0YWdzOiBbICdsYXRlc3QnIF0KICAgIHdoZW46CiAgICAgIGV2ZW50OiBwdXNoCiAgICAgIGJyYW5jaDogbWFzdGVyCgogIGdpdHRlcjoKICAgIGltYWdlOiBwbHVnaW5zL2dpdHRlcgoKc2VydmljZXM6CiAgc2VydmVyOgogICAgaW1hZ2U6IHdlYmhpcHBpZS9jYWRkeTpsYXRlc3QKICAgIGNvbW1hbmQ6IFsvdXNyL3NiaW4vY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просмотреть файл

@ -1,12 +0,0 @@
baseurl = "/"
languageCode = "en-us"
title = "Code - Gitea"
theme = "gitea"
disqusShortname = "gitea"
disableRSS = false
disableSitemap = false
[params]
Description = "Git with a cup of tea"
Author = "The Gitea Authors"
Website = "https://blog.gitea.io"

83
config.yaml Normal file
Просмотреть файл

@ -0,0 +1,83 @@
baseurl: https://code.gitea.io/
languageCode: en-us
title: Code
theme: gitea
disqusShortname: gitea
defaultContentLanguage: en-us
defaultContentLanguageInSubdir: true
enableMissingTranslationPlaceholders: true
permalinks:
post: /:year/:month/:title/
doc: /:slug/
page: /:slug/
default: /:slug/
params:
description: Git with a cup of tea
author: The Gitea Authors
website: https://code.gitea.io
menu:
page:
- name: Website
url: https://gitea.io/en-us/
weight: 10
pre: home
- name: Docs
url: https://docs.gitea.io/en-us/
weight: 20
pre: question
- name: Blog
url: https://blog.gitea.io/
weight: 30
pre: rss
- name: Code
url: /
weight: 40
pre: code
post: active
- name: Downloads
url: https://dl.gitea.io/
weight: 50
pre: download
- name: GitHub
url: https://github.com/go-gitea/
weight: 60
pre: github
# languages:
# en-us:
# weight: 0
# languageName: English
# zh-cn:
# weight: 1
# languageName: 中文(简体)
# menu:
# page:
# - name: 网站
# url: https://gitea.io/zh-cn/
# weight: 10
# pre: home
# - name: 文档
# url: https://docs.gitea.io/zh-cn/
# weight: 20
# pre: question
# - name: 博客
# url: https://blog.gitea.io/
# weight: 30
# pre: rss
# - name: 导入
# url: /
# weight: 40
# pre: code
# post: active
# - name: 下载
# url: https://dl.gitea.io/
# weight: 50
# pre: download
# - name: GitHub
# url: https://github.com/go-gitea/
# weight: 60
# pre: github

Просмотреть файл

@ -1,13 +0,0 @@
---
date: "2016-11-08T16:00:00+02:00"
draft: false
title: "Git"
weight: 30
goimport: code.gitea.io/git git https://github.com/go-gitea/git
gosource: code.gitea.io/git https://github.com/go-gitea/git https://github.com/go-gitea/git/tree/master{/dir} https://github.com/go-gitea/git/blob/master{/dir}/{file}#L{line}
---
# Git - Git access through shell
This is the URL of the import path for the
[Git](http://github.com/go-gitea/git).

Просмотреть файл

@ -1,13 +0,0 @@
---
date: "2016-11-08T16:00:00+02:00"
draft: false
title: "Gitea"
weight: 10
goimport: code.gitea.io/gitea git https://github.com/go-gitea/gitea
gosource: code.gitea.io/gitea https://github.com/go-gitea/gitea https://github.com/go-gitea/gitea/tree/master{/dir} https://github.com/go-gitea/gitea/blob/master{/dir}/{file}#L{line}
---
# Gitea - Git with a cup of tea
This is the URL of the import path for
[Gitea](http://github.com/go-gitea/gitea).

Просмотреть файл

@ -1,9 +0,0 @@
---
date: "2016-11-08T16:00:00+02:00"
draft: false
title: "Code"
weight: 10
type: "index"
---
# Index

11
content/index/index.md Normal file
Просмотреть файл

@ -0,0 +1,11 @@
---
date: "2016-11-08T16:00:00+02:00"
title: "Code"
weight: 0
toc: false
draft: false
---
# Code
We are using custom Go import paths, this is comparable with the functionality delivered via gopkg.in, this gives us the flexibility to change the code hosting at any point in time in the case we want to start dogfooding ourself with hosting Gitea on Gitea.

14
content/page/git.md Normal file
Просмотреть файл

@ -0,0 +1,14 @@
---
date: "2016-11-08T16:00:00+02:00"
title: "Git"
weight: 30
toc: false
draft: false
menu: "sidebar"
goimport: "code.gitea.io/git git https://github.com/go-gitea/git"
gosource: "code.gitea.io/git https://github.com/go-gitea/git https://github.com/go-gitea/git/tree/master{/dir} https://github.com/go-gitea/git/blob/master{/dir}/{file}#L{line}"
---
# Git - Git access through shell
This is the URL of the import path for our [Git module](http://github.com/go-gitea/git).

14
content/page/gitea.md Normal file
Просмотреть файл

@ -0,0 +1,14 @@
---
date: "2016-11-08T16:00:00+02:00"
title: "Gitea"
weight: 10
toc: false
draft: false
menu: "sidebar"
goimport: "code.gitea.io/gitea git https://github.com/go-gitea/gitea"
gosource: "code.gitea.io/gitea https://github.com/go-gitea/gitea https://github.com/go-gitea/gitea/tree/master{/dir} https://github.com/go-gitea/gitea/blob/master{/dir}/{file}#L{line}"
---
# Gitea - Git with a cup of tea
This is the URL of the import path for [Gitea](http://github.com/go-gitea/gitea).

14
content/page/sdk.md Normal file
Просмотреть файл

@ -0,0 +1,14 @@
---
date: "2016-11-08T16:00:00+02:00"
title: "SDK"
weight: 20
toc: false
draft: false
menu: "sidebar"
goimport: "code.gitea.io/sdk git https://github.com/go-gitea/go-sdk"
gosource: "code.gitea.io/sdk https://github.com/go-gitea/go-sdk https://github.com/go-gitea/go-sdk/tree/master{/dir} https://github.com/go-gitea/go-sdk/blob/master{/dir}/{file}#L{line}"
---
# SDK - Go SDK for Gitea
This is the URL of the import path for our [Go SDK](http://github.com/go-gitea/go-sdk).

Просмотреть файл

@ -1,13 +0,0 @@
---
date: "2016-11-08T16:00:00+02:00"
draft: false
title: "Go SDK"
weight: 20
goimport: code.gitea.io/sdk git https://github.com/go-gitea/go-sdk
gosource: code.gitea.io/sdk https://github.com/go-gitea/go-sdk https://github.com/go-gitea/go-sdk/tree/master{/dir} https://github.com/go-gitea/go-sdk/blob/master{/dir}/{file}#L{line}
---
# SDK - Go SDK for Gitea
This is the URL of the import path for the
[Gitea Go SDK](http://github.com/go-gitea/go-sdk).

23
layouts/index.html Normal file
Просмотреть файл

@ -0,0 +1,23 @@
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<div class="container content">
<div class="row">
<div class="col-xs-3">
{{ partial "menu" . }}
</div>
<div class="col-xs-8">
{{ range where .Site.Pages "Type" "index" }}
{{ .Content }}
{{ end }}
{{ if .Site.DisqusShortname }}
<div class="col-xs-12">
{{ partial "disqus.html" . }}
</div>
{{ end }}
</div>
</div>
</div>
{{ partial "footer.html" . }}