Skip to content

Commit e0ea457

Browse files
committed
Change to leonids theme with personal customization.
1 parent 15ed21b commit e0ea457

Some content is hidden

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

48 files changed

+3205
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
_site
2+
_drafts
3+
.sass-cache
4+
.idea

CNAME

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

LICENSE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2014-2017 linlinjava - Released under The MIT License.
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

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

_config.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
###################################
3+
# Site wide configuration
4+
####################################
5+
#
6+
title: linlinjava
7+
email: linlinjavaer@gmail.com
8+
description: Personal Blog for Thinking, Learning & Coding.
9+
url: https://linlinjava.github.io/
10+
11+
12+
#
13+
###################################
14+
# Jekyll configuration
15+
####################################
16+
#
17+
markdown: kramdown
18+
highlighter: rouge
19+
excerpt_separator: <!--more-->
20+
permalink: /articles/:year-:month/:title
21+
22+
kramdown:
23+
auto_ids: true
24+
footnote_nr: 1
25+
entity_output: as_char
26+
toc_levels: 1..6
27+
enable_coderay: false
28+
29+
#
30+
###################################
31+
# Site Owner configuration
32+
####################################
33+
#
34+
owner:
35+
name: linlinjava
36+
avatar: favicon.gif
37+
job: "Java & Android Developer"
38+
bio: "Thinking, Learning & Coding"
39+
email: linlinjavaer@gmail.com
40+
github: linlinjava

_includes/disqus.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script type="text/javascript">
2+
/* * * CONFIGURATION VARIABLES * * */
3+
var disqus_shortname = '{{ site.owner.disqus-shortname }}';
4+
5+
/* * * DON'T EDIT BELOW THIS LINE * * */
6+
(function() {
7+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
8+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
9+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
10+
})();
11+
</script>
12+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

_includes/footer.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<footer>
2+
&copy; {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by <a href="http://jekyllrb.com/">Jekyll</a>, <a href="http://github.com/renyuanz/leonids/">leonids theme</a> made with <i class="fa fa-heart heart-icon"></i>
3+
</footer>

_includes/head.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8+
9+
<!-- CSS files -->
10+
<link rel="stylesheet" href="{{ site.url }}/assets/css/font-awesome.min.css">
11+
<link rel="stylesheet" href="{{ site.url }}/assets/css/main.css">
12+
13+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
14+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ " /feed.xml " | prepend: site.url }}" />
15+
16+
<!-- Icons -->
17+
<!-- 16x16 -->
18+
<link rel="shortcut icon" href="{{ site.url }}/assets/img/favicon.ico">
19+
<!-- 32x32 -->
20+
<link rel="shortcut icon" href="{{ site.url }}/assets/img/favicon.png">
21+
22+
<link rel="shortcut icon" href="{{ site.url }}/assets/img/favicon.gif">
23+
</head>

_includes/js.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script type="text/javascript" src="{{ site.url }}/assets/js/jquery-2.1.4.min.js"></script>
2+
<script type="text/javascript" src="{{ site.url }}/assets/js/main.js"></script>
3+
{% if site.owner.google.analytics %}
4+
<!-- Asynchronous Google Analytics snippet -->
5+
<script>
6+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
7+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
8+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
9+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
10+
11+
ga('create', '{{ site.owner.google.analytics }}', 'auto');
12+
ga('send', 'pageview');
13+
</script>
14+
{% endif %}

_includes/nav.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<nav class="post-navigation" role="navigation">
2+
<div class="row">
3+
<div class="col s5">
4+
<div class="post-nav-prev">
5+
{% if page.previous %}
6+
<a href="{{ site.url }}{{ page.previous.url }}" title="{{ page.previous.title }}">
7+
<div class="post-nav-btn">
8+
<div class="post-nav-text"><span class="danger-text-color"><i class="fa fa-angle-left"></i> ~ </span><span class="hidden-md primary-text-color">{{ page.previous.title }}</span></div>
9+
</div>
10+
</a>
11+
{% endif %}
12+
</div>
13+
</div>
14+
<div class="col s2">
15+
<a href="{{ site.url }}/">
16+
<div class="leonids-icon">
17+
<i class="fa fa-leaf"></i>
18+
</div>
19+
</a>
20+
</div>
21+
<div class="col s5 right">
22+
<div class="post-nav-next">
23+
{% if page.next %}
24+
<a href="{{ site.url }}{{ page.next.url }}" title="{{ page.previous.title }}">
25+
<div class="post-nav-btn">
26+
<div class="post-nav-text"><span class="hidden-md primary-text-color">{{ page.next.title }}</span><span class="success-text-color"> ~ <i class="fa fa-angle-right"></i></span></div>
27+
</div>
28+
</a>
29+
{% endif %}
30+
</div>
31+
</div>
32+
</div>
33+
</nav>

_includes/read_time.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<span class="read-time" title="Estimated read time">
2+
{% assign words = content | number_of_words %}
3+
{% if words < 360 %}
4+
阅读时间 1min
5+
{% else %}
6+
阅读时间 {{ words | divided_by:180 }}mins
7+
{% endif %}
8+
</span>

_includes/sidebar.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{% if page.author %} {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %} {% endif %}
2+
3+
<div class="cover-card table-cell table-middle">
4+
{% if author.avatar %}
5+
<img src="{{ site.url }}/assets/img/{{ author.avatar }}" alt="" class="avatar">
6+
{% endif %}
7+
<a href="{{ site.url }}/" class="author_name">{{ author.name }}</a>
8+
<span class="author_job">{{ author.job }}</span>
9+
<span class="author_bio mbm">{{ author.bio }}</span>
10+
<nav class="nav">
11+
<ul class="nav-list">
12+
<li class="nav-item">
13+
<a href="{{ site.url }}/">home</a>
14+
<span>/</span>
15+
</li>
16+
{% for page in site.pages %} {% if page.title %}
17+
<li class="nav-item">
18+
<a href="{{ site.url }}{{ page.url }}">{{ page.title }}</a>
19+
{% unless forloop.last %}
20+
<span>/</span>
21+
{% endunless %}
22+
</li>
23+
{% endif %} {% endfor %}
24+
</ul>
25+
</nav>
26+
{% include social-links.html %}
27+
</div>

_includes/social-links.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<script type="text/javascript">
2+
// based on http://stackoverflow.com/a/10300743/280842
3+
function gen_mail_to_link(hs, subject) {
4+
var lhs,rhs;
5+
var p = hs.split('@');
6+
lhs = p[0];
7+
rhs = p[1];
8+
document.write("<a class=\"social-link-item\" target=\"_blank\" href=\"mailto");
9+
document.write(":" + lhs + "@");
10+
document.write(rhs + "?subject=" + subject + "\"><i class=\"fa fa-fw fa-envelope\"></i><\/a>");
11+
}
12+
</script>
13+
<div class="social-links">
14+
<ul>
15+
{% if author.email %}
16+
<li>
17+
<script>gen_mail_to_link('{{ author.email }}', 'Hello from website');</script>
18+
</li>
19+
{% endif %}
20+
{% if author.twitter %}<li><a href="http://twitter.com/{{ author.twitter }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-twitter"></i></a></li>{% endif %}
21+
{% if author.facebook %}<li><a href="http://facebook.com/{{ author.facebook }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-facebook"></i></a></li>{% endif %}
22+
{% if author.google.plus %}<li><a href="http://plus.google.com/+{{ author.google.plus }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-google-plus"></i> Google+</a></li>{% endif %}
23+
{% if author.linkedin %}<li><a href="http://linkedin.com/in/{{ author.linkedin }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-linkedin"></i></a></li>{% endif %}
24+
{% if author.xing %}<li><a href="http://www.xing.com/profile/{{ author.xing }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-xing"></i></a></li>{% endif %}
25+
{% if author.instagram %}<li><a href="http://instagram.com/{{ author.instagram }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-instagram"></i></a></li>{% endif %}
26+
{% if author.tumblr %}<li><a href="http://{{ author.tumblr }}.tumblr.com" class="social-link-item" target="_blank"><i class="fa fa-fw fa-tumblr"></i></a></li>{% endif %}
27+
{% if author.github %}<li><a href="http://github.com/{{ author.github }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-github"></i></a></li>{% endif %}
28+
{% if author.stackoverflow %}<li><a href="http://stackoverflow.com/users/{{ author.stackoverflow }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-stack-overflow"></i></a></li>{% endif %}
29+
{% if author.lastfm %}<li><a href="http://lastfm.com/user/{{ author.lastfm }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-music"></i></a></li>{% endif %}
30+
{% if author.dribbble %}<li><a href="http://dribbble.com/{{ author.dribbble }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-dribbble"></i></a></li>{% endif %}
31+
{% if author.pinterest %}<li><a href="http://www.pinterest.com/{{ author.pinterest }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-pinterest"></i></a></li>{% endif %}
32+
{% if author.foursquare %}<li><a href="http://foursquare.com/{{ author.foursquare }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-foursquare"></i></a></li>{% endif %}
33+
{% if author.steam %}<li><a href="http://steamcommunity.com/id/{{ author.steam }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-steam"></i></a></li>{% endif %}
34+
{% if author.youtube %}<li><a href="https://youtube.com/user/{{ author.youtube }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-youtube"></i></a></li>{% endif %}
35+
{% if author.soundcloud %}<li><a href="http://soundcloud.com/{{ author.soundcloud }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-soundcloud"></i></a></li>{% endif %}
36+
{% if author.weibo %}<li><a href="http://www.weibo.com/{{ author.weibo }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-weibo"></i></a></li>{% endif %}
37+
{% if author.flickr %}<li><a href="http://www.flickr.com/{{ author.flickr }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-flickr"></i></a></li>{% endif %}
38+
{% if author.codepen %}<li><a href="http://codepen.io/{{ author.codepen }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-codepen"></i></a></li>{% endif %}
39+
</ul>
40+
</div>

_layouts/default.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
<div class="row">
8+
<div class="col s12 m3">
9+
<div class="table cover">
10+
{% include sidebar.html %}
11+
</div>
12+
</div>
13+
<div class="col s12 m9">
14+
<div class="post-listing">
15+
{{ content }}
16+
{% include footer.html %}
17+
</div>
18+
</div>
19+
</div>
20+
{% include js.html %}
21+
</body>
22+
</html>

_layouts/page.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div id="page">
6+
<header class="page-header">
7+
<h2>{{ page.title }}</h2>
8+
</header>
9+
10+
<article class="page-content">
11+
{{ content }}
12+
</article>
13+
14+
15+
</div><!-- end page content -->
16+
17+
18+
{% if site.owner.disqus-shortname and page.comments == true %}
19+
<div id="disqus_thread"></div>
20+
{% include disqus.html %}
21+
{% endif %}

_layouts/post.html

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
layout: default
3+
---
4+
5+
<a class="btn" href= "{{ site.url }}/" >
6+
Home
7+
</a>
8+
{% if page.image.feature %}
9+
<div class="post-image-feature">
10+
<img class="feature-image" src=
11+
{% if page.image.feature contains 'https' or page.image.feature contains 'http' %}
12+
"{{ page.image.feature }}"
13+
{% else %}
14+
"{{ site.url }}/assets/img/{{ page.image.feature }}"
15+
{% endif %}
16+
alt="{{ page.title }} feature image">
17+
18+
{% if page.image.credit %}
19+
<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>
20+
{% endif %}
21+
</div><!-- /.image-wrap -->
22+
{% endif %}
23+
24+
25+
<div id="post">
26+
<header class="post-header">
27+
<h1 title="{{ page.title }}">{{ page.title }}</h1>
28+
<span class="post-meta">
29+
<span class="post-date">
30+
{{ page.date | date: "%Y/%m/%d" }}
31+
</span>
32+
33+
{% include read_time.html %}
34+
</span>
35+
36+
</header>
37+
38+
<article class="post-content">
39+
{{ content }}
40+
</article>
41+
</div>
42+
43+
<div class="share-buttons">
44+
<h6>Share on: </h6>
45+
<ul>
46+
<li>
47+
<a href="https://twitter.com/intent/tweet?text={{ site.url }}{{ page.url }}" class="twitter btn" title="Share on Twitter"><i class="fa fa-twitter"></i><span> Twitter</span></a>
48+
</li>
49+
<li>
50+
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}" class="facebook btn" title="Share on Facebook"><i class="fa fa-facebook"></i><span> Facebook</span></a>
51+
</li>
52+
<li>
53+
<a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" class="google-plus btn" title="Share on Google Plus"><i class="fa fa-google-plus"></i><span> Google+</span></a>
54+
</li>
55+
<li>
56+
<a href="https://news.ycombinator.com/submitlink?u={{ site.url }}{{ page.url }}" class="hacker-news btn" title="Share on Hacker News"><i class="fa fa-hacker-news"></i><span> Hacker News</span></a>
57+
</li>
58+
<li>
59+
<a href="https://www.reddit.com/submit?url={{ site.url }}{{ page.url }}" class="reddit btn" title="Share on Reddit"><i class="fa fa-reddit"></i><span> Reddit</span></a>
60+
</li>
61+
</ul>
62+
</div><!-- end share-buttons -->
63+
64+
{% if site.owner.disqus-shortname and page.comments == true %}
65+
<div id="disqus_thread"></div>
66+
{% include disqus.html %}
67+
{% endif %}

0 commit comments

Comments
 (0)