cosy-jekyll-theme 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +22 -0
- data/_includes/browser-upgrade.html +1 -0
- data/_includes/disqus_comments.html +26 -0
- data/_includes/feed-footer.html +1 -0
- data/_includes/footer.html +33 -0
- data/_includes/gallery +21 -0
- data/_includes/head.html +42 -0
- data/_includes/header.html +63 -0
- data/_includes/icons.html +3 -0
- data/_includes/pagination.html +66 -0
- data/_includes/read-more.html +20 -0
- data/_includes/scripts.html +22 -0
- data/_layouts/home.html +25 -0
- data/_layouts/page.html +37 -0
- data/_layouts/post.html +60 -0
- data/_sass/_animations.scss +327 -0
- data/_sass/_coderay.scss +66 -0
- data/_sass/_elements.scss +156 -0
- data/_sass/_grid.scss +47 -0
- data/_sass/_mixins.scss +381 -0
- data/_sass/_page.scss +649 -0
- data/_sass/_reset.scss +156 -0
- data/_sass/_rouge.scss +73 -0
- data/_sass/_site.scss +56 -0
- data/_sass/_typography.scss +125 -0
- data/_sass/_variables.scss +46 -0
- data/_sass/vendor/font-awesome/_animated.scss +34 -0
- data/_sass/vendor/font-awesome/_bordered-pulled.scss +25 -0
- data/_sass/vendor/font-awesome/_core.scss +12 -0
- data/_sass/vendor/font-awesome/_fixed-width.scss +6 -0
- data/_sass/vendor/font-awesome/_icons.scss +697 -0
- data/_sass/vendor/font-awesome/_larger.scss +13 -0
- data/_sass/vendor/font-awesome/_list.scss +19 -0
- data/_sass/vendor/font-awesome/_mixins.scss +26 -0
- data/_sass/vendor/font-awesome/_path.scss +15 -0
- data/_sass/vendor/font-awesome/_rotated-flipped.scss +20 -0
- data/_sass/vendor/font-awesome/_stacked.scss +20 -0
- data/_sass/vendor/font-awesome/_variables.scss +708 -0
- data/_sass/vendor/font-awesome/font-awesome.scss +17 -0
- data/assets/css/main.scss +26 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +655 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/js/fitvids.min.js +1 -0
- data/assets/js/main.js +20 -0
- metadata +134 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 18422957ad9105ef02666cd7fce572f109bbb009
|
4
|
+
data.tar.gz: eb87b9d5ee3dc040e8da77cb5f6db9e930bec3e3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 35567536783605389c9b3090c0c959043d7524ffeae65f1030e3c96e1c7791950be6264ae44227525ff9fbd1dea082df218721e76ed177ecd6eff72c60d2daff
|
7
|
+
data.tar.gz: 382aa8988648f36efc5f02453dcc69c4ae32b5ef54a9d70be10cca2df264f7620d306a6ff4c6529b5e57670cb4d7b4575ff72da3c3f584b660f57ed06413a6e0
|
data/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
## [tw93.github.io](http://tw93.github.io/)
|
2
|
+
|
3
|
+
### Use:
|
4
|
+
- gems: [cosy-jekyll-theme](https://rubygems.org/gems/cosy-jekyll-theme)
|
5
|
+
|
6
|
+
- GEMFILE:
|
7
|
+
> gem 'cosy-jekyll-theme', '~> 1.0', '>= 1.0.2'
|
8
|
+
|
9
|
+
- install
|
10
|
+
> gem install cosy-jekyll-theme
|
11
|
+
|
12
|
+
### QR code
|
13
|
+

|
14
|
+
|
15
|
+
### PC Preview
|
16
|
+
|
17
|
+

|
18
|
+
|
19
|
+
## H5 Preview
|
20
|
+
|
21
|
+
<img src="http://tw93.github.io/images/demo/1.PNG" width="280"/> <img src="http://tw93.github.io/images/demo/2.PNG" width="280"/> <img src="http://tw93.github.io/images/demo/3.PNG" width="280"/>
|
22
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<!--[if lt IE 10]><div class="upgrade"><strong><a href="http://whatbrowser.org/">Your browser is quite old!</strong> Why not upgrade to a different browser to better enjoy this site?</a></div><![endif]-->
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{% if site.disqus_shortname %}
|
2
|
+
<script type="text/javascript">
|
3
|
+
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
4
|
+
var disqus_shortname = '{{ site.disqus_shortname }}'; // required: replace example with your forum shortname
|
5
|
+
|
6
|
+
/* * * DON'T EDIT BELOW THIS LINE * * */
|
7
|
+
(function () {
|
8
|
+
var dsq = document.createElement('script');
|
9
|
+
dsq.type = 'text/javascript';
|
10
|
+
dsq.async = true;
|
11
|
+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
12
|
+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
13
|
+
})();
|
14
|
+
|
15
|
+
/* * * DON'T EDIT BELOW THIS LINE * * */
|
16
|
+
(function () {
|
17
|
+
var s = document.createElement('script');
|
18
|
+
s.async = true;
|
19
|
+
s.type = 'text/javascript';
|
20
|
+
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
21
|
+
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
22
|
+
}());
|
23
|
+
</script>
|
24
|
+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>
|
25
|
+
</noscript>
|
26
|
+
{% endif %}
|
@@ -0,0 +1 @@
|
|
1
|
+
<p><a href="{{ site.url }}{{ post.url }}">{{ post.title | xml_escape }}</a> was originally published by {{ site.owner.name }} at <a href="{{ site.url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<span>© {{ site.time | date: '%Y' }}<a href="https://rubygems.org/gems/cosy-jekyll-theme" rel="nofollow"> Cosy Jekyll Theme. </a>By <a href="https://github.com/tw93/tw93.github.io" rel="nofollow">Tw93</a></span>
|
2
|
+
|
3
|
+
<script>
|
4
|
+
|
5
|
+
var article = document.getElementById('T_content'),
|
6
|
+
aList = article && article.getElementsByTagName('a');
|
7
|
+
|
8
|
+
if (aList && aList.length > 0) {
|
9
|
+
for (var i = 0; i < aList.length; i++) {
|
10
|
+
aList[i].target = '_blank';
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
function hereDoc(f) {
|
15
|
+
return f.toString().replace(/^[^\/]+\/\*!?\s?/, '').replace(/\*\/[^\/]+$/, '');
|
16
|
+
}
|
17
|
+
var string = hereDoc(function () {/*
|
18
|
+
|
19
|
+
|
20
|
+
_ ___ _____ _ _
|
21
|
+
| | |_ | / ___| (_) | |
|
22
|
+
| | ___ __ _ _ __ _ __ | | __ ___ ____ _\ `--. ___ _ __ _ _ __ | |_
|
23
|
+
| | / _ \/ _` | '__| '_ \ | |/ _` \ \ / / _` |`--. \/ __| '__| | '_ \| __|
|
24
|
+
| |___| __/ (_| | | | | | | /\__/ / (_| |\ V / (_| /\__/ / (__| | | | |_) | |_
|
25
|
+
\_____/\___|\__,_|_| |_| |_| \____/ \__,_| \_/ \__,_\____/ \___|_| |_| .__/ \__|
|
26
|
+
|
27
|
+
|
28
|
+
Tw93 Stay hungry. Stay foolish.
|
29
|
+
|
30
|
+
*/
|
31
|
+
});
|
32
|
+
console.log(string);
|
33
|
+
</script>
|
data/_includes/gallery
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
{% assign images = include.images | split:" " %}
|
2
|
+
{% assign caption = include.caption %}
|
3
|
+
{% assign cols = include.cols %}
|
4
|
+
|
5
|
+
{% case cols %}
|
6
|
+
{% when 1 %}
|
7
|
+
{% assign class = "" %}
|
8
|
+
{% when 2 %}
|
9
|
+
{% assign class = "half" %}
|
10
|
+
{% when 3 %}
|
11
|
+
{% assign class = "third" %}
|
12
|
+
{% else %}
|
13
|
+
{% assign class = "" %}
|
14
|
+
{% endcase %}
|
15
|
+
|
16
|
+
<figure {% if class != "" %}class="{{ class }}"{% endif %}>
|
17
|
+
{% for image in images %}
|
18
|
+
<a href="{{ image }}"><img src="{{ image }}" alt=""></a>
|
19
|
+
{% endfor %}
|
20
|
+
<figcaption>{{ caption }}</figcaption>
|
21
|
+
</figure>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
<meta charset="utf-8">
|
2
|
+
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title>
|
3
|
+
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
4
|
+
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
|
5
|
+
|
6
|
+
<!-- Open Graph -->
|
7
|
+
<meta property="og:locale" content="{{ site.locale }}">
|
8
|
+
<meta property="og:type" content="article">
|
9
|
+
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
10
|
+
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
11
|
+
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
12
|
+
<meta property="og:site_name" content="{{ site.title }}">
|
13
|
+
{% if page.image.feature %}<meta property="og:image" content="{{ site.url }}/images/{{ page.image.feature }}">
|
14
|
+
{% else %}<meta property="og:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">{% endif %}
|
15
|
+
|
16
|
+
{% if site.google_verify %}<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %}
|
17
|
+
{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %}
|
18
|
+
|
19
|
+
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
|
20
|
+
<link rel="canonical" href="{{ canonical }}">
|
21
|
+
<link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
|
22
|
+
|
23
|
+
<!-- http://t.co/dKP3o1e -->
|
24
|
+
<meta name="HandheldFriendly" content="True">
|
25
|
+
<meta name="MobileOptimized" content="320">
|
26
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
|
27
|
+
|
28
|
+
<!-- For all browsers -->
|
29
|
+
<link rel="stylesheet" href="{{ site.url }}/assets/css/main.css">
|
30
|
+
<!-- Webfonts -->
|
31
|
+
<link href="//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic" rel="stylesheet" type="text/css">
|
32
|
+
|
33
|
+
<meta http-equiv="cleartype" content="on">
|
34
|
+
|
35
|
+
|
36
|
+
{% include icons.html %}
|
37
|
+
|
38
|
+
{% if page.image.background or site.background %}
|
39
|
+
{% capture background %}{% if page.image.background %}{{ page.image.background }}{% else %}{{ site.background }}{% endif %}{% endcapture %}
|
40
|
+
{% unless background contains 'http://' or background contains 'https://' %}{% capture background %}{{ site.url }}/images/{{ background }}{% endcapture %}{% endunless %}
|
41
|
+
<style type="text/css">body {background-image:url({{ background }});}</style>
|
42
|
+
{% endif %}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
{% capture site_cats %}{% for cat in site.categories %}{{ cat | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
2
|
+
{% assign cats_list = site_cats | split:',' | sort %}
|
3
|
+
|
4
|
+
<div class="header-menu header-menu-top" id="J_header">
|
5
|
+
<ul class="header-item-container">
|
6
|
+
<li class="header-item-title">
|
7
|
+
<a href="{{site.url}}/">
|
8
|
+
{% if site.logo %}
|
9
|
+
<img class="logo" src="{{site.url}}/{{ site.logo }}" alt="{{ site.title }}">
|
10
|
+
{% endif %}
|
11
|
+
<a href="{{site.url}}/" class="title"> {{ site.title }}</a>
|
12
|
+
</a>
|
13
|
+
</li>
|
14
|
+
{% for menu in site.menu reversed %}
|
15
|
+
{% assign class = nil %}
|
16
|
+
{% if ((page.url contains menu.url and menu.url != '/') or (page.url == '/index.html' and menu.url == '/')) %}
|
17
|
+
{% assign class = 'active' %}
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
{% if menu.type == 'categories' %}
|
21
|
+
<li class="header-item {{class}}"><a href="{{site.url}}{{menu.url}}"><h3>{{ menu.title }}</h3></a>
|
22
|
+
<ul class="header-submenu">
|
23
|
+
{% for item in (0..site.categories.size) %}{% unless forloop.last %}
|
24
|
+
{% capture this_word %}{{ cats_list[item] | strip_newlines }}{% endcapture %}
|
25
|
+
<li class="sub-item"><a href="{{site.url}}/categories/#{{this_word}}">{{this_word}}</a></li>
|
26
|
+
{% endunless %}{% endfor %}
|
27
|
+
</ul>
|
28
|
+
</li>
|
29
|
+
{% elsif menu.submenu %}
|
30
|
+
<li class="header-item {{class}}"><a href="{{site.url}}{{menu.url}}"><h3>{{ menu.title }}</h3></a>
|
31
|
+
<ul class="header-submenu">
|
32
|
+
{% for sub in menu.submenu %}
|
33
|
+
<li class="sub-item"><a href="{{site.url}}{{sub.url}}">{{sub.title}}</a></li>
|
34
|
+
{% endfor %}
|
35
|
+
</ul>
|
36
|
+
</li>
|
37
|
+
{% else %}
|
38
|
+
{% if menu.url contains 'http://' or menu.url contains 'https://' %}
|
39
|
+
<li class="header-item {{class}}"><a href="{{menu.url}}" target="_blank"><h3>{{ menu.title }}</h3></a></li>
|
40
|
+
{% else %}
|
41
|
+
<li class="header-item {{class}}"><a href="{{site.url}}{{menu.url}}"><h3>{{ menu.title }}</h3></a></li>
|
42
|
+
{% endif %}
|
43
|
+
{% endif %}
|
44
|
+
{% endfor %}
|
45
|
+
</ul>
|
46
|
+
</div>
|
47
|
+
<div class="entry-header">
|
48
|
+
<div class="header-title">
|
49
|
+
<h1>{{ page.title }}</h1>
|
50
|
+
{% if page.date %}
|
51
|
+
<h2><span class="entry-date date published updated"><time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%Y-%m-%d" }}</time></span>
|
52
|
+
</h2>
|
53
|
+
{% endif %}
|
54
|
+
|
55
|
+
{% if site.reading_time and page.layout == 'post' %}
|
56
|
+
<p class="entry-reading-time">
|
57
|
+
<i class="fa fa-clock-o"></i>
|
58
|
+
{% assign readtime = content | strip_html | number_of_words | divided_by:site.words_per_minute %}
|
59
|
+
Reading time ~{% if readtime <= 1 %}1 minute{% else %}{{ readtime }} minutes{% endif %}
|
60
|
+
</p>
|
61
|
+
{% endif %}
|
62
|
+
</div>
|
63
|
+
</div>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
{% if paginator.total_pages > 1 %}
|
2
|
+
<div class="pagination">
|
3
|
+
<ul class="inline-list">
|
4
|
+
{% comment %} Link for previous page {% endcomment %}
|
5
|
+
{% if paginator.previous_page %}
|
6
|
+
{% if paginator.previous_page == 1 %}
|
7
|
+
<li><a href="{{ site.url }}/" class="btn">Previous</a></li>
|
8
|
+
{% else %}
|
9
|
+
<li><a href="{{ site.url }}/page{{ paginator.previous_page }}/" class="btn">Previous</a></li>
|
10
|
+
{% endif %}
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
{% comment %} First page {% endcomment %}
|
14
|
+
{% if paginator.page == 1 %}
|
15
|
+
<li><strong class="current-page">1</strong></li>
|
16
|
+
{% else %}
|
17
|
+
<li><a href="{{ site.url }}/">1</a></li>
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
{% assign page_start = 2 %}
|
21
|
+
{% if paginator.page > 4 %}
|
22
|
+
{% assign page_start = paginator.page | minus: 2 %}
|
23
|
+
{% comment %} Ellipsis for truncated links {% endcomment %}
|
24
|
+
<li>…</li>
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
{% assign page_end = paginator.total_pages | minus: 1 %}
|
28
|
+
{% assign pages_to_end = paginator.total_pages | minus: paginator.page %}
|
29
|
+
{% if pages_to_end > 4 %}
|
30
|
+
{% assign page_end = paginator.page | plus: 2 %}
|
31
|
+
{% endif %}
|
32
|
+
|
33
|
+
{% for index in (page_start..page_end) %}
|
34
|
+
{% if index == paginator.page %}
|
35
|
+
<li><strong class="current-page">{{index}}</strong></li>
|
36
|
+
{% else %}
|
37
|
+
{% comment %} Distance from current page and this link {% endcomment %}
|
38
|
+
{% assign dist = paginator.page | minus: index %}
|
39
|
+
{% if dist < 0 %}
|
40
|
+
{% comment %} Distance must be a positive value {% endcomment %}
|
41
|
+
{% assign dist = 0 | minus: dist %}
|
42
|
+
{% endif %}
|
43
|
+
<li><a href="{{ site.url }}/page{{ index }}/">{{index}}</a></li>
|
44
|
+
{% endif %}
|
45
|
+
{% endfor %}
|
46
|
+
|
47
|
+
{% comment %} Ellipsis for truncated links {% endcomment %}
|
48
|
+
{% if pages_to_end > 3 %}
|
49
|
+
<li>…</li>
|
50
|
+
{% endif %}
|
51
|
+
|
52
|
+
{% if paginator.page == paginator.total_pages %}
|
53
|
+
<li><strong class="current-page">{{ paginator.page }}</strong></li>
|
54
|
+
{% else %}
|
55
|
+
<li><a href="{{ site.url }}/page{{ paginator.total_pages }}/">{{ paginator.total_pages }}</a></li>
|
56
|
+
{% endif %}
|
57
|
+
|
58
|
+
{% comment %}
|
59
|
+
Link next page
|
60
|
+
{% endcomment %}
|
61
|
+
{% if paginator.next_page %}
|
62
|
+
<li><a href="{{ site.url }}/page{{ paginator.next_page }}/" class="btn">Next</a></li>
|
63
|
+
{% endif %}
|
64
|
+
</ul>
|
65
|
+
</div>
|
66
|
+
{% endif %}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="read-more">
|
2
|
+
{% for post in site.related_posts limit:1 %}
|
3
|
+
<div class="read-more-header">
|
4
|
+
<a href="{{ site.url }}{{ page.previous.url }}" class="read-more-btn">Read More</a>
|
5
|
+
</div>
|
6
|
+
<div class="read-more-content">
|
7
|
+
<h3><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h3>
|
8
|
+
<p>{% if post.summary %}{{ post.summary }}…{% endif %} <a href="{{ site.url }}{{ post.url }}">Continue
|
9
|
+
reading</a></p>
|
10
|
+
</div>
|
11
|
+
{% endfor %}
|
12
|
+
<div class="read-more-list">
|
13
|
+
{% for post in site.related_posts limit:2 offset:1 %}
|
14
|
+
<div class="list-item">
|
15
|
+
<h4><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h4>
|
16
|
+
<span>Published on {{ post.date | date: "%Y-%m-%d" }}</span>
|
17
|
+
</div>
|
18
|
+
{% endfor %}
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<script type="text/javascript" src="{{ site.url }}/assets/js/fitvids.min.js"></script>
|
2
|
+
<script type="text/javascript" src="{{ site.url }}/assets/js/main.js"></script>
|
3
|
+
|
4
|
+
{% if site.google_analytics %}
|
5
|
+
<!-- Asynchronous Google Analytics snippet -->
|
6
|
+
<script type="text/javascript">
|
7
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
8
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
9
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
10
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
11
|
+
|
12
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
13
|
+
ga('require', 'linkid', 'linkid.js');
|
14
|
+
ga('send', 'pageview');
|
15
|
+
</script>
|
16
|
+
{% endif %}
|
17
|
+
<script type="text/javascript">
|
18
|
+
fitvids();
|
19
|
+
</script>
|
20
|
+
|
21
|
+
{% if page.comments != false %}{% include disqus_comments.html %}{% endif %}
|
22
|
+
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html class="no-js" lang="en">
|
3
|
+
<head>
|
4
|
+
{% include head.html %}
|
5
|
+
</head>
|
6
|
+
|
7
|
+
<body id="post-index">
|
8
|
+
|
9
|
+
{% include browser-upgrade.html %}
|
10
|
+
{% include header.html %}
|
11
|
+
|
12
|
+
<div id="main" role="main">
|
13
|
+
{{ content }}
|
14
|
+
</div>
|
15
|
+
|
16
|
+
{% include scripts.html %}
|
17
|
+
|
18
|
+
<div class="footer-wrapper">
|
19
|
+
<footer role="contentinfo">
|
20
|
+
{% include footer.html %}
|
21
|
+
</footer>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
</body>
|
25
|
+
</html>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html class="no-js" lang="en">
|
3
|
+
<head>
|
4
|
+
{% include head.html %}
|
5
|
+
</head>
|
6
|
+
|
7
|
+
<body id="page">
|
8
|
+
|
9
|
+
{% include browser-upgrade.html %}
|
10
|
+
{% include header.html %}
|
11
|
+
|
12
|
+
<div id="main" role="main">
|
13
|
+
<article class="hentry">
|
14
|
+
<div class="entry-content">
|
15
|
+
{{ content }}
|
16
|
+
<footer class="entry-meta">
|
17
|
+
{% if page.modified %}<span>Updated on <span class="entry-date date published updated"><time
|
18
|
+
datetime="{{ page.modified }}">{{ page.modified | date: "%B %d, %Y" }}</time></span></span>
|
19
|
+
<span class="author vcard"><span class="fn">{{ site.owner.name }}</span></span>{% endif %}
|
20
|
+
</footer>
|
21
|
+
</div>
|
22
|
+
{% if page.comments != false and site.disqus_shortname %}
|
23
|
+
<section id="disqus_thread"></section>
|
24
|
+
{% endif %}
|
25
|
+
</article>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
{% include scripts.html %}
|
29
|
+
|
30
|
+
<div class="footer-wrapper">
|
31
|
+
<footer role="contentinfo">
|
32
|
+
{% include footer.html %}
|
33
|
+
</footer>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
</body>
|
37
|
+
</html>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html class="no-js" lang="en">
|
3
|
+
<head>
|
4
|
+
{% include head.html %}
|
5
|
+
</head>
|
6
|
+
|
7
|
+
<body id="post" {% if page.image.feature %}class="feature" {% endif %}>
|
8
|
+
|
9
|
+
{% include browser-upgrade.html %}
|
10
|
+
{% include header.html %}
|
11
|
+
|
12
|
+
<div id="main" role="main">
|
13
|
+
<article class="hentry">
|
14
|
+
<div class="entry-content">
|
15
|
+
|
16
|
+
{% if page.image.feature %}
|
17
|
+
<div class="entry-image-index">
|
18
|
+
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }}">
|
19
|
+
{% if page.image.credit %}
|
20
|
+
<div class="image-credit">Image source:
|
21
|
+
<a target="_blank" href="{{ page.image.creditlink }}">{{page.image.credit }}</a>
|
22
|
+
</div>
|
23
|
+
{% endif %}
|
24
|
+
</div>
|
25
|
+
{% endif %}
|
26
|
+
<h1 class="post-title entry-title">{{ page.title }}</h1>
|
27
|
+
{{ content }}
|
28
|
+
<footer class="entry-meta">
|
29
|
+
<span class="entry-tags">
|
30
|
+
{% for tag in page.tags %}
|
31
|
+
<a href="{{ site.url }}/tags#{{ tag }}" title="Pages tagged {{ tag }}" class="tag">
|
32
|
+
<span class="term">{{ tag }}</span>
|
33
|
+
</a>
|
34
|
+
{% unless forloop.last %}{% endunless %}{% endfor %}
|
35
|
+
</span>
|
36
|
+
<span class="author vcard">
|
37
|
+
<span class="fn">{{ site.owner.name }}</span>
|
38
|
+
</span>
|
39
|
+
</footer>
|
40
|
+
</div>
|
41
|
+
{% if page.comments != false and site.disqus_shortname %}
|
42
|
+
<section id="disqus_thread">Disqus正在推倒墙...</section>
|
43
|
+
{% endif %}
|
44
|
+
|
45
|
+
{% if site.related_posts.size > 0 %}
|
46
|
+
{% include read-more.html %}
|
47
|
+
{% endif %}
|
48
|
+
</article>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
{% include scripts.html %}
|
52
|
+
|
53
|
+
<div class="footer-wrapper">
|
54
|
+
<footer role="contentinfo">
|
55
|
+
{% include footer.html %}
|
56
|
+
</footer>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
</body>
|
60
|
+
</html>
|