Skip to content

Commit 5153afd

Browse files
committed
add new template
1 parent ba917a9 commit 5153afd

80 files changed

Lines changed: 12900 additions & 0 deletions

Some content is hidden

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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/
2+
.vscode/

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ichennan.com

LICENSE.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Jekyll template is from lay1010.github.io
2+
3+
Content written by Terry Chen Nan

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ichennan.github.io
2+
3+
blog, spark, scala

_config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
permalink: /:year/:month/:day/:title.html
2+
paginate: 10
3+
#markdown: redcarpet
4+
markdown: kramdown
5+
6+
# Author
7+
author:
8+
name: Terry Chen Nan
9+
10+
link: http://ichennan.github.io
11+
github: http://github.com/ichennan
12+
13+
# Site
14+
title: Ichennan
15+
description: Blog of Terry Chen Nan
16+
url: http://ichennan.github.io
17+
rss_url: /pages/atom.xml
18+
19+
# gavatar Favicon
20+
gavatar: /public/img/deer3.png
21+
favicon: /public/img/deer3.png
22+
23+
# google analytics
24+
ga:
25+
id: UA-54262064-1
26+
url: ichennan.github.io
27+
28+
# default active
29+
active: 读书
30+
31+
# 首页除了最新文章外显示分类
32+
# cates:
33+
# - Optimization
34+
# - LaTeX
35+
36+
# localization
37+
locals:
38+
tags: 标签
39+
about: 关于
40+
newest: 吃饭睡觉打豆豆
41+
archive: 存档

_includes/footer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script type="text/javascript" src="/public/js/jquery.js"></script>
2+
<script type="text/javascript" src="/public/js/bootstrap.js"></script>
3+
<script src="/public/js/jquery.pjax.js"></script>
4+
<script src="/public/js/prettify/prettify.js"></script>
5+
<script src="/public/js/base.js"></script>
6+
<script>
7+
$('a[href="#{{ site.active }}"]').tab('show');
8+
</script>
9+

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

0 commit comments

Comments
 (0)