From c2d029e753110752f4ddc565541a105a8e3462b7 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 1 Dec 2016 17:39:42 +0100 Subject: [PATCH] Started to add real content --- config.toml | 15 +++++++++- content/index.md | 9 ------ content/post/welcome-to-gitea.md | 44 ---------------------------- content/welcome-to-gitea.md | 22 ++++++++++++++ layouts/index.html | 50 ++++++++++++++++++++++++++++++++ 5 files changed, 86 insertions(+), 54 deletions(-) delete mode 100644 content/index.md delete mode 100644 content/post/welcome-to-gitea.md create mode 100644 content/welcome-to-gitea.md create mode 100644 layouts/index.html diff --git a/config.toml b/config.toml index c54591b..7ecec8a 100644 --- a/config.toml +++ b/config.toml @@ -1,11 +1,24 @@ baseurl = "/" languageCode = "en-us" -title = "Blog - Gitea" +title = "Blog" theme = "gitea" disableRSS = false disableSitemap = false +defaultContentLanguage = "en" + +[permalinks] + post = "/:year/:month/:title/" + page = "/:slug/" + [params] Description = "Git with a cup of tea" Author = "The Gitea Authors" Website = "https://blog.gitea.io" + Toplink = "blog" + +# [languages] +# [languages.en] +# weight = 0 +# [languages.de] +# weight = 1 diff --git a/content/index.md b/content/index.md deleted file mode 100644 index 03a0dcd..0000000 --- a/content/index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -date: "2016-11-08T16:00:00+02:00" -draft: false -title: "Blog" -weight: 10 -type: "index" ---- - -# Blog diff --git a/content/post/welcome-to-gitea.md b/content/post/welcome-to-gitea.md deleted file mode 100644 index 5c2d68d..0000000 --- a/content/post/welcome-to-gitea.md +++ /dev/null @@ -1,44 +0,0 @@ -+++ -date = "2016-11-21T11:00:00+02:00" -title = "Welcome to Gitea" -draft = true - -+++ - -Gitea is a community fork of the popular self-hosted Git service Gogs. - -We're a growing group of former Gogs users and contributors who found -the single-maintainer management model of Gogs frustrating and thus -decided to make an effort to build a more open and faster development -model. - -This happened not before trying to convince @Unknwon about giving -write permissions to more people, among the community. He rightly -considered Gogs his own creature and didn't want to let it grow -outside of him, thus a fork was necessary in order to set that -code effectively free. - -As Kahlil Gibran wrote about children: - - Your children are not your children. - They are the sons and daughters of Life's longing for itself. - They come through you but not from you, - And though they are with you yet they belong not to you. - -Gitea has 3 owners which are elected yearly and an open number -of maintainers who decide with a simple voting model which -contributions get accepted and who will play the owner role. -Anyone with at least 4 contributions accepted can apply to become -a maintainer. - -In the first 3 weeks from the fork date (~Nov 1st) Gitea got -94 pull requests merged and 23 issues closed. Among management -issues and cleanups, 21 bugs were closed (an average of a bug a day). -Anoher 23 PR are pending merges, many of which are just waiting -for 1.0.0 to be released as new features will start appearing -in 1.1.0. - -We invite everyone to join the effort and help continue building -the next generation of self-hosted Git service. - -Gitea: git with a cup of tea - http://gitea.io diff --git a/content/welcome-to-gitea.md b/content/welcome-to-gitea.md new file mode 100644 index 0000000..bc0e330 --- /dev/null +++ b/content/welcome-to-gitea.md @@ -0,0 +1,22 @@ +--- +date: "2016-11-21T11:00:00+02:00" +author: "strk" +title: "Welcome to Gitea" +tags: ["announcement"] +draft: false +type: "post" +--- + +Gitea is a community fork of the popular self-hosted Git service Gogs. We're a growing group of former Gogs users and contributors who found the single-maintainer management model of Gogs frustrating and thus decided to make an effort to build a more open and faster development model. + +This happened not before trying to convince @Unknwon about giving write permissions to more people, among the community. He rightly considered Gogs his own creature and didn't want to let it grow outside of him, thus a fork was necessary in order to set that code effectively free. + +As Kahlil Gibran wrote about children: + +> Your children are not your children. They are the sons and daughters of Life's longing for itself. They come through you but not from you, and though they are with you yet they belong not to you. + +Gitea has 3 owners which are elected yearly and an open number of maintainers who decide with a simple voting model which contributions get accepted and who will play the owner role. Anyone with at least 4 contributions accepted can apply to become a maintainer. + +In the first 3 weeks from the fork date (~Nov 1st) Gitea got 94 pull requests merged and 23 issues closed. Among management issues and cleanups, 21 bugs were closed (an average of a bug a day). Anoher 23 PR are pending merges, many of which are just waiting for 1.0.0 to be released as new features will start appearing in 1.1.0. + +We invite everyone to join the effort and help continue building the next generation of self-hosted Git service. diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..7ddb981 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,50 @@ +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} + +
+
+
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }} + + {{ end }} + + {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} +
+ {{ if and (.Paginator.HasPrev) (.Paginator.HasNext) }} + {{ i18n "page_prev" }} + {{ i18n "page_next" }} + {{ end }} + {{ if and (.Paginator.HasPrev) (not .Paginator.HasNext) }} + {{ i18n "page_prev" }} + {{ i18n "page_next" }} + {{ end }} + {{ if and (not .Paginator.HasPrev) (.Paginator.HasNext) }} + {{ i18n "page_prev" }} + {{ i18n "page_next" }} + {{ end }} +
+ {{ end }} +
+
+
+ +{{ partial "footer.html" . }}