Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions content/blog/1.1.md

This file was deleted.

28 changes: 0 additions & 28 deletions content/blog/1.1.zh.md

This file was deleted.

28 changes: 0 additions & 28 deletions content/blog/1.2.md

This file was deleted.

28 changes: 0 additions & 28 deletions content/blog/1.2.zh.md

This file was deleted.

28 changes: 0 additions & 28 deletions content/blog/1.md

This file was deleted.

28 changes: 0 additions & 28 deletions content/blog/1.zh.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Why use slack for our daily communications?"
title: "Why use slack for our daily communications?" #required
author: ""
date: 2017-12-08
date: 2017-12-08 #required
gitalk: true
categories:
- 日志
Expand Down
File renamed without changes.
6 changes: 0 additions & 6 deletions content/blog/test.md

This file was deleted.

73 changes: 42 additions & 31 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,44 +1,55 @@
{{ partial "header.html" . }}

<div class="article clearfix">
<div class="article blog-article clearfix">
<div class="container">
<aside class="sider">
<div class="blog-menu">
<h3>Blog Archive</h3>
<ul>
{{ $currentPage := . }}
{{ range (where .Site.Pages "Type" "blog") }}
{{ range .Pages.GroupByDate "2006" }}
<li class="blog-menu_type {{if eq ($currentPage.Date.Format "2006") .Key }}active{{ end }}">
<span>{{ .Key }}</span>
<ul class="blog-menu_list">
{{ range .Pages.GroupByDate "January" }}
<li class="blog-menu_type {{if eq ($currentPage.Date.Format "January") .Key }}active{{ end }}">
<span>{{ .Key }}</span>
<div class="blog-menu_list">
{{ range .Pages }}
<a
class="blog-menu_item {{if eq ($currentPage.Title) .Title }}active{{ end }}"
href="{{ .Permalink }}">
{{ .Title }}
</a>
{{ end }}
</div>
</li>
{{ end }}
</ul>
</li>
{{ if eq .Dir "blog/"}}
<div class="blog-menu">
<h3>Blog Archive</h3>
<ul>
{{ $currentPage := . }}
{{ range (where .Site.Pages "Type" "blog") }}
{{ range .Pages.GroupByDate "2006" }}
<li class="blog-menu_type {{if eq ($currentPage.Date.Format "2006") .Key }}active{{ end }}">
<span>{{ .Key }}</span>
<ul class="blog-menu_list">
{{ range .Pages.GroupByDate "January" }}
<li class="blog-menu_type {{if eq ($currentPage.Date.Format "January") .Key }}active{{ end }}">
<span>{{ .Key }}</span>
<div class="blog-menu_list">
{{ range .Pages }}
<a
class="blog-menu_item {{if eq ($currentPage.Title) .Title }}active{{ end }}"
href="{{ .Permalink }}">
{{ .Title }}
</a>
{{ end }}
</div>
</li>
{{ end }}
</ul>
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</div>
</ul>
</div>
{{ end }}
</aside>

<div class="site-link">
<a class="github" href="//www.github.com/openpitrix/openpitrix" target="_blank">github</a>
<a class="slack" href="//openpitrix.slack.com" target="_blank">slack</a>
<a class="twitter" href="//twitter.com/OpenPitrixorg" target="_blank">twitter</a>
<a class="stack-overflow" href="#">stack-overflow</a>
</div>

<article>
<div class="article-meta">
<h2 class="article-title">{{ .Title }}</h2>
{{ if .Params.date }}<h3 class="article-date">{{ .Date.Format "Monday, Jan 2, 2006" }}</h3>{{ end }}
{{ with .Params.author }}<h3 class="article-author">{{ . }}</h3>{{ end }}
<div class="article-info">
{{ with .Params.author }}<h3 class="article-author">{{ . }}</h3>{{ end }}
{{ if .Params.date }}<h3 class="article-date">{{ .Date.Format "Monday, Jan 2, 2006" }}</h3>{{ end }}
</div>
</div>
<div class="article-content">
{{ .Content }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h2 class="section-title">{{ .subtitle }}</h2>

<img class="section-img11 float float11" src="/assets/1-1.svg" alt="">
<img class="section-img12 float float12" src="/assets/1-2.svg" alt="">
<img class="section-img13 float float13"src="/assets/1-3.svg" alt="">
<img class="section-img13"src="/assets/1-3.svg" alt="">
</div>

<img class="section-img14" src="/assets/1-4.svg" alt="">
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<script>
var gitalk = new Gitalk({
var gitalk = new Gitalk ({
clientID: '1e6d9225363311fd7e38',
clientSecret: 'cc563d0c7ba9bb84053ccd6b9b305a7fa004fd2e',
repo: 'openpitrix.github.io',
owner: 'openpitrix',
language: 'en',
id: location.pathname,
admin: ['libangrui', 'leoendless', 'iwisunny', 'rayzhou2017'],
createIssueManually: true
// createIssueManually: true
});
gitalk.render('article-comment');
</script>
7 changes: 5 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@
<link rel="stylesheet" href="{{ "/css/index.css" | relURL }}" />
{{ end }}

{{ if eq .Dir "blog/"}}
<link rel="stylesheet" href="{{ "/css/blog.css" | relURL }}" />
{{ end }}

{{ partial "head_custom.html" . }}
</head>

<body>
<nav class="header">
<div class="container">
<h1 class="logo">
<a href="#">
<img class="logo1" src="/assets/logo-new.svg" alt="openPitrix" />
<img class="mobile-show logo2" src="/assets/logo2-new.svg" alt="openPitrix" />
<img class="logo2" src="/assets/logo2-new.svg" alt="openPitrix" />
</a>
</h1>
<button class="menu-btn mobile-show"></button>
Expand Down
Binary file removed static/assets/2-1.png
Binary file not shown.
Binary file removed static/assets/2-2.png
Binary file not shown.
Binary file removed static/assets/2-3.png
Binary file not shown.
Binary file removed static/assets/2-4.png
Binary file not shown.
Binary file removed static/assets/2-5.png
Binary file not shown.
Binary file removed static/assets/2-6.png
Binary file not shown.
Binary file removed static/assets/3-1.png
Binary file not shown.
Binary file removed static/assets/3-2.png
Binary file not shown.
Binary file removed static/assets/4-1.png
Binary file not shown.
Binary file removed static/assets/4-2.png
Binary file not shown.
Binary file removed static/assets/5-1.png
Binary file not shown.
Binary file removed static/assets/5-2.png
Binary file not shown.
Binary file removed static/assets/6-1.png
Binary file not shown.
Binary file removed static/assets/6-2.png
Binary file not shown.
Binary file removed static/assets/6-3.png
Binary file not shown.
Binary file removed static/assets/6-4.png
Binary file not shown.
Binary file removed static/assets/6-5.png
Binary file not shown.
Binary file removed static/assets/6-6.png
Binary file not shown.
Binary file removed static/assets/6-7.png
Binary file not shown.
Binary file removed static/assets/6-8.png
Binary file not shown.
Binary file removed static/assets/6-9.png
Binary file not shown.
Binary file removed static/assets/7-0.png
Binary file not shown.
Binary file removed static/assets/7-1.png
Binary file not shown.
Binary file removed static/assets/7-2.png
Binary file not shown.
Binary file removed static/assets/7-3.png
Binary file not shown.
Loading