Skip to content

Commit 43ef4e4

Browse files
committed
Add page type style.
1 parent addba40 commit 43ef4e4

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" />
1212
<link rel="stylesheet" href="/assets/css/common.css" />
1313
</head>
14-
<body class="page-{{ page.category }}">
14+
<body class="page-{{ page.type }}">
1515

1616
{% include nav.html %}
1717

_layouts/post.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: page
3+
type: single
34
---
45

56
<article class="container">

_layouts/single.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: page
3+
type: single
34
---
45

56
<article class="container">

assets/css/common.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@ article blockquote{line-height:1.6em; margin:1em 0 1em 1.5em; border-left:2px so
126126

127127

128128

129-
.page-log .container:not(nav){
129+
.page-single .container:not(nav){
130130
max-width: 640px;
131131
font-size: 1.2em;
132132
line-height: 1.8em;
133133
}
134-
.page-log article h1:first-child,
135-
.page-log article p.meta{
134+
.page-single article h1:first-child,
135+
.page-single article p.meta{
136136
text-align: center;
137137
}
138-
.page-log article p.meta{
138+
.page-single article p.meta{
139139
margin-bottom: 2em;
140140
font-size: 90%;
141141
}
@@ -147,7 +147,7 @@ article blockquote{line-height:1.6em; margin:1em 0 1em 1.5em; border-left:2px so
147147
nav iframe{
148148
display: none;
149149
}
150-
.page-log article.container{
150+
.page-single article.container{
151151
width: 90%;
152152
max-width: 90%;
153153
}

bloggers.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: single
33
title: 社区博客列表
4-
category: single
54
---
65

76
在这里收集各位社区成员的博客,按博客名称`localeCompare()`排序。需要添加自己的请发 PR 或 提交 issue。

0 commit comments

Comments
 (0)