Skip to content

Commit d26f252

Browse files
committed
use hugo to render public pages
1 parent ccb65fa commit d26f252

File tree

18 files changed

+210
-17
lines changed

18 files changed

+210
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/public

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
default:
2+
hugo new site openpitrix.io
3+

archetypes/default.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: ''
3+
date: ''
4+
---

config.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
baseurl = "./"
2+
languageCode = "en-us"
3+
title = "A minimal Hugo website"
4+
googleAnalytics = ""
5+
disqusShortname = ""
6+
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
7+
preserveTaxonomyNames = true
8+
footnotereturnlinkcontents = ""
9+
10+
[permalinks]
11+
post = "/post/:year/:month/:day/:slug/"
12+
note = "/note/:year/:month/:day/:slug/"
13+
14+
[[menu.main]]
15+
name = "Home"
16+
url = "/"
17+
weight = 1
18+
[[menu.main]]
19+
name = "About"
20+
url = "/about/"
21+
weight = 2
22+
[[menu.main]]
23+
name = "Categories"
24+
url = "/categories/"
25+
weight = 3
26+
[[menu.main]]
27+
name = "Tags"
28+
url = "/tags/"
29+
weight = 4
30+
[[menu.main]]
31+
name = "Subscribe"
32+
url = "/index.xml"
33+
34+
[params]
35+
description = "A website built through Hugo and blogdown."
36+
footer = "© [openpitrix.io](https://openpitrix.io) 2017 | [Github](https://github.com/openpitrix) "

content/_index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Home
3+
---
4+
5+
# OpenPitrix
6+
7+
OpenPitrix is an open platform to package and deploy applications into multiple cloud environments such as QingCloud, AWS, Kubernetes etc. Pitrix _['paitriks]_ means the matrix of PaaS and IaaS which makes it easy to develop, deploy, manage applications including PaaS on various runtime environments, i.e., Pitrix = **P**aaS + **I**aaS + Ma**trix**. It also means a matrix that contains endless (PI - the Greek letter "π") applications.
8+
9+
----
10+
11+
## Motivation
12+
13+
The project originates from [QingCloud AppCenter](https://appcenter.qingcloud.com) which helps developers to create cloud-based enterprise applications in a few days and sell them on the center. In addition, the learning curve of how to [develop such applications](https://appcenter-docs.qingcloud.com/developer-guide/) is extremely low. Usually it takes a couple of hours for a developer to understand the working flow. Since QingCloud AppCenter was launched, many customers and partners have been asking us if it supports IaaS other than QingCloud such as AWS, Vmware. That is where the project comes from.
14+
15+
## Design
16+
17+
Basic idea is to decouple application repository and runtime environment. The runtime environment that an application can run is by matching the labels of runtime environment and the selector of the repository where the application is from. Please check out how to [design the project](docs/design/README.md).
18+
19+
## Contributing to the project
20+
21+
All [members](docs/members.md) of the OpenPitrix community must abide by the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). Only by respecting each other can we develop a productive, collaborative community.
22+
23+
You can then check out how to [setup for development](docs/development.md).

content/about.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: 'About'
3+
---
4+
5+
TODO

index.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

layouts/404.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{ partial "header.html" . }}
2+
3+
404 NOT FOUND
4+
5+
{{ partial "footer.html" . }}

layouts/_default/list.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{ partial "header.html" . }}
2+
3+
{{if not .IsHome }}
4+
<h1>{{ .Title }}</h1>
5+
{{ end }}
6+
7+
{{ .Content }}
8+
9+
<ul>
10+
{{ range (where .Data.Pages "Section" "!=" "") }}
11+
<li>
12+
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
13+
<a href="{{ .URL }}">{{ .Title }}</a>
14+
</li>
15+
{{ end }}
16+
</ul>
17+
18+
{{ partial "footer.html" . }}

layouts/_default/single.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{ partial "header.html" . }}
2+
<div class="article-meta">
3+
<h1><span class="title">{{ .Title }}</span></h1>
4+
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
5+
{{ if .Params.date }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
6+
</div>
7+
8+
<main>
9+
{{ .Content }}
10+
</main>
11+
12+
{{ partial "footer.html" . }}

0 commit comments

Comments
 (0)