Skip to content

Commit 64860fa

Browse files
committed
init blog settings
0 parents  commit 64860fa

File tree

114 files changed

+4715
-0
lines changed

Some content is hidden

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

114 files changed

+4715
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.py]
14+
indent_style = space
15+
indent_size = 4

.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Ignore docs files
2+
_gh_pages
3+
_site
4+
.ruby-version
5+
6+
# Numerous always-ignore extensions
7+
*.diff
8+
*.err
9+
*.orig
10+
*.log
11+
*.rej
12+
*.swo
13+
*.swp
14+
*.zip
15+
*.vi
16+
*~
17+
18+
# OS or Editor folders
19+
.DS_Store
20+
._*
21+
Thumbs.db
22+
.cache
23+
.project
24+
.settings
25+
.tmproj
26+
*.esproj
27+
nbproject
28+
*.sublime-project
29+
*.sublime-workspace
30+
.idea
31+
32+
# Komodo
33+
*.komodoproject
34+
.komodotools
35+
36+
# grunt-html-validation
37+
validation-status.json
38+
validation-report.json
39+
40+
# Folders to ignore
41+
node_modules
42+
bower_components
43+
44+
# sass
45+
.sass-cache

404.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: default
3+
title: "404: Page not found"
4+
permalink: 404.html
5+
---
6+
7+
<div class="page">
8+
<h1 class="page-title">404: Page not found</h1>
9+
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}/">Head back home</a> to try finding it again.</p>
10+
</div>

LICENSE.md

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

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Codinfox-Lanyon
2+
3+
This is a jekyll template based on [Lanyon](https://github.com/poole/lanyon). See a live demo [here](http://codinfox.github.io).
4+
5+
**If you like this project, PLEASE give it a star.**
6+
7+
Lanyon is an unassuming [Jekyll](http://jekyllrb.com) theme that places content first by tucking away navigation in a hidden drawer. It's based on [Poole](http://getpoole.com), the Jekyll butler.
8+
9+
All the configurations are inside either `_config.yml` or `_config.scss`. The options are fairly straightforward.
10+
11+
The theme supports:
12+
13+
1. Theme colors: you can choose your favorite theme color
14+
2. Changable sidebar locations
15+
3. Integration of FontAwesome, MathJax, Disqus and Google Analytics
16+
4. and numerous improvements over original Lanyon
17+
18+
19+
## License
20+
21+
Open sourced under the [MIT license](LICENSE.md).
22+
23+
<3

_config.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Site Info
2+
title: ratsgo's blog
3+
tagline: 'for textmining'
4+
description: 'blog for textmining'
5+
baseurl: "/ratsgo"
6+
url: http://ratsgo.github.io
7+
logo: '/public/logo.png'
8+
encoding: utf-8
9+
10+
# Site configurations
11+
gems:
12+
- jekyll-paginate
13+
markdown: kramdown
14+
kramdown:
15+
input: GFM
16+
excerpt_separator: "<!-- more -->"
17+
sass:
18+
style: compressed
19+
sass_dir: _scss
20+
paginate: 5
21+
paginate_path: '/blog/page:num'
22+
permalink: pretty
23+
version: 1.0.0
24+
25+
# About/contact
26+
author:
27+
name: ratsgo
28+
description: <strong>보물찾기</strong> 그리운 마을, 그 먼 바다에 이르기까지
29+
gravatar: 0a638fc7996869b1b67fb90ccf77dcfe # md5 hash of your email address
30+
contact:
31+
linkedin: https://www.linkedin.com/in/gichanglee/
32+
github: https://github.com/ratsgo
33+
facebook: https://www.facebook.com/gichanglee.84
34+
#twitter: <hide>
35+
#weibo: <hide>
36+
37+
38+
# Navigation (2nd level links supported)
39+
nav:
40+
Home:
41+
- '/'
42+
Contents:
43+
- '/blog/'
44+
- { Categories: '/blog/categories/' }
45+
- { Tags: '/blog/tags/' }
46+
About:
47+
- '/about/'
48+
49+
# Where are tags and categories displayed
50+
tag_page: '/blog/tags/'
51+
category_page: '/blog/categories/'
52+
53+
hero:
54+
image: /public/img/picture.jpg
55+
caption: Original Artwork &copy; Pablo Picasso. Girl before a Mirror. Boisgeloup, March 1932. Oil on canvas
56+
57+
# Puglins
58+
mathjax: true # whether support mathjax
59+
google_analytics_token: 'UA-93172815-1' # leave blank if you don't want google analytics
60+
disqus_short_name: 'ratsgo' # leave blank if you don't want disqus
61+

_includes/head.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<head>
2+
<link href="http://gmpg.org/xfn/11" rel="profile">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
5+
6+
<!-- Enable responsiveness on mobile devices-->
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
8+
9+
<title>
10+
{% if page.title == "Home" %}
11+
{{ site.title }} &middot; {{ site.tagline }}
12+
{% else %}
13+
{{ page.title }} &middot; {{ site.title }}
14+
{% endif %}
15+
</title>
16+
17+
<!-- CSS -->
18+
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/main.css">
19+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
20+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700%7CPT+Sans:400">
21+
22+
<!-- Icons -->
23+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}/public/apple-touch-icon-precomposed.png">
24+
<link rel="shortcut icon" href="{{ site.baseurl }}/public/favicon.ico">
25+
26+
<!-- RSS -->
27+
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
28+
29+
{% if site.mathjax %}
30+
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_SVG"> </script>
31+
<script type="text/x-mathjax-config">
32+
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], processEscapes: true } });
33+
</script>
34+
{% endif %}
35+
</head>

_includes/sidebar.html

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
2+
styles, `#sidebar-checkbox` for behavior. -->
3+
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
4+
5+
<!-- Toggleable sidebar -->
6+
<div class="sidebar" id="sidebar">
7+
<div class="sidebar-item">
8+
<div class="sidebar-personal-info">
9+
<div class="sidebar-personal-info-section">
10+
<a href="http://gravatar.com/{{ site.author.gravatar }}">
11+
<img src="http://www.gravatar.com/avatar/{{ site.author.gravatar }}?s=350" title="View on Gravatar" alt="View on Gravatar" />
12+
</a>
13+
</div>
14+
<div class="sidebar-personal-info-section">
15+
<p>{{ site.author.description }}</p>
16+
</div>
17+
{% if site.author.contact %}
18+
{% assign len = site.author.contact | size %}
19+
{% assign current_index = 0 %}
20+
<div class="sidebar-personal-info-section">
21+
<p> Follow me:
22+
{% for contact in site.author.contact %}
23+
{% assign iconname = contact[0] %}
24+
{% if contact[0] == 'email' %}
25+
{% assign iconname = 'envelope' %}
26+
{% endif %}
27+
<a href="{{ contact[1] }}">
28+
<i class="fa fa-{{ iconname }}" aria-hidden="true"></i>
29+
</a>
30+
{% assign current_index = current_index | plus: 1 %}
31+
{% if current_index != len %}|{% endif %}
32+
{% endfor %}
33+
</p>
34+
</div>
35+
{% endif %}
36+
</div>
37+
</div>
38+
39+
<nav class="sidebar-nav">
40+
{% for nav in site.nav %}
41+
{% assign is_relative = nav[1][0] | slice: 0 %}
42+
{% assign url = nav[1][0] %}
43+
{% if is_relative == '/' %}
44+
{% assign url = nav[1][0] | prepend: site.baseurl %}
45+
{% endif %}
46+
47+
{% assign sub_len = nav[1] | size | minus: 1 %}
48+
49+
<span class="{% if sub_len > 0 %}foldable{% endif %}">
50+
<a class="sidebar-nav-item {% if page.url == nav[1][0] %}active{% endif %}" href="{{ url }}">
51+
{{ nav[0] }}
52+
</a>
53+
54+
{% for i in (1..sub_len) %}
55+
{% for sub_nav in nav[1][i] %}
56+
{% assign sub_is_relative = sub_nav[1] | slice: 0 %}
57+
{% assign sub_url = sub_nav[1] %}
58+
{% if sub_is_relative == '/' %}
59+
{% assign sub_url = sub_nav[1] | prepend: site.baseurl %}
60+
{% endif %}
61+
<a class="sidebar-nav-item sidebar-nav-item-sub {% if page.url == sub_nav[1] %}active{% endif %}" href="{{ sub_url }}">
62+
{{ sub_nav[0] }}
63+
</a>
64+
{% endfor %}
65+
{% endfor %}
66+
</span>
67+
68+
{% endfor %}
69+
70+
</nav>
71+
72+
<div class="sidebar-item">
73+
<p>
74+
&copy; {{ site.time | date: '%Y' }} {{ site.author.name }}. This work is liscensed under <a href="http://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>.
75+
</p>
76+
</div>
77+
78+
<div class="sidebar-item">
79+
<p>
80+
Powered by <a href="http://jekyllrb.com">jekyll</a>
81+
</p>
82+
</div>
83+
</div>

_layouts/default.html

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include sidebar.html %}
9+
10+
<!-- Wrap is the content to shift when toggling the sidebar. We wrap the
11+
content to avoid any CSS collisions with our real content. -->
12+
<div class="wrap">
13+
<div class="masthead">
14+
<div class="container">
15+
<h3 class="masthead-title">
16+
<a href="{{ site.baseurl }}/" title="Home" title="{{ site.title }}">
17+
<img class="masthead-logo" src="{{ site.baseurl }}{{ site.logo }}"/>
18+
</a>
19+
<small>{{ site.tagline }}</small>
20+
</h3>
21+
</div>
22+
</div>
23+
24+
<div class="container content">
25+
{{ content }}
26+
</div>
27+
</div>
28+
29+
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
30+
31+
<script>
32+
(function(document) {
33+
var toggle = document.querySelector('.sidebar-toggle');
34+
var sidebar = document.querySelector('#sidebar');
35+
var checkbox = document.querySelector('#sidebar-checkbox');
36+
37+
document.addEventListener('click', function(e) {
38+
var target = e.target;
39+
40+
if (target === toggle) {
41+
checkbox.checked = !checkbox.checked;
42+
e.preventDefault();
43+
} else if (checkbox.checked && !sidebar.contains(target)) {
44+
/* click outside the sidebar when sidebar is open */
45+
checkbox.checked = false;
46+
}
47+
}, false);
48+
})(document);
49+
</script>
50+
{% if site.google_analytics_token %}
51+
<script>
52+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
53+
54+
ga('create', '{{ site.google_analytics_token }}', 'auto');
55+
ga('send', 'pageview');
56+
</script>
57+
{% endif %}
58+
</body>
59+
{% if site.disqus_short_name %}
60+
<script id="dsq-count-scr" src="//{{ site.disqus_short_name }}.disqus.com/count.js" async></script>
61+
{% endif %}
62+
</html>

_layouts/page.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="page">
6+
<h1 class="page-title">{{ page.title }}</h1>
7+
{{ content }}
8+
</div>

0 commit comments

Comments
 (0)