cosy-jekyll-theme 1.0.4 → 1.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b161bf53758479ede79d6344bf5f5bfacf1c02a
4
- data.tar.gz: c1d8f628ad65cfccb6eb78ce4839a5472565c833
3
+ metadata.gz: 1a5ba42303a312f30a3e9846a697ec9de9d3f8da
4
+ data.tar.gz: f633e98567a2dfa9092c318ace46a6e5d7d9d784
5
5
  SHA512:
6
- metadata.gz: 2d8489fb25d824c2a25230dc22b8b649523bf2db1c46d85ab1b9d3a8d4720e355bc0e301646931aa18b808848815ecb60a69713e3e9b2ac01a0e34798466df84
7
- data.tar.gz: a21321ddb23c9016d2e04dcd2b3dd1953f5edf26652682c35c5e502b7304d14ac2fd9e129949ed48dd1785f02a9233af31c969ccbc315b40e31b4a677b986755
6
+ metadata.gz: 933ace64441589f0ba83593662f42a3e5b186fba7899ac0cbd3350584a41a6134af05d34b89ef883bffb68ff569846a694b431f6d97feac894bf26ae15bf0fb9
7
+ data.tar.gz: b300374c27968da6a984937a3acd0a92c56727a5aba481c6ae8774a8f2b131aaf4f20a25deba423714e28c21f4361119226c94493c7a5a5606651d6ba586e4fe
data/README.md CHANGED
@@ -1,22 +1,26 @@
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'
1
+ ## [cosy-jekyll-theme](https://rubygems.org/gems/cosy-jekyll-theme)
2
+ - **Occam's Razor: Non sunt multiplicanda entia sine necessitate.**
3
+ - [cosy-jekyll-theme](https://rubygems.org/gems/cosy-jekyll-theme) is a responsive and easy to read [blog template](https://jekyllrb.com/docs/themes/
4
+ ).
5
+ - [Tw93 Blog](http://tw93.github.io/) use this template.
6
+ - Inspired by [neo-hpstr-jekyll-theme](http://github.com/aron-bordin/neo-hpstr-jekyll-theme), But No jQuery、More concise、Better use and Faster.
7
+ - More suitable for China.
8
8
 
9
- - install
10
- > gem install cosy-jekyll-theme
9
+ ### PC Preview
11
10
 
12
- ### QR code
13
- ![](http://tw93.github.io/images/demo/4.jpg)
11
+ ![demo.png](http://ww1.sinaimg.cn/large/0060lm7Tgy1fc8ex7f19zj31kw19l11d.jpg)
14
12
 
15
- ### PC Preview
13
+ ### H5 Preview
16
14
 
17
- ![demo.png](http://tw93.github.io/images/demo/4.jpg)
15
+ <img src="http://ww1.sinaimg.cn/large/0060lm7Tgy1fc8ex6yyh3j30xp1iy0z1.jpg" width="290"/><img src="http://ww3.sinaimg.cn/large/0060lm7Tgy1fc8eyalu16j30xp1iyq7g.jpg" width="290"/><img src="http://ww3.sinaimg.cn/large/0060lm7Tgy1fc8ex5vn9dj30xp1iyafo.jpg" width="290"/>
18
16
 
19
- ## H5 Preview
17
+ ### QR code
20
18
 
21
- <img src="http://tw93.github.io/images/demo/1.PNG" width="280"/>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://tw93.github.io/images/demo/2.PNG" width="280"/>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://tw93.github.io/images/demo/3.PNG" width="280"/>
19
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;![](http://ww1.sinaimg.cn/large/0060lm7Tgy1fc8eyyn0msj305k05kglf.jpg)
20
+
22
21
 
22
+ ### GemFile:
23
+ - gem 'cosy-jekyll-theme', '~> 1.0', '>= 1.0.5'
24
+
25
+ ### Install:
26
+ - gem install cosy-jekyll-theme
@@ -1 +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]-->
1
+ <!--[if lt IE 10]><div class="upgrade"><strong><a href="http://whatbrowser.org/" target="_blank">Your browser is quite old!</strong> Why not upgrade to a different browser to better enjoy this site?</a></div><![endif]-->
@@ -1,23 +1,13 @@
1
- <span>&copy; {{ 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>
1
+ <span>&copy; {{ site.time | date: '%Y' }}<a href="https://github.com/tw93/tw93.github.io" rel="nofollow" target="_blank"> Cosy Jekyll Theme By Tw93.</a></span>
2
2
 
3
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
4
  function hereDoc(f) {
15
5
  return f.toString().replace(/^[^\/]+\/\*!?\s?/, '').replace(/\*\/[^\/]+$/, '');
16
6
  }
17
7
  var string = hereDoc(function () {/*
18
8
 
19
9
 
20
- _ ___ _____ _ _
10
+ _ ___ _____ _ _
21
11
  | | |_ | / ___| (_) | |
22
12
  | | ___ __ _ _ __ _ __ | | __ ___ ____ _\ `--. ___ _ __ _ _ __ | |_
23
13
  | | / _ \/ _` | '__| '_ \ | |/ _` \ \ / / _` |`--. \/ __| '__| | '_ \| __|
data/_includes/head.html CHANGED
@@ -1,6 +1,6 @@
1
1
  <meta charset="utf-8">
2
- <title>{% if page.title %}{{ page.title }} &#8211; {% endif %}{{ site.title }}</title>
3
- <meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
2
+ <title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
3
+ <meta name="description" content="{{ site.description }}{% if page.categories %}{{ page.categories }}{% endif %}{% if page.summary %}{{ page.summary }}{% endif %}">
4
4
  {% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
5
5
 
6
6
  <!-- Open Graph -->
@@ -13,9 +13,6 @@
13
13
  {% if page.image.feature %}<meta property="og:image" content="{{ site.url }}/images/{{ page.image.feature }}">
14
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
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
16
  {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
20
17
  <link rel="canonical" href="{{ canonical }}">
21
18
  <link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
@@ -28,7 +25,7 @@
28
25
  <!-- For all browsers -->
29
26
  <link rel="stylesheet" href="{{ site.url }}/assets/css/main.css">
30
27
  <!-- Webfonts -->
31
- <link href="//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic" rel="stylesheet" type="text/css">
28
+ <link href="//fonts.proxy.ustclug.org/css?family=Lato:300,400,700,300italic,400italic" rel="stylesheet" type="text/css">
32
29
 
33
30
  <meta http-equiv="cleartype" content="on">
34
31
 
@@ -47,17 +47,5 @@
47
47
  <div class="entry-header">
48
48
  <div class="header-title">
49
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
50
  </div>
63
51
  </div>
@@ -1,5 +1,5 @@
1
1
  <div class="read-more">
2
- {% for post in site.related_posts limit:1 %}
2
+ {% for post in site.related_posts limit:1 offset:1 %}
3
3
  <div class="read-more-header">
4
4
  <a href="{{ site.url }}{{ page.previous.url }}" class="read-more-btn">Read More</a>
5
5
  </div>
@@ -1,6 +1,10 @@
1
- <script type="text/javascript" src="{{ site.url }}/assets/js/fitvids.min.js"></script>
2
1
  <script type="text/javascript" src="{{ site.url }}/assets/js/main.js"></script>
3
-
2
+ {% if page.useVideo %}
3
+ <script type="text/javascript" src="{{ site.url }}/assets/js/fitvids.min.js"></script>
4
+ <script type="text/javascript">
5
+ fitvids();
6
+ </script>
7
+ {% endif %}
4
8
  {% if site.google_analytics %}
5
9
  <!-- Asynchronous Google Analytics snippet -->
6
10
  <script type="text/javascript">
@@ -14,9 +18,6 @@
14
18
  ga('send', 'pageview');
15
19
  </script>
16
20
  {% endif %}
17
- <script type="text/javascript">
18
- fitvids();
19
- </script>
20
21
 
21
22
  {% if page.comments != false %}{% include disqus_comments.html %}{% endif %}
22
23
 
data/_layouts/page.html CHANGED
@@ -20,7 +20,7 @@
20
20
  </footer>
21
21
  </div>
22
22
  {% if page.comments != false and site.disqus_shortname %}
23
- <section id="disqus_thread"></section>
23
+ <section id="disqus_thread">Disqus评论正在推倒墙......</section>
24
24
  {% endif %}
25
25
  </article>
26
26
  </div>
data/_layouts/post.html CHANGED
@@ -24,6 +24,12 @@
24
24
  </div>
25
25
  {% endif %}
26
26
  <h1 class="post-title entry-title">{{ page.title }}</h1>
27
+
28
+ <h4 class="page-info">
29
+ <span>Categories:&nbsp;&nbsp;{{page.categories}}</span>
30
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%Y-%m-%d" }}</time>
31
+ </h4>
32
+
27
33
  {{ content }}
28
34
  <footer class="entry-meta">
29
35
  <span class="entry-tags">
@@ -39,7 +45,7 @@
39
45
  </footer>
40
46
  </div>
41
47
  {% if page.comments != false and site.disqus_shortname %}
42
- <section id="disqus_thread">Disqus正在推倒墙...</section>
48
+ <section id="disqus_thread">Disqus评论正在推倒墙......</section>
43
49
  {% endif %}
44
50
 
45
51
  {% if site.related_posts.size > 0 %}
data/_sass/_page.scss CHANGED
@@ -27,7 +27,6 @@ body {
27
27
  .entry-content {
28
28
  @include font-size(16);
29
29
  word-wrap: break-word;
30
- word-break: break-all;
31
30
  // Dotted line underlines for links
32
31
  p > a,
33
32
  li > a {
@@ -106,7 +105,7 @@ body {
106
105
  }
107
106
  .vcard {
108
107
  &:before {
109
- content: "bye";
108
+ content: "BYB";
110
109
  }
111
110
  }
112
111
  .tag {
@@ -142,7 +141,7 @@ header .entry-meta {
142
141
  #post,
143
142
  #page {
144
143
  .entry-content {
145
- margin: 30px 2px 20px 2px;
144
+ margin: 20px 2px 20px 2px;
146
145
  padding: 10px 15px;
147
146
  background-color: $white;
148
147
  box-shadow: 0 0 0 0, 0 6px 12px rgba($black, 0.1);
@@ -162,7 +161,7 @@ header .entry-meta {
162
161
  }
163
162
  }
164
163
  #disqus_thread {
165
- margin: 40px 2px 20px 2px;
164
+ margin: 20px 2px;
166
165
  padding: 10px 15px;
167
166
  background-color: $white;
168
167
  box-shadow: 0 0 0 1px rgba($border-color, 0.1), 0 6px 12px rgba($black, 0.1);
@@ -194,7 +193,7 @@ header .entry-meta {
194
193
  margin-top: 0;
195
194
  }
196
195
 
197
- .tag-list{
196
+ .tag-list {
198
197
  line-height: 1.5;
199
198
  }
200
199
 
@@ -327,7 +326,7 @@ header .entry-meta {
327
326
  // --------------------------------------------------
328
327
  #post-index {
329
328
  #main {
330
- margin: 30px 2px 20px 2px;
329
+ margin: 20px 2px 20px 2px;
331
330
  @media #{$medium} {
332
331
  margin-left: 20px;
333
332
  margin-right: 20px;
@@ -382,7 +381,7 @@ header .entry-meta {
382
381
  // --------------------------------------------------
383
382
  .footer-wrapper {
384
383
  @include clearfix;
385
- margin: 2em auto;
384
+ margin: 0 auto 20px auto;
386
385
  text-align: center;
387
386
  color: lighten($text-color, 20);
388
387
  a {
@@ -437,7 +436,7 @@ header .entry-meta {
437
436
  position: relative;
438
437
  width: 100%;
439
438
  overflow: hidden;
440
- height: 50px;
439
+ height: 60px;
441
440
  @media #{$medium} {
442
441
  background-color: $header-color;
443
442
  min-height: 260px;
@@ -490,12 +489,18 @@ header .entry-meta {
490
489
  }
491
490
 
492
491
  .header-menu {
493
- position: fixed;
492
+ position: absolute;
494
493
  top: 0;
495
494
  left: 0;
496
495
  width: 100%;
497
496
  height: $menu-height;
498
497
  z-index: 20;
498
+ @media #{$medium} {
499
+ position: fixed;
500
+ &.header-menu-top{
501
+ box-shadow: 0px 6px 5px rgba(0, 0, 0, 0.4);
502
+ }
503
+ }
499
504
  ul {
500
505
  margin: 0 auto;
501
506
  list-style-type: none;
@@ -509,7 +514,7 @@ header .entry-meta {
509
514
 
510
515
  .header-menu-top {
511
516
  background-color: $menu-top;
512
- box-shadow: 0px 6px 5px rgba(0, 0, 0, 0.4);
517
+ box-shadow: 0 0 0 0, 0 6px 12px rgba($black, 0.1);
513
518
  }
514
519
 
515
520
  .header-menu-overflow {
@@ -647,3 +652,22 @@ header .entry-meta {
647
652
  footer {
648
653
  font-size: 13px;
649
654
  }
655
+
656
+ .entry-content{
657
+ position: relative;
658
+ .page-info{
659
+ color: rgba(85,85,85,0.8);
660
+ font-size: 14px;
661
+ font-weight: normal;
662
+ margin: -15px 2px 0;
663
+ time{
664
+ margin-left: 20px;
665
+ }
666
+ @media #{$medium}{
667
+ font-size: 16px;
668
+ }
669
+ }
670
+ }
671
+ .header-href{
672
+ display: block;
673
+ }
data/assets/css/main.scss CHANGED
@@ -15,7 +15,6 @@ sitemap: false
15
15
  @import "variables";
16
16
  @import "mixins";
17
17
  @import "reset";
18
- @import "vendor/font-awesome/font-awesome";
19
18
  @import "site";
20
19
  @import "typography";
21
20
  @import "rouge";
data/assets/js/main.js CHANGED
@@ -1,20 +1,24 @@
1
1
  document.addEventListener("DOMContentLoaded", function () {
2
- document.addEventListener("scroll", dealHeadShow);
3
- if (/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(navigator.userAgent)) {
4
- var scrollInterval = null;
5
- document.addEventListener("touchmove", function () {
6
- scrollInterval = window.setInterval(dealHeadShow, 100);
7
- });
8
- document.addEventListener("touchend", function () {
9
- clearInterval(scrollInterval);
10
- });
11
- }
2
+ isPC() && document.addEventListener("scroll", _dealHeadShow);
12
3
  }, false);
13
4
 
14
- function dealHeadShow() {
5
+ function _dealHeadShow() {
15
6
  if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
16
7
  document.getElementById("J_header").setAttribute('class', 'header-menu header-menu-overflow');
17
8
  } else {
18
9
  document.getElementById("J_header").setAttribute('class', 'header-menu header-menu-top');
19
10
  }
20
11
  }
12
+
13
+ function isPC() {
14
+ var userAgentInfo = navigator.userAgent;
15
+ var Agents = ["Android", "iPhone", "Windows Phone", "iPad", "iPod"];
16
+ var flag = true;
17
+ for (var v = 0; v < Agents.length; v++) {
18
+ if (userAgentInfo.indexOf(Agents[v]) > 0) {
19
+ flag = false;
20
+ break;
21
+ }
22
+ }
23
+ return flag;
24
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cosy-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tw93
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-23 00:00:00.000000000 Z
11
+ date: 2017-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -85,26 +85,7 @@ files:
85
85
  - _sass/_site.scss
86
86
  - _sass/_typography.scss
87
87
  - _sass/_variables.scss
88
- - _sass/vendor/font-awesome/_animated.scss
89
- - _sass/vendor/font-awesome/_bordered-pulled.scss
90
- - _sass/vendor/font-awesome/_core.scss
91
- - _sass/vendor/font-awesome/_fixed-width.scss
92
- - _sass/vendor/font-awesome/_icons.scss
93
- - _sass/vendor/font-awesome/_larger.scss
94
- - _sass/vendor/font-awesome/_list.scss
95
- - _sass/vendor/font-awesome/_mixins.scss
96
- - _sass/vendor/font-awesome/_path.scss
97
- - _sass/vendor/font-awesome/_rotated-flipped.scss
98
- - _sass/vendor/font-awesome/_stacked.scss
99
- - _sass/vendor/font-awesome/_variables.scss
100
- - _sass/vendor/font-awesome/font-awesome.scss
101
88
  - assets/css/main.scss
102
- - assets/fonts/FontAwesome.otf
103
- - assets/fonts/fontawesome-webfont.eot
104
- - assets/fonts/fontawesome-webfont.svg
105
- - assets/fonts/fontawesome-webfont.ttf
106
- - assets/fonts/fontawesome-webfont.woff
107
- - assets/fonts/fontawesome-webfont.woff2
108
89
  - assets/js/fitvids.min.js
109
90
  - assets/js/main.js
110
91
  homepage: https://github.com/tw93/tw93.github.io
@@ -1,34 +0,0 @@
1
- // Spinning Icons
2
- // --------------------------
3
-
4
- .#{$fa-css-prefix}-spin {
5
- -webkit-animation: fa-spin 2s infinite linear;
6
- animation: fa-spin 2s infinite linear;
7
- }
8
-
9
- .#{$fa-css-prefix}-pulse {
10
- -webkit-animation: fa-spin 1s infinite steps(8);
11
- animation: fa-spin 1s infinite steps(8);
12
- }
13
-
14
- @-webkit-keyframes fa-spin {
15
- 0% {
16
- -webkit-transform: rotate(0deg);
17
- transform: rotate(0deg);
18
- }
19
- 100% {
20
- -webkit-transform: rotate(359deg);
21
- transform: rotate(359deg);
22
- }
23
- }
24
-
25
- @keyframes fa-spin {
26
- 0% {
27
- -webkit-transform: rotate(0deg);
28
- transform: rotate(0deg);
29
- }
30
- 100% {
31
- -webkit-transform: rotate(359deg);
32
- transform: rotate(359deg);
33
- }
34
- }
@@ -1,25 +0,0 @@
1
- // Bordered & Pulled
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-border {
5
- padding: .2em .25em .15em;
6
- border: solid .08em $fa-border-color;
7
- border-radius: .1em;
8
- }
9
-
10
- .#{$fa-css-prefix}-pull-left { float: left; }
11
- .#{$fa-css-prefix}-pull-right { float: right; }
12
-
13
- .#{$fa-css-prefix} {
14
- &.#{$fa-css-prefix}-pull-left { margin-right: .3em; }
15
- &.#{$fa-css-prefix}-pull-right { margin-left: .3em; }
16
- }
17
-
18
- /* Deprecated as of 4.4.0 */
19
- .pull-right { float: right; }
20
- .pull-left { float: left; }
21
-
22
- .#{$fa-css-prefix} {
23
- &.pull-left { margin-right: .3em; }
24
- &.pull-right { margin-left: .3em; }
25
- }