Skip to content

Commit a893d87

Browse files
committed
Add post log layout and new log.
1 parent c2dbf02 commit a893d87

5 files changed

Lines changed: 77 additions & 2 deletions

File tree

_layouts/post.html

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,68 @@
1+
---
2+
---
13
<!DOCTYPE html>
24
<html>
35
<head>
46
<meta charset="UTF-8" />
57
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.name }}</title>
68
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
9+
<link rel="icon" href="/favicon.png" type="image/x-icon" />
10+
<link rel="shortcut icon" href="/favicon.png" type="image/x-icon" />
711
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" />
12+
<link rel="stylesheet" href="/assets/css/common.css" />
13+
<style type="text/css">
14+
nav .logo{
15+
display: block;
16+
height: 60px;
17+
text-decoration: none;
18+
font: normal 2em/60px Consolas;
19+
color: #000;
20+
}
21+
nav .logo img{
22+
float: left;
23+
height: 100%;
24+
margin-right: .5em;
25+
}
26+
article.container{
27+
max-width: 640px;
28+
font-size: 1.2em;
29+
line-height: 1.8em;
30+
}
31+
article h1:first-child,
32+
article p.meta{
33+
text-align: center;
34+
}
35+
article p.meta{
36+
margin-bottom: 2em;
37+
font-size: 90%;
38+
}
39+
40+
@media (max-width: 640px) {
41+
nav .logo *:not(img){
42+
display: none;
43+
}
44+
article.container{
45+
width: 90%;
46+
max-width: 90%;
47+
}
48+
}
49+
</style>
850
</head>
9-
<body>
10-
{{content}}
51+
<body class="page-{{ page.category }}">
52+
53+
<nav class="container">
54+
<a href="/" class="logo"><img src="/assets/img/logo-160.png" /><strong>Yncoder</strong></a>
55+
<ul>
56+
<li><a href="https://github.com/yncoder/yncoder.github.io/issues" target="_blank">社区讨论</a></li>
57+
<li><iframe src="https://ghbtns.com/github-btn.html?user=yncoder&amp;repo=yncoder.github.io&amp;type=watch&amp;count=true&amp;v=2" frameborder="0" scrolling="0" width="100" height="20"></iframe></li>
58+
</ul>
59+
</nav>
60+
61+
<article class="container">
62+
<h1>{{ page.title }}</h1>
63+
<p class="meta">By {{ page.author }} at {{ page.date | date: "%Y-%m-%d" }}</p>
64+
{{ content }}
65+
</article>
66+
1167
</body>
1268
</html>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: post
3+
category: log
4+
title: 2015年4月社区聚会记录
5+
author: mytharcher
6+
---
7+
8+
过完年回来提议的两次较为正式的活动召集([#1](https://github.com/yncoder/yncoder.github.io/issues/1)[#2](https://github.com/yncoder/yncoder.github.io/issues/2))最终都流产,而一个星期前 @Durandal 和群主无心插柳的说找个周末出来喝喝茶,居然促成了浮出多位大神的一次大聚会。把图贴出来权且记录一下,参加活动的 ID 如下(排序:`a.localeCompare(b)`):@风雪,@孤鸿,@图拉鼎,@月亮,@张磊,@知更鸟,@arlicle@bigzhu@D@Durandal@MonExodus@mytharcher@so9t@Vanessa
9+
10+
<figure>
11+
<img src="/assets/img/2014-04-meeting/0426_1.jpg" />
12+
<img src="/assets/img/2014-04-meeting/0426_4.jpg" />
13+
<img src="/assets/img/2014-04-meeting/0426_6.jpg" />
14+
<figcaption>请忽略我奇怪的扣嘴动作,我也不知道为什么就被群主抓拍到,为了社区也是豁出去了</figcaption>
15+
</figure>
16+
17+
从此算是认识了 BAT 都有回归昆明的 IT 从业者。而且这次聚会已经不只是技术群体,还有法律,教育,国际贸易等行业的创业者加入,非常出乎意料。在这个时代里,互联网技术正在连接着各行各业,也将给未来带来无限可能。
18+
19+
在云南的开发者们,如果还没找到组织,就快来加入我们吧,一起交流分享,共创未来!
188 KB
Loading
170 KB
Loading
172 KB
Loading

0 commit comments

Comments
 (0)