Skip to content

Commit 8b29c18

Browse files
committed
add simple blog
1 parent 01166eb commit 8b29c18

19 files changed

+611
-191
lines changed

config.toml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseurl = "./"
1+
baseurl = "/"
22
title = "OpenPitrix"
33
googleAnalytics = ""
44
disqusShortname = ""
@@ -7,6 +7,7 @@ preserveTaxonomyNames = true
77
footnotereturnlinkcontents = ""
88
defaultContentLanguage = "en"
99
defaultContentLanguageInSubdir = true
10+
gitalk = true
1011
copyright = "Openpitrix Technology © 2018"
1112

1213
[languages]
@@ -18,18 +19,22 @@ copyright = "Openpitrix Technology © 2018"
1819
name = "Documents"
1920
url = "/en/#"
2021
weight = 1
22+
# [[languages.en.menu.main]]
23+
# name = "Blog"
24+
# url = "/en/blog"
25+
# weight = 2
2126
[[languages.en.menu.main]]
2227
name = "Features"
2328
url = "/en/#third"
24-
weight = 2
29+
weight = 3
2530
[[languages.en.menu.main]]
2631
name = "Use Cases"
2732
url = "/en/#eighth"
28-
weight = 3
33+
weight = 4
2934
[[languages.en.menu.main]]
3035
name = "About"
3136
url = "/en/#about"
32-
weight = 4
37+
weight = 5
3338

3439
[languages.en.index.first]
3540
title = "Application Management"
@@ -139,8 +144,8 @@ copyright = "Openpitrix Technology © 2018"
139144
title = "About Pitrix itself"
140145
desc = "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 = PaaS + IaaS + Matrix. It also means a matrix that contains endless (PI - the Greek letter “π”) applications."
141146

142-
[permalinks]
143-
post = "/post/:year/:month/:day/:slug/"
144-
note = "/note/:year/:month/:day/:slug/"
147+
[PermaLinks]
148+
blog = "/blog/:year/:month/:filename/"
149+
145150
[params]
146151
description = "A website built through Hugo and blogdown."

content/blog/1.1.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "It's my test demo."
3+
author: "libr"
4+
date: 2018-04-01
5+
gitalk: false
6+
---
7+
8+
## Why Slack?
9+
10+
first of all, Slack is cool.
11+
12+
Slack brings all your team's communication together, giving everyone a shared workspace where conversations are organized and accessible.
13+
14+
Across your team, there's a range of things people need to communicate about. Channels in Slack give everyone a way to organize all those conversations, while making sure the right people are involved at the right time.
15+
16+
Make a channel for a project, a topic, a team, or anything—everyone has a place to work and a transparent view of all that's going on.
17+
18+
You don’t have to go to every meeting to stay informed. Slack builds a searchable archive of your team’s conversations, decisions, and work — made more useful with machine learning — putting knowledge in everyone’s hands.
19+
20+
Slack integrates with nearly every enterprise and productivity product available, and you can also build your own with our open API. Adding apps to Slack keeps your team coordinated and working faster,all within the context to your converstations.
21+
22+
Slack’s growing ecosystem of 3rd party apps helps you integrate routine workflows into your team’s channels - from task management to expense reporting or running a team survey. Connecting these tools with Slack reduces context switching, letting people take action as the conversation moves forward.
23+
24+
especily your team use GitHub for development.It's great tool. just like this:
25+
26+
![](https://a.slack-edge.com/04589/marketing/img/referral/desktop/workflow-ui-1.png)
27+
28+
someone maybe said, Wechat or skype more popular. O, it's terrible for programer communication.if you use wechat, You will never focus to job.you just want to social and talk your old friends,or show your dinner.

content/blog/1.1.zh.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "It's my test demo."
3+
author: "libr"
4+
date: 2018-04-01
5+
gitalk: false
6+
---
7+
8+
## Why Slack?
9+
10+
first of all, Slack is cool.
11+
12+
Slack brings all your team's communication together, giving everyone a shared workspace where conversations are organized and accessible.
13+
14+
Across your team, there's a range of things people need to communicate about. Channels in Slack give everyone a way to organize all those conversations, while making sure the right people are involved at the right time.
15+
16+
Make a channel for a project, a topic, a team, or anything—everyone has a place to work and a transparent view of all that's going on.
17+
18+
You don’t have to go to every meeting to stay informed. Slack builds a searchable archive of your team’s conversations, decisions, and work — made more useful with machine learning — putting knowledge in everyone’s hands.
19+
20+
Slack integrates with nearly every enterprise and productivity product available, and you can also build your own with our open API. Adding apps to Slack keeps your team coordinated and working faster,all within the context to your converstations.
21+
22+
Slack’s growing ecosystem of 3rd party apps helps you integrate routine workflows into your team’s channels - from task management to expense reporting or running a team survey. Connecting these tools with Slack reduces context switching, letting people take action as the conversation moves forward.
23+
24+
especily your team use GitHub for development.It's great tool. just like this:
25+
26+
![](https://a.slack-edge.com/04589/marketing/img/referral/desktop/workflow-ui-1.png)
27+
28+
someone maybe said, Wechat or skype more popular. O, it's terrible for programer communication.if you use wechat, You will never focus to job.you just want to social and talk your old friends,or show your dinner.

content/blog/1.2.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "1.2?"
3+
author: "libr"
4+
date: 2017-07-03
5+
gitalk: true
6+
---
7+
8+
## Why Slack?
9+
10+
first of all, Slack is cool.
11+
12+
Slack brings all your team's communication together, giving everyone a shared workspace where conversations are organized and accessible.
13+
14+
Across your team, there's a range of things people need to communicate about. Channels in Slack give everyone a way to organize all those conversations, while making sure the right people are involved at the right time.
15+
16+
Make a channel for a project, a topic, a team, or anything—everyone has a place to work and a transparent view of all that's going on.
17+
18+
You don’t have to go to every meeting to stay informed. Slack builds a searchable archive of your team’s conversations, decisions, and work — made more useful with machine learning — putting knowledge in everyone’s hands.
19+
20+
Slack integrates with nearly every enterprise and productivity product available, and you can also build your own with our open API. Adding apps to Slack keeps your team coordinated and working faster,all within the context to your converstations.
21+
22+
Slack’s growing ecosystem of 3rd party apps helps you integrate routine workflows into your team’s channels - from task management to expense reporting or running a team survey. Connecting these tools with Slack reduces context switching, letting people take action as the conversation moves forward.
23+
24+
especily your team use GitHub for development.It's great tool. just like this:
25+
26+
![](https://a.slack-edge.com/04589/marketing/img/referral/desktop/workflow-ui-1.png)
27+
28+
someone maybe said, Wechat or skype more popular. O, it's terrible for programer communication.if you use wechat, You will never focus to job.you just want to social and talk your old friends,or show your dinner.

content/blog/1.2.zh.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "It's my test demo."
3+
author: "libr"
4+
date: 2018-04-01
5+
gitalk: false
6+
---
7+
8+
## Why Slack?
9+
10+
first of all, Slack is cool.
11+
12+
Slack brings all your team's communication together, giving everyone a shared workspace where conversations are organized and accessible.
13+
14+
Across your team, there's a range of things people need to communicate about. Channels in Slack give everyone a way to organize all those conversations, while making sure the right people are involved at the right time.
15+
16+
Make a channel for a project, a topic, a team, or anything—everyone has a place to work and a transparent view of all that's going on.
17+
18+
You don’t have to go to every meeting to stay informed. Slack builds a searchable archive of your team’s conversations, decisions, and work — made more useful with machine learning — putting knowledge in everyone’s hands.
19+
20+
Slack integrates with nearly every enterprise and productivity product available, and you can also build your own with our open API. Adding apps to Slack keeps your team coordinated and working faster,all within the context to your converstations.
21+
22+
Slack’s growing ecosystem of 3rd party apps helps you integrate routine workflows into your team’s channels - from task management to expense reporting or running a team survey. Connecting these tools with Slack reduces context switching, letting people take action as the conversation moves forward.
23+
24+
especily your team use GitHub for development.It's great tool. just like this:
25+
26+
![](https://a.slack-edge.com/04589/marketing/img/referral/desktop/workflow-ui-1.png)
27+
28+
someone maybe said, Wechat or skype more popular. O, it's terrible for programer communication.if you use wechat, You will never focus to job.you just want to social and talk your old friends,or show your dinner.

content/blog/1.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "article1? No"
3+
author: "libr"
4+
date: 2018-04-02
5+
gitalk: true
6+
---
7+
8+
## Why Slack?
9+
10+
first of all, Slack is cool.
11+
12+
Slack brings all your team's communication together, giving everyone a shared workspace where conversations are organized and accessible.
13+
14+
Across your team, there's a range of things people need to communicate about. Channels in Slack give everyone a way to organize all those conversations, while making sure the right people are involved at the right time.
15+
16+
Make a channel for a project, a topic, a team, or anything—everyone has a place to work and a transparent view of all that's going on.
17+
18+
You don’t have to go to every meeting to stay informed. Slack builds a searchable archive of your team’s conversations, decisions, and work — made more useful with machine learning — putting knowledge in everyone’s hands.
19+
20+
Slack integrates with nearly every enterprise and productivity product available, and you can also build your own with our open API. Adding apps to Slack keeps your team coordinated and working faster,all within the context to your converstations.
21+
22+
Slack’s growing ecosystem of 3rd party apps helps you integrate routine workflows into your team’s channels - from task management to expense reporting or running a team survey. Connecting these tools with Slack reduces context switching, letting people take action as the conversation moves forward.
23+
24+
especily your team use GitHub for development.It's great tool. just like this:
25+
26+
![](https://a.slack-edge.com/04589/marketing/img/referral/desktop/workflow-ui-1.png)
27+
28+
someone maybe said, Wechat or skype more popular. O, it's terrible for programer communication.if you use wechat, You will never focus to job.you just want to social and talk your old friends,or show your dinner.

content/blog/1.zh.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "It's my test demo."
3+
author: "libr"
4+
date: 2018-04-01
5+
gitalk: false
6+
---
7+
8+
## Why Slack?
9+
10+
first of all, Slack is cool.
11+
12+
Slack brings all your team's communication together, giving everyone a shared workspace where conversations are organized and accessible.
13+
14+
Across your team, there's a range of things people need to communicate about. Channels in Slack give everyone a way to organize all those conversations, while making sure the right people are involved at the right time.
15+
16+
Make a channel for a project, a topic, a team, or anything—everyone has a place to work and a transparent view of all that's going on.
17+
18+
You don’t have to go to every meeting to stay informed. Slack builds a searchable archive of your team’s conversations, decisions, and work — made more useful with machine learning — putting knowledge in everyone’s hands.
19+
20+
Slack integrates with nearly every enterprise and productivity product available, and you can also build your own with our open API. Adding apps to Slack keeps your team coordinated and working faster,all within the context to your converstations.
21+
22+
Slack’s growing ecosystem of 3rd party apps helps you integrate routine workflows into your team’s channels - from task management to expense reporting or running a team survey. Connecting these tools with Slack reduces context switching, letting people take action as the conversation moves forward.
23+
24+
especily your team use GitHub for development.It's great tool. just like this:
25+
26+
![](https://a.slack-edge.com/04589/marketing/img/referral/desktop/workflow-ui-1.png)
27+
28+
someone maybe said, Wechat or skype more popular. O, it's terrible for programer communication.if you use wechat, You will never focus to job.you just want to social and talk your old friends,or show your dinner.

content/blog/_introduce_slack.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: "Why use slack for our daily communications?"
33
author: ""
4-
date: 2017-12-08T12:47:05+08:00
4+
date: 2017-12-08
5+
gitalk: true
56
categories:
67
- 日志
78
- OpenPitrix

content/blog/_introduce_slack.zh.md

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: "Why use slack for our daily communications?"
3+
author: ""
4+
date: 2017-12-08
5+
gitalk: true
6+
categories:
7+
- 日志
8+
- OpenPitrix
9+
tags:
10+
- Markdown
11+
- TeamBuild
12+
- Softskill
13+
- Microservice
14+
---
15+
16+
## Why Slack?
17+
18+
first of all, Slack is cool.
19+
20+
Slack brings all your team's communication together, giving everyone a shared workspace where conversations are organized and accessible.
21+
22+
Across your team, there's a range of things people need to communicate about. Channels in Slack give everyone a way to organize all those conversations, while making sure the right people are involved at the right time.
23+
24+
Make a channel for a project, a topic, a team, or anything—everyone has a place to work and a transparent view of all that's going on.
25+
26+
You don’t have to go to every meeting to stay informed. Slack builds a searchable archive of your team’s conversations, decisions, and work — made more useful with machine learning — putting knowledge in everyone’s hands.
27+
28+
Slack integrates with nearly every enterprise and productivity product available, and you can also build your own with our open API. Adding apps to Slack keeps your team coordinated and working faster,all within the context to your converstations.
29+
30+
Slack’s growing ecosystem of 3rd party apps helps you integrate routine workflows into your team’s channels - from task management to expense reporting or running a team survey. Connecting these tools with Slack reduces context switching, letting people take action as the conversation moves forward.
31+
32+
especily your team use GitHub for development.It's great tool. just like this:
33+
34+
![](https://a.slack-edge.com/04589/marketing/img/referral/desktop/workflow-ui-1.png)
35+
36+
someone maybe said, Wechat or skype more popular. O, it's terrible for programer communication.if you use wechat, You will never focus to job.you just want to social and talk your old friends,or show your dinner.
37+
38+
39+
## How to join [OpenPitrix](http://openpitrix.slack.com) channel?
40+
41+
If you already use slack. welcome.
42+
43+
slack use "workplace" for organization, you want to join channel, you must select workplace. for example:
44+
45+
OpenPitrix have slack workplace - [OpenPitrix workplace](http://openpitrix.slack.com). and than you need enter you e-mail and setting a password. and after that you join workplace.
46+
47+
now you can choose which channel want to join. OpenPitrix have two channel now, one is for general talk .another one for developer—— openptirix-dev. you can choose one or both.
48+
49+
50+
## how to add new app?
51+
52+
Whatever client you use, Linux Mac or web brower. all support add app for workplace. just follow the process.
53+
54+
it's a lot of app. you find [more](https://openpitrix.slack.com/apps) for your personal or team needs.
55+
56+
## enjoy it.
57+
58+
tool just tool, never replace people. So slack is just tool.it can help you.

content/blog/test.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: '123'
3+
date: '2017-12-01'
4+
---
5+
6+
123

layouts/_default/list.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ <h1>{{ .Title }}</h1>
1010
{{ range (where .Data.Pages "Section" "!=" "") }}
1111
<li>
1212
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
13-
<a href="/{{ .URL }}">{{ .Title }}</a>
13+
<a href="{{ .URL }}">{{ .Title }}</a>
1414
</li>
1515
{{ end }}
1616
</ul>
1717

18+
{{ range .Data.Pages }}
19+
{{ . }}
20+
{{ end }}
21+
22+
1823
{{ partial "footer.html" . }}

layouts/_default/single.html

+50-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,54 @@
11
{{ partial "header.html" . }}
22

3-
{{ if not .IsHome }}
4-
<div class="article-meta">
5-
<h1><span class="title">{{ .Title }}</span></h1>
6-
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
7-
{{ if .Params.date }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
8-
</div>
9-
{{ end }}
10-
11-
<main>
12-
{{ .Content }}
13-
</main>
3+
<div class="article clearfix">
4+
<div class="container">
5+
<aside class="sider">
6+
<div class="blog-menu">
7+
<h3>Blog Archive</h3>
8+
<ul>
9+
{{ $currentPage := . }}
10+
{{ range (where .Site.Pages "Type" "blog") }}
11+
{{ range .Pages.GroupByDate "2006" }}
12+
<li class="blog-menu_type {{if eq ($currentPage.Date.Format "2006") .Key }}active{{ end }}">
13+
<span>{{ .Key }}</span>
14+
<ul class="blog-menu_list">
15+
{{ range .Pages.GroupByDate "January" }}
16+
<li class="blog-menu_type {{if eq ($currentPage.Date.Format "January") .Key }}active{{ end }}">
17+
<span>{{ .Key }}</span>
18+
<div class="blog-menu_list">
19+
{{ range .Pages }}
20+
<a
21+
class="blog-menu_item {{if eq ($currentPage.Title) .Title }}active{{ end }}"
22+
href="{{ .Permalink }}">
23+
{{ .Title }}
24+
</a>
25+
{{ end }}
26+
</div>
27+
</li>
28+
{{ end }}
29+
</ul>
30+
</li>
31+
{{ end }}
32+
{{ end }}
33+
</ul>
34+
</div>
35+
</aside>
36+
37+
<article>
38+
<div class="article-meta">
39+
<h2 class="article-title">{{ .Title }}</h2>
40+
{{ if .Params.date }}<h3 class="article-date">{{ .Date.Format "Monday, Jan 2, 2006" }}</h3>{{ end }}
41+
{{ with .Params.author }}<h3 class="article-author">{{ . }}</h3>{{ end }}
42+
</div>
43+
<div class="article-content">
44+
{{ .Content }}
45+
</div>
46+
47+
{{ if and (isset .Params "gitalk") (eq .Params.gitalk true) }}
48+
{{ partial "comment.html" . }}
49+
{{ end }}
50+
</article>
51+
</div>
52+
</div>
1453

1554
{{ partial "footer.html" . }}

0 commit comments

Comments
 (0)