8000 clone and update theme from http://yansu.org/ · linlinjava/linlinjava.github.io@0d45cbe · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d45cbe

Browse files
committed
clone and update theme from http://yansu.org/
1 parent 8e3b984 commit 0d45cbe

File tree

155 files changed

+2672
-3380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+2672
-3380
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
linlinjava.github.io
2-
====================
3-
It's just a simple space for recording and sharing something interesting or useful.
1+
For Linux, Java, Eclipse, Git and other useful things

_config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
permalink: /:year/:month/:day/:title.html
2+
paginate: 10
3+
markdown: kramdown
4+
5+
kramdown:
6+
input: GFM
7+
8+
# 作者信息
9+
author:
10+
name: linlinjava
11+
email: linlinjavaer@gmail.com
12+
github: http://github.com/linlinjava
13+
14+
# 站点信息
15+
title: linlinjava的博客
16+
description: linlinjava的博客
17+
url: https://linlinjava.github.io/
18+
rss_url: /pages/atom.xml
19+
20+
# gavatar头像及Favicon
21+
gavatar:
22+
favicon:
23+
24+
# google analytics 设置
25+
26+
# disqus 设置
27+
28+
29+
# 主题设置,自动激活某个标签
30+
active: 技术
31+
32+
# 首页除了最新文章外显示分类
33+
cates:
34+
- Git
35+
- Java
36+
37+
# 中文本地化
38+
locals:
39+
tags: 标签
40+
about: 关于
41+
newest: 最新文章
42+
archive: 归档
43+
content: 目录

_includes/content.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- 目录 -->
2+
<div class="content">
3+
<h3><a href="javascript:;" id="content_btn">[{{ site.locals.content }}]</a></h3>
4+
<div id="content_table" style="display:none;">
5+
<div id="nav"></div>
6+
</div>
7+
</div>

_includes/disqus.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div id="disqus_thread">
2+
<button type="button" name="{{ site.disqus.shortname }}" class="btn btn-default show-commend">显示评论</button>
3+
</div>

_includes/footer.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div style="position:fixed;right:20px;top:10px;">
2+
<button id="nav_btn" class="btn btn-primary">
3+
<i class="fa fa-2x fa-navicon"></i>
4+
</button>
5+
</div>
6+
<script type="text/javascript" src="/public/js/jquery.js"></script>
7+
<script type="text/javascript" src="/public/js/bootstrap.js"></script>
8+
<script src="/public/js/jquery.pjax.js"></script>
9+
<script src="/public/js/prettify/prettify.js"></script>
10+
<script src="/public/js/base.js"></script>
11+
<script>
12+
$('a[href="#{{ site.active }}"]').tab('show');
13+
</script>

_includes/googleanalytics.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6+
ga('create', '{{ site.ga.id }}', '{{ site.ga.url }}');
7+
ga('send', 'pageview');
8+
</script>

_includes/header.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<meta charset="utf-8">
2+
<title>{{ page.title }} | {{ site.title }}</title>
3+
<meta name="author" content="{{ site.author.name }}">
4+
{% if page.keywords %}
5+
<meta name="keywords" content="{{ page.keywords }}">
6+
{% endif %}
7+
{% if page.description %}
8+
<meta name="description " content="{{ page.description }}">
9+
{% endif %}
10+
<link rel="shortcut icon" href="{{ site.favicon }}" />
11+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
12+
<link rel="stylesheet" href="/public/css/bootstrap.css">
13+
<link rel="stylesheet" href="/public/css/font-awesome.css">
14+
<link rel="stylesheet" href="/public/js/prettify/prettify.css">
15+
<link rel="stylesheet" href="/public/css/base.css">
16+
<link href="/pages/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml">

_includes/navside.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<div class="col-md-4 col-lg-4 col-sm-12 col-xs-12 aside visible-md visible-lg">
2+
<div class="row">
3+
<div class="col-md-3 col-xs-3 aside1">
4+
<br>
5+
<a class="pjaxlink" href="/"><img src="{{ site.gavatar }}" class="img-circle avatar"></a>
6+
<br><br>
7+
<ul class="nav nav-pills nav-stacked">
8+
{% for category in site.categories %}
9+
<li><a href="#{{ category | first }}" data-toggle="tab">{{ category[0] }}</a></li>
10+
{% endfor %}
11+
<li><a href="#tags" data-toggle="tab">{{ site.locals.tags }}</a></li>
12+
<li><a class="pjaxlink" href="/pages/archive.html">{{ site.locals.archive }}</a></li>
13+
<li><a class="pjaxlink" href="/pages/about.html">{{ site.locals.about }}</a></li>
14+
</ul>
15+
<div class="aside1_bottom">
16+
<table class="table table-condensed">
17+
<tr>
18+
<td><a href="/pages/atom.xml" target="_blank"><i class="fa fa-rss fa-2x"></i></a></td>
19+
<td><a href="mailto:{{ site.author.email }}"><i class="fa fa-envelope-o fa-2x"></i></a></td>
20+
</tr>
21+
</table>
22+
</div>
23+
</div>
24+
<div class="col-md-9 col-xs-9 aside2">
25+
<div class="row">
26+
<div class="tab-content">
27+
{% for category in site.categories %}
28+
<div class="tab-pane" id="{{ category[0] }}">
29+
<div class="list-group">
30+
<h2 class="center">{{ category[0] }}</h2>
31+
{% for post in category[1] %}
32+
<a href="{{ post.url }}" class="list-group-item pjaxlink">{{post.title}}</a>
33+
{% endfor %}
34+
</div>
35+
</div>
36+
{% endfor %}
37+
<div class="tab-pane" id="tags">
38+
<div class="panel-group" id="accordion">
39+
<h2 class="center">{{ site.locals.tags }}</h2>
40+
{% for tag in site.tags %}
41+
<div class="panel panel-info">
42+
<div class="panel-heading">
43+
<h4 class="panel-title">
44+
<a data-toggle="collapse" data-toggle="collapse" data-parent="#accordion" href="#{{ tag[0] }}">{{ tag[0] }}</a>
45+
<span class="badge pull-right">{{ tag[1].size }}</span>
46+
</h4>
47+
</div>
48+
<div id="{{ tag[0] }}" class="panel-collapse collapse">
49+
{% for post in tag[1] %}
50+
<a href='{{ post.url }}' class="list-group-item pjaxlink">
51+
{{post.title}}
52+
</a>
53+
{% endfor %}
54+
</div>
55+
</div>
56+
{% endfor %}
57+
</div>
58+
</div>
59+
</div>
60+
</div>
61+
</div>
62+
</div>
63+
</div>

_layouts/base.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
{% include header.html %}
5+
</head>
6+
<body>
7+
<div class="container">
8+
<div class="row">
9+
{% include navside.html %}
10+
<div class="col-md-8 col-lg-8 col-sm-12 col-xs-12 aside3">
11+
<div id="container">
12+
<div id="pjax">
13+
{{ content }}
14+
</div>
15+
</div>
16+
</div>
17+
</div>
18+
</div>
19+
{% include footer.html %}
20+
{% include googleanalytics.html %}
21+
</body>
22+
</html>

_layouts/book.html

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
layout: base
3+
---
4+
<div class="row">
5+
<div class="col-md-12 aside3-title">
6+
<br>
7+
<h2 id="#identifier">{{ page.title }}</h2>
8+
</div>
9+
<div class="col-md-12 aside3-content">
10+
<br />
11+
<div id="content">
12+
{{ content }}
13+
</div>
14+
<br />
15+
<div class="row">
16+
{% for book in page.books %}
17+
<div class="col-md-12">
18+
<div class="panel panel-primary">
19+
<div class="panel-heading">{{ book.title }}</div>
20+
<div class="panel-body">
21+
<div class="row">
22+
<div class="col-md-4 col-xs-12 center">
23+
<img src="{{ book.cover }}" alt="cover" class="img-thumbnail">
24+
</div>
25+
<div class="col-md-8 col-xs-12">
26+
<table class="table table-bordered">
27+
<tbody>
28+
<tr><td style="width:80px;">作者</td><td>{{ book.author }}</td></tr>
29+
<tr><td>出版商</td><td>{{ book.publisher }}</td></tr>
30+
<tr><td>语言</td><td>{{ book.language }}</td></tr>
31+
<tr>
32+
<td>链接</td><td>
33+
<a href="{{ book.link }}" title="{{ book.link }}">图书链接</a>
34+
</td></tr>
35+
<tr>
36+
<td>状态</td>
37+
<td>
38+
{% if book.status == '已读' %}
39+
<span class="label label-success">{{ book.status }}</span>
40+
{% elsif book.status == '在读' %}
41+
<span class="label label-info">{{ book.status }}</span>
42+
{% elsif book.status == '未读' %}
43+
<span class="label label-default">{{ book.status }}</span>
44+
{% endif %}
45+
</td></tr>
46+
<tr><td>评论</td><td>{{ book.description }}</td></tr>
47+
</tbody>
48+
</table>
49+
</div>
50+
</div>
51+
</div>
52+
</div>
53+
</div>
54+
{% endfor %}
55+
</div>
56+
<hr>
57+
{% include disqus.html %}
58+
</div>
59+
</div>
60+

_layouts/page.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: base
3+
---
4+
<div class="row">
5+
<div class="col-md-12 aside3-title">
6+
<br>
7+
<h2 id="#identifier">{{ page.title }}</h2>
8+
</div>
9+
<div class="col-md-12 aside3-content">
10+
<div id="page-content">
11+
{{ content }}
12+
</div>
13+
<hr>
14+
{% include disqus.html %}
15+
</div>
16+
</div>

_layouts/post.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
layout: base
3+
---
4+
<div class="row">
5+
<div class="col-md-12 aside3-title">
6+
<br>
7+
<h2 id="#identifier">{{ page.title }}</h2>
8+
{{ page.date | date:"%Y年%m月%d日" }}
9+
</div>
10+
<div class="col-md-12 aside3-content">
11+
{% include content.html %}
12+
<hr>
13+
<div id="content">
14+
{{ content }}
15+
</div>
16+
<hr>
17+
{% include disqus.html %}
18+
</div>
19+
</div>
20+

_site/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
For Linux, Java, Eclipse, Git and other useful things

0 commit comments

Comments
 (0)
0