cosy-jekyll-theme 1.0.5 → 1.0.6
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 +4 -4
- data/License +21 -0
- data/README.md +17 -11
- data/_includes/buy-me-coffee.html +6 -0
- data/_includes/footer.html +60 -2
- data/_includes/head.html +12 -6
- data/_includes/header.html +26 -35
- data/_includes/read-more.html +7 -16
- data/_layouts/home.html +3 -11
- data/_layouts/page.html +10 -24
- data/_layouts/post.html +8 -24
- data/_sass/_mixins.scss +132 -124
- data/_sass/_page.scss +184 -226
- data/_sass/_rouge.scss +4 -3
- data/_sass/_typography.scss +14 -13
- data/_sass/_variables.scss +1 -2
- metadata +5 -9
- data/_includes/browser-upgrade.html +0 -1
- data/_includes/disqus_comments.html +0 -26
- data/_includes/icons.html +0 -3
- data/_includes/scripts.html +0 -23
- data/assets/css/main.scss +0 -25
- data/assets/js/fitvids.min.js +0 -1
- data/assets/js/main.js +0 -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
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tw93
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -59,18 +59,16 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- License
|
62
63
|
- README.md
|
63
|
-
- _includes/
|
64
|
-
- _includes/disqus_comments.html
|
64
|
+
- _includes/buy-me-coffee.html
|
65
65
|
- _includes/feed-footer.html
|
66
66
|
- _includes/footer.html
|
67
67
|
- _includes/gallery
|
68
68
|
- _includes/head.html
|
69
69
|
- _includes/header.html
|
70
|
-
- _includes/icons.html
|
71
70
|
- _includes/pagination.html
|
72
71
|
- _includes/read-more.html
|
73
|
-
- _includes/scripts.html
|
74
72
|
- _layouts/home.html
|
75
73
|
- _layouts/page.html
|
76
74
|
- _layouts/post.html
|
@@ -85,9 +83,6 @@ files:
|
|
85
83
|
- _sass/_site.scss
|
86
84
|
- _sass/_typography.scss
|
87
85
|
- _sass/_variables.scss
|
88
|
-
- assets/css/main.scss
|
89
|
-
- assets/js/fitvids.min.js
|
90
|
-
- assets/js/main.js
|
91
86
|
homepage: https://github.com/tw93/tw93.github.io
|
92
87
|
licenses:
|
93
88
|
- MIT
|
@@ -112,4 +107,5 @@ rubygems_version: 2.6.8
|
|
112
107
|
signing_key:
|
113
108
|
specification_version: 4
|
114
109
|
summary: cosy-jekyll-theme is a responsive and better reading experience blog template.
|
110
|
+
No jQuery,And More concise,More geeks and Faster than other jekyll theme.
|
115
111
|
test_files: []
|
@@ -1 +0,0 @@
|
|
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,26 +0,0 @@
|
|
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 %}
|
data/_includes/icons.html
DELETED
data/_includes/scripts.html
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
<script type="text/javascript" src="{{ site.url }}/assets/js/main.js"></script>
|
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 %}
|
8
|
-
{% if site.google_analytics %}
|
9
|
-
<!-- Asynchronous Google Analytics snippet -->
|
10
|
-
<script type="text/javascript">
|
11
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
12
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
13
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
14
|
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
15
|
-
|
16
|
-
ga('create', '{{ site.google_analytics }}', 'auto');
|
17
|
-
ga('require', 'linkid', 'linkid.js');
|
18
|
-
ga('send', 'pageview');
|
19
|
-
</script>
|
20
|
-
{% endif %}
|
21
|
-
|
22
|
-
{% if page.comments != false %}{% include disqus_comments.html %}{% endif %}
|
23
|
-
|
data/assets/css/main.scss
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
---
|
2
|
-
sitemap: false
|
3
|
-
---
|
4
|
-
|
5
|
-
/*
|
6
|
-
*
|
7
|
-
* HPSTR
|
8
|
-
*
|
9
|
-
* Designer: Michael Rose
|
10
|
-
* Twitter: http://twitter.com/mmistakes
|
11
|
-
*
|
12
|
-
*/
|
13
|
-
|
14
|
-
// Partials
|
15
|
-
@import "variables";
|
16
|
-
@import "mixins";
|
17
|
-
@import "reset";
|
18
|
-
@import "site";
|
19
|
-
@import "typography";
|
20
|
-
@import "rouge";
|
21
|
-
@import "coderay";
|
22
|
-
@import "grid";
|
23
|
-
@import "elements";
|
24
|
-
@import "animations";
|
25
|
-
@import "page";
|
data/assets/js/fitvids.min.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.fitvids=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object"];var css=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";module.exports=function(parentSelector,opts){parentSelector=parentSelector||"body";opts=opts||{};if(isObject(parentSelector)){opts=parentSelector;parentSelector="body"}opts.ignore=opts.ignore||"";opts.players=opts.players||"";var containers=queryAll(parentSelector);if(!hasLength(containers))return;if(!document.getElementById("fit-vids-style")){var head=document.head||document.getElementsByTagName("head")[0];head.appendChild(styles())}var custom=toSelectorArray(opts.players)||[];var ignored=toSelectorArray(opts.ignore)||[];var selector=selectors.filter(notIgnored(ignored)).concat(custom).join();if(!hasLength(selector))return;containers.forEach(function(container){var videos=queryAll(container,selector);videos.forEach(function(video){wrap(video)})})};function queryAll(el,selector){if(typeof el==="string"){selector=el;el=document}return Array.prototype.slice.call(el.querySelectorAll(selector))}function toSelectorArray(input){if(typeof input==="string"){return input.split(",").map(trim).filter(hasLength)}else if(isArray(input)){return flatten(input.map(toSelectorArray).filter(hasLength))}return input||[]}function wrap(el){if(/fluid-width-video-wrapper/.test(el.parentNode.className))return;var widthAttr=parseInt(el.getAttribute("width"),10);var heightAttr=parseInt(el.getAttribute("height"),10);var width=!isNaN(widthAttr)?widthAttr:el.clientWidth;var height=!isNaN(heightAttr)?heightAttr:el.clientHeight;var aspect=height/width;el.removeAttribute("width");el.removeAttribute("height");var wrapper=document.createElement("div");el.parentNode.insertBefore(wrapper,el);wrapper.className="fluid-width-video-wrapper";wrapper.style.paddingTop=aspect*100+"%";wrapper.appendChild(el)}function styles(){var div=document.createElement("div");div.innerHTML='<p>x</p><style id="fit-vids-style">'+css+"</style>";return div.childNodes[1]}function notIgnored(ignored){if(ignored.length<1){return function(){return true}}return function(selector){return ignored.indexOf(selector)===-1}}function hasLength(input){return input.length>0}function trim(str){return str.replace(/^\s+|\s+$/g,"")}function flatten(input){return[].concat.apply([],input)}function isObject(input){return Object.prototype.toString.call(input)==="[object Object]"}function isArray(input){return Object.prototype.toString.call(input)==="[object Array]"}},{}]},{},[1])(1)});
|
data/assets/js/main.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
document.addEventListener("DOMContentLoaded", function () {
|
2
|
-
isPC() && document.addEventListener("scroll", _dealHeadShow);
|
3
|
-
}, false);
|
4
|
-
|
5
|
-
function _dealHeadShow() {
|
6
|
-
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
|
7
|
-
document.getElementById("J_header").setAttribute('class', 'header-menu header-menu-overflow');
|
8
|
-
} else {
|
9
|
-
document.getElementById("J_header").setAttribute('class', 'header-menu header-menu-top');
|
10
|
-
}
|
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
|
-
}
|