Skip to content

Commit 68c80c5

Browse files
committed
first commit
1 parent b425e22 commit 68c80c5

Some content is hidden

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

84 files changed

+5585
-5622
lines changed

.DS_Store

18 KB
Binary file not shown.

LICENSE

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

README.md

100644100755
Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
1-
aliencode.github.io
2-
===================
1+
# aliencode
2+
3+
## theme
4+
5+
Aliencode Strip
6+
7+
## emoji
8+
9+
http://www.emoji-cheat-sheet.com/
10+
11+
## 描述
12+
13+
1, more: true
14+
15+
使用 <!-- more --> 做为分界符
16+
17+
1, more: false
18+
19+
取第一段文本做为描述,这种方式不识别 emoji。
20+
21+
## 语法高亮
22+
23+
显示行号
24+
{% highlight ruby linenos %}
25+
def show
26+
...
27+
end
28+
{% endhighlight %}
29+
30+
或者
31+
32+
~~~ruby
33+
......
34+
~~~
35+
36+
## 输出模板代码
37+
由于jekll会识别文章中 {% %} 这样的标记,所以用以下方法输出这样的原文
38+
{%raw%} `{% include meta.html %}` {%endraw%}

_drafts/.DS_Store

6 KB
Binary file not shown.

_drafts/index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="posts">
6+
{% for post in paginator.posts //paginator只能在index.html中使用 %}
7+
<li class="posts-item">
8+
<span class="datetime">{{ post.date | date: "%Y - %m - %d" }}</span>
9+
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
10+
<div class="desc">
11+
{% if post.more %}
12+
{{ post.content | split: '<!-- more -->' | first }}
13+
{% else %}
14+
{{ post.excerpt }}
15+
{% endif %}
16+
</div>
17+
</li>
18+
{% endfor %}
19+
</div>
20+
21+
{% if paginator.total_pages > 1 %}
22+
<div id="pagination">
23+
<div class="paginator-list">
24+
{% for page in (1..paginator.total_pages) %}
25+
<a class="num{% if page == paginator.page %} current{% endif %}" href="/{%if page > 1 %}page{{ page }}/{% endif %}">{{ page }}</a>
26+
{% endfor %}
27+
</div>
28+
</div>
29+
{% endif %}
30+
31+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: post
3+
category : lessons
4+
tagline: "Supporting tagline"
5+
tags : [intro, beginner, jekyll, tutorial]
6+
---
7+
{% include JB/setup %}
8+
9+
10+
This is an example of a draft. Read more here: [http://jekyllrb.com/docs/drafts/](http://jekyllrb.com/docs/drafts/)

_includes/analytics.html

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

_includes/disqus.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{% if site.disqus %}
2+
<div class="comments">
3+
<div id="disqus_thread"></div>
4+
<script type="text/javascript">
5+
6+
var disqus_shortname = '{{ site.disqus }}';
7+
8+
(function() {
9+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
10+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
11+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
12+
})();
13+
14+
</script>
15+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
16+
</div>
17+
{% endif %}

_includes/meta.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<meta charset="utf-8" />
2+
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
3+
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
4+
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
5+
6+
{% if page.excerpt %}
7+
<meta name="description" content="{{ page.excerpt| strip_html }}" />
8+
<meta property="og:description" content="{{ page.excerpt| strip_html }}" />
9+
{% else %}
10+
<meta name="description" content="{{ site.description }}">
11+
<meta property="og:description" content="{{ site.description }}" />
12+
{% endif %}
13+
<meta name="author" content="{{ site.name }}" />
14+
15+
{% if page.title %}
16+
<meta property="og:title" content="{{ page.title }}" />
17+
<meta property="twitter:title" content="{{ page.title }}" />
18+
{% endif %}

_includes/postbody.html

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<article class="post">
2+
<h1>{{ page.title }}</h1>
3+
<div class="meta">
4+
{% if page.categories %}
5+
<span class="categories">
6+
<span class="icon-bookmark" title="Categories"></span>
7+
{% for category in page.categories %}
8+
<a href="/categories.html#{{ category }}" title="{{ category }}">{{ category }}</a>
9+
{% endfor %}
10+
</span>
11+
{% endif %}
12+
&nbsp;&nbsp;
13+
{% if page.tags %}
14+
<span class="tags">
15+
<span class="icon-tags" title="Tags"></span>
16+
{% for tag in page.tags %}
17+
<a href="/tags.html#{{ tag }}" title="{{ tag }}">#{{ tag }}</a>&nbsp;
18+
{% endfor %}
19+
</span>
20+
{% endif %}
21+
</div>
22+
<div class="entry">
23+
{{ content }}
24+
</div>
25+
26+
{% if page.previous or page.next %}
27+
<div id="page_nav">
28+
<div class="split">
29+
<i>上一篇 / 下一篇</i>
30+
<hr/>
31+
</div>
32+
<div>
33+
{% if page.next %}
34+
<li><a href='{{page.next.url}}'>{{page.next.title}}</a></li>
35+
{% endif %}
36+
</div>
37+
<div>
38+
{% if page.previous %}
39+
<li><a href='{{page.previous.url}}'>{{page.previous.title}}</a></li>
40+
{% endif %}
41+
</div>
42+
</div>
43+
{% endif %}
44+
45+
<div class="relatedposts">
46+
<div class="split">
47+
<i>相关内容</i>
48+
<hr/>
49+
</div>
50+
<!--使用tag做为相关阅读,,也可以使用 category-->
51+
{% for post in site.related_posts limit:5 %}
52+
{% assign match = false %}
53+
{% for category in post.categories %}
54+
{% if page.categories contains category %}
55+
{% assign match = true %}
56+
{% endif %}
57+
{% endfor %}
58+
{% if match %}
59+
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
60+
{% endif %}
61+
{% endfor %}
62+
</div>
63+
64+
<div class="copyright" style="text-align: right;padding-top: 20px">
65+
本文永久链接地址:<a title="{{page.title}}" href="{{site.url}}{{page.url}}">{{site.url}}{{page.url}}</a>, 转载请注明来源!<br />
66+
</div>
67+
68+
<div class="date" style="text-align: right;color: #ccc">
69+
Written on {{ page.date | date: "%Y, %m, %d" }}
70+
</div>
71+
72+
{% include disqus.html %}
73+
74+
{% if page.comments %}
75+
<!-- 多说评论框 start -->
76+
<div class="ds-thread" data-thread-key="{{page.pid}}" data-title="{{ page.title }}" data-url="{{page.url}}"></div>
77+
<!-- 多说评论框 end -->
78+
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
79+
<script type="text/javascript">
80+
var duoshuoQuery = {short_name:"xguo"};
81+
(function() {
82+
var ds = document.createElement('script');
83+
ds.type = 'text/javascript';ds.async = true;
84+
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
85+
ds.charset = 'UTF-8';
86+
(document.getElementsByTagName('head')[0]
87+
|| document.getElementsByTagName('body')[0]).appendChild(ds);
88+
})();
89+
</script>
90+
<!-- 多说公共JS代码 end -->
91+
{% endif %}
92+
93+
94+
95+
</article>
96+

0 commit comments

Comments
 (0)