Skip to content

Commit 3c8a31f

Browse files
author
SuYan
committed
change some UI
1 parent f501976 commit 3c8a31f

24 files changed

+839
-2167
lines changed

.DS_Store

15 KB
Binary file not shown.

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="icon" href="/public/css/favicon.ico">
1212
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1313
<link rel="stylesheet" href="/public/css/bootstrap.css">
14-
<link rel="stylesheet" href="/public/css/fontawesome.css">
14+
<link rel="stylesheet" href="/public/css/font-awesome.css">
1515
<link rel="stylesheet" href="/public/js/prettify/prettify.css">
1616
<link rel="stylesheet" href="/public/css/base.css">
1717
<link href="/pages/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml">

_includes/navbar.html

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@
1010
</div>
1111
<div class="collapse navbar-collapse navbar-ex1-collapse">
1212
<ul class="nav navbar-nav">
13-
<li><a href="/"><i class="icon-home icon-white"></i>首页</a></li>
14-
<li><a href="/pages/categories.html"><i class="icon-th-large icon-white"></i>分类</a></li>
15-
<li><a href="/pages/tags.html"><i class="icon-tags icon-white"></i>标签</a></li>
16-
<li><a href="/pages/archive.html"><i class="icon-file icon-white"></i>归档</a></li>
17-
<li><a href="/pages/atom.xml"><i class="icon-rss icon-white"></i>订阅</a></li>
18-
<li><a href="/pages/about.html"><i class="icon-user icon-white"></i>关于</a></li>
13+
<li><a href="/"><i class="icon-home icon-white"></i> 首页</a></li>
14+
<li><a href="/pages/categories.html"><i class="icon-th-large icon-white"></i> 分类</a></li>
15+
<li><a href="/pages/tags.html"><i class="icon-tags icon-white"></i> 标签</a></li>
16+
<li><a href="/pages/archive.html"><i class="icon-file icon-white"></i> 归档</a></li>
17+
<li><a href="/pages/atom.xml"><i class="icon-rss icon-white"></i> 订阅</a></li>
18+
<li><a href="/pages/about.html"><i class="icon-user icon-white"></i> 关于</a></li>
1919
</ul>
2020
<ul class="nav navbar-nav navbar-right">
21-
<li><a href="{{ site.author.link }}">中文</a></li>
22-
<li><a href="{{ site.author.enlink }}">English</a></li>
21+
<li class="dropdown">
22+
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-exchange"></i> 语言<b class="caret"></b></a>
23+
<ul class="dropdown-menu">
24+
<li><a href="{{ site.author.link }}">中文</a></li>
25+
<li><a href="{{ site.author.enlink }}">English</a></li>
26+
</ul>
27+
</li>
2328
</ul>
2429
</div>
2530
</div>

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="panel panel-info">
77
<div class="panel-heading">
88
<h2>{{ page.title }}</h2>
9-
<p>由作者 <a href="/pages/about.html">{{ site.author.name }}</a> 发布于 <a href='/pages/archive.html#{{ page.date | date:"%Y-%m"}}'>{{ page.date | date:"%Y年%m月%d日" }}</a> 分类: {% for category in page.category %} <a href="/pages/categories.html#{{ category }}">{{ category }}</a> {% endfor %} | 标签: {% for tag in page.tags %} <a href="/pages/tags.html#{{ tag }}">#{{ tag }}#</a> {% endfor %}</p>
9+
<p>由作者 <a href="/pages/about.html">{{ site.author.name }}</a> 发布于 <a href='/pages/archive.html#{{ page.date | date:"%Y-%m"}}'>{{ page.date | date:"%Y年%m月%d日" }}</a> 分类: {% for category in page.category %} <a href="/pages/categories.html#{{ category }}">{{ category }}</a> {% endfor %} 标签: {% for tag in page.tags %} <a href="/pages/tags.html#{{ tag }}">#{{ tag }}#</a> {% endfor %}</p>
1010
</div>
1111
<div class="panel-body content" id="content">
1212
<blockquote>{{ page.description }}</blockquote>

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22
## TODO
3+
- 合理展示图片
4+
5+
## Version 2.2
36
- 优化阅读体验
47
- 想办法实现双语
58

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
<h3 class="panel-title"><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></h3>
1111
</div>
1212
<div class="panel-body">
13-
{{ post.description }} <small><a href="{{ site.url }}{{ post.url }}">继续阅读&raquo;&raquo;</a></small>
13+
{{ post.description }}
14+
<br><small><a href="{{ site.url }}{{ post.url }}">继续阅读 <i class="icon-arrow-right"></i></a></small>
1415
</div>
1516
<div class="panel-footer">
16-
由作者 <a href="/pages/about.html">{{ site.author.name }}</a> 发布于 <a href='/pages/archive.html#{{ post.date | date:"%Y-%m"}}'>{{ post.date | date:"%Y年%m月%d日" }}</a> 分类: {% for category in post.category %} <a href="/pages/categories.html#{{ category }}">{{ category }}</a> {% endfor %} | 标签: {% for tag in post.tags %} <a href="/pages/tags.html#{{ tag }}">#{{ tag }}#</a> {% endfor %}
17+
由作者 <a href="/pages/about.html">{{ site.author.name }}</a> 发布于 <a href='/pages/archive.html#{{ post.date | date:"%Y-%m"}}'>{{ post.date | date:"%Y年%m月%d日" }}</a> 分类: {% for category in post.category %} <a href="/pages/categories.html#{{ category }}">{{ category }}</a> {% endfor %} 标签: {% for tag in post.tags %} <a href="/pages/tags.html#{{ tag }}">#{{ tag }}#</a> {% endfor %}
1718
</div>
1819
</div>
1920
</div>

pages/categories.html

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,17 @@
33
title: 分类
44
comments: false
55
---
6-
<div class="panel-group" id="accordion">
7-
{% for category in site.categories %}
8-
<div class="panel panel-default">
9-
<div class="panel-heading">
10-
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#{{ category[0] }}">
11-
{{ category[0] }}({{ category[1].size }})
12-
</a>
13-
</div>
14-
<div id="{{ category[0] }}" class="panel-collapse collapse">
15-
<div class="accordion-inner">
16-
<ul>
17-
{% for post in category[1] %}
18-
<li><a href='{{ post.url }}'>{{post.title}}</a></li>
19-
{% endfor %}
20-
</ul>
21-
</div>
22-
</div>
23-
</div>
6+
<p>
7+
{% for category in site.categories %}
8+
<a href="/pages/categories.html#{{ category | first }}"><h3 style="display:inline;"><span class="label label-primary">{{ category[0] }}({{ category | last | size }})</span></h3></a>
249
{% endfor %}
25-
</div>
10+
</p>
11+
<hr>
12+
{% for category in site.categories %}
13+
<legend id="{{ category[0] }}">{{ category[0] }}</legend>
14+
<ul>
15+
{% for post in category[1] %}
16+
<li><a href='{{ post.url }}'>{{post.title}}</a></li>
17+
{% endfor %}
18+
</ul>
19+
{% endfor %}

public/.DS_Store

15 KB
Binary file not shown.

public/css/base.css

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,7 @@ body{padding-top: 70px;}
1111
}
1212
.body_push{height:100px;}
1313
.body_footer {height:100px;background-color: #f5f5f5;}
14-
.body_footer .container{
15-
padding-top: 30px;
16-
padding-bottom: 30px;
17-
}
18-
@media (min-width: 767px) {
19-
.body_footer {
20-
margin-left: -20px;
21-
margin-right: -20px;
22-
padding-left: 20px;
23-
padding-right: 20px;
24-
}
25-
}
14+
.body_footer .container{padding-top: 30px;padding-bottom: 30px;}
2615
@media screen and (min-width: 992px) {
2716
.affix {top:70px;}
2817
.aside {width: 226px;}
@@ -42,3 +31,5 @@ body{padding-top: 70px;}
4231
.content {font-size:18px;line-height:1.8;}
4332
.content h2,h3{line-height: 2;}
4433
blockquote p{font-size:20px;}
34+
.panel-title {font-size:18px;}
35+
.panel-body {font-size:16px;}

0 commit comments

Comments
 (0)