Skip to content

Commit 7441c32

Browse files
committed
Add blog list page.
1 parent 12d3f5d commit 7441c32

4 files changed

Lines changed: 49 additions & 0 deletions

File tree

_includes/nav.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<nav class="container">
2+
<a href="/" class="logo"><img src="/assets/img/logo-160.png" /><strong>Yncoder</strong></a>
3+
<ul>
4+
<li><a href="https://github.com/yncoder/yncoder.github.io/issues" target="_blank">社区讨论</a></li>
5+
<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>
6+
</ul>
7+
</nav>

_layouts/page.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
---
3+
<!DOCTYPE html>
4+
<html>
5+
<head>
6+
<meta charset="UTF-8" />
7+
<title>{% if page.title %}{{ page.title }} - {% endif %}Yncoder</title>
8+
<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" />
11+
<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+
</head>
14+
<body class="page-{{ page.category }}">
15+
16+
{% include nav.html %}
17+
18+
{{ content }}
19+
20+
</body>
21+
</html>

_layouts/single.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: page
3+
---
4+
5+
<article class="container">
6+
<h1>{{ page.title }}</h1>
7+
{{ content }}
8+
</article>

list.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: single
3+
title: 社区博客列表
4+
category: single
5+
---
6+
7+
在这里收集各位社区成员的博客,按博客名称`localeCompare()`排序。需要添加自己的请发 PR 或 提交 issue。
8+
9+
* [闭门造轮子](http://yanjunyi.com/blog/) (Jekyll)
10+
* [简约设计の艺术](http://88250.b3log.org/) (B3log)
11+
* [一个博客](http://zhangrgk.ninja/) (Ghost)
12+
* [BigZhu的窝](http://bigzhu.org/) (自建)
13+
* [Vanessa](http://vanessa.b3log.org/) (B3log)

0 commit comments

Comments
 (0)