kcc-gem-theme 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/body.html +9 -0
- data/_includes/document-head.html +13 -0
- data/_includes/foot.html +2 -2
- data/_includes/nav-local.html +0 -11
- data/_includes/{head.html → old-head.html} +0 -0
- data/_includes/scripts/custom.html +2 -4
- data/_includes/scripts/google-noscript.html +6 -0
- data/_includes/scripts/google-tag.html +6 -0
- data/_includes/scripts/kcc-theme.html +1 -1
- data/_includes/scripts/vendor-cdn.html +6 -6
- data/_includes/styles/fonts.html +10 -10
- data/_includes/styles/main.html +2 -4
- data/_includes/styles/vendor.html +6 -11
- data/_layouts/default.html +7 -1
- data/assets/js/theme/dist/kcc-theme.bundle.js +1 -1
- data/assets/js/theme/script/all.js +1 -0
- data/assets/js/theme/script/walkText.js +14 -0
- metadata +8 -5
- data/_includes/google-noscript-wrapper.html +0 -4
- data/_includes/google-tag-wrapper.html +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5830547c757dd7322fa5e9b76abb42bb1233cb3c59e60c5af04d1d2e6eaa7342
|
4
|
+
data.tar.gz: 7f8af2646566417935c83b909fc604f1e1c36591ac49c22f559872c3575922dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 374c06d6bef9424f2ef7ec8e582749ecd6879c174d1d6ed9d44a686e23f7870d0ac361c837eecbf8272e0c20c1b48bd80d8594e5fd27efcc3c81c38138d0e461
|
7
|
+
data.tar.gz: 4fdac25103d50bdc4e2de161322b170054b900b5ae4021883406456ac338b26c287d85f073c25acf45efea5d0d9a4fa76f6fd3478b36aa02c8d9c984831fb03c
|
data/_includes/body.html
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- Custom CSS for the KCC Theme -->
|
2
|
+
<link rel="stylesheet" href="{{page.baseurl}}assets/css/kcc-theme.css">
|
3
|
+
<!-- Custom CSS Stylesheet for CloudCannon -->
|
4
|
+
<link rel="stylesheet" href="{{page.baseurl}}assets/css/content.css">
|
5
|
+
<!-- Uncomment to prevent IE-11 caching (for IE testing) -->
|
6
|
+
<!-- <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
7
|
+
<META HTTP-EQUIV="Expires" CONTENT="-1"> -->
|
8
|
+
</head>
|
9
|
+
<body>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html class="no-js" lang="en">
|
3
|
+
<head>
|
4
|
+
<!-- Meta -->
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
7
|
+
<title>{{site.title}} - {{page.title}}</title>
|
8
|
+
<meta name="description" content="{{page.description}}">
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
10
|
+
|
11
|
+
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
12
|
+
<!-- Standard Favicon -->
|
13
|
+
<link rel="icon" type="image/x-icon" href="{{page.baseurl}}favicon.ico" />
|
data/_includes/foot.html
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
<!-- Close body -->
|
2
|
-
</body>
|
1
|
+
<!-- Close body -->
|
2
|
+
</body>
|
3
3
|
</html>
|
data/_includes/nav-local.html
CHANGED
@@ -11,17 +11,6 @@
|
|
11
11
|
<li id="home" class="nav-item active">
|
12
12
|
<a class="nav-link links__local-nav__nav-link--color typography__nav-link" href="{{page.baseurl}}">Home <span class="sr-only">(current)</span></a>
|
13
13
|
</li>
|
14
|
-
<!-- <li class="nav-item dropdown">
|
15
|
-
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
16
|
-
Dropdown
|
17
|
-
</a>
|
18
|
-
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
19
|
-
<a class="dropdown-item" href="#">Action</a>
|
20
|
-
<a class="dropdown-item" href="#">Another action</a>
|
21
|
-
<div class="dropdown-divider"></div>
|
22
|
-
<a class="dropdown-item" href="#">Something else here</a>
|
23
|
-
</div>
|
24
|
-
</li> -->
|
25
14
|
</ul>
|
26
15
|
</div>
|
27
16
|
</nav>
|
File without changes
|
@@ -1,4 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
This file just gets overriden by the identically-named 'custom.html' from whatever site uses this theme.
|
4
|
-
{% endcomment %}
|
1
|
+
<!-- custom compiled and minified javascript -->
|
2
|
+
<script src="{{page.baseurl}}assets/js/dist/main{% if site.data.hash %}.{{ site.data.hash }}{% endif %}.bundle.js"></script>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<!-- custom compiled and minified javascript -->
|
2
|
-
<script src="{{page.baseurl}}assets/js/theme/dist/kcc-theme.
|
2
|
+
<script src="{{page.baseurl}}assets/js/theme/dist/kcc-theme.bundle.js"></script>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<!-- CDN links to Bootstrap 4 beta dependancies -->
|
2
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
|
3
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
4
|
-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
5
|
-
<!-- Link to Slick.js javascript (must occur after jquery) -->
|
6
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.js"></script>
|
1
|
+
<!-- CDN links to Bootstrap 4 beta dependancies -->
|
2
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
|
3
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
4
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
5
|
+
<!-- Link to Slick.js javascript (must occur after jquery) -->
|
6
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.js"></script>
|
data/_includes/styles/fonts.html
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
<!-- Typkit font for KCC logo-font -->
|
2
|
-
<link rel="stylesheet" href="https://use.typekit.net/mli7lsm.css">
|
3
|
-
<!-- Link to Google Font's "Roboto" font -->
|
4
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,900" rel="stylesheet">
|
5
|
-
<!-- Link to Google Font's "Open Sans" font -->
|
6
|
-
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet">
|
7
|
-
<!-- Link to Google Font's "Oswald" font -->
|
8
|
-
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600" rel="stylesheet">
|
9
|
-
<link href="https://fonts.googleapis.com/css?family=Libre+Franklin:300,500,700" rel="stylesheet">
|
10
|
-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
1
|
+
<!-- Typkit font for KCC logo-font -->
|
2
|
+
<link rel="stylesheet" href="https://use.typekit.net/mli7lsm.css">
|
3
|
+
<!-- Link to Google Font's "Roboto" font -->
|
4
|
+
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,900" rel="stylesheet">
|
5
|
+
<!-- Link to Google Font's "Open Sans" font -->
|
6
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet">
|
7
|
+
<!-- Link to Google Font's "Oswald" font -->
|
8
|
+
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600" rel="stylesheet">
|
9
|
+
<link href="https://fonts.googleapis.com/css?family=Libre+Franklin:300,500,700" rel="stylesheet">
|
10
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
|
data/_includes/styles/main.html
CHANGED
@@ -1,4 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
This file prevents Liquid errors from breaking the build in the gem-theme.
|
4
|
-
{% endcomment %}
|
1
|
+
<!-- Link to this site's main stylesheet -->
|
2
|
+
<link rel="stylesheet" href="{{page.baseurl}}assets/css/main.css{% if site.data.cache_bust_css %}?version={{ site.data.cache_bust_css | truncate: 32, '' }}{% endif %}">
|
@@ -1,11 +1,6 @@
|
|
1
|
-
<!-- CDN assets -->
|
2
|
-
<!--
|
3
|
-
<link
|
4
|
-
<!--
|
5
|
-
|
6
|
-
<link href="https://
|
7
|
-
<!-- Slick.js v1.8.1 stylesheet followed by slick-theme stylesheet -->
|
8
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.css"/>
|
9
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick-theme.min.css"/>
|
10
|
-
<!-- Fonts -->
|
11
|
-
{% include styles/fonts.html %}
|
1
|
+
<!-- CDN assets -->
|
2
|
+
<!-- Bootstrap 4 stylesheet - CDN link -->
|
3
|
+
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
4
|
+
<!-- Slick.js v1.8.1 stylesheet followed by slick-theme stylesheet -->
|
5
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.css"/>
|
6
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick-theme.min.css"/>
|
data/_layouts/default.html
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
{% include head.html %}
|
1
|
+
{% include document-head.html %}
|
2
|
+
{% include scripts/google-tag.html %}
|
3
|
+
{% include styles/fonts.html %}
|
4
|
+
{% include styles/vendor.html %}
|
5
|
+
{% include styles/main.html %}
|
6
|
+
{% include body.html %}
|
7
|
+
{% include scripts/google-noscript.html %}
|
2
8
|
{% include nav-global.html %}
|
3
9
|
{% include nav-local.html %}
|
4
10
|
{{ content }}
|
@@ -1 +1 @@
|
|
1
|
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);n(1),n(2),n(3),n(4),n(5)},function(e,t){document.addEventListener("DOMContentLoaded",function(){var e;e=(new Date).getFullYear(),document.getElementById("currentYear").innerHTML=e})},function(e,t){$("#searchImg").attr("src");$("#searchIcon").click(function(){-1!=$("#searchImg").css("background-image").indexOf("assets/img/search.svg")?$("#searchImg").css("background-image",'url("http://news.kcc.edu/assets/img/x.svg")'):$("#searchImg").css("background-image",'url("http://news.kcc.edu/assets/img/search.svg")'),$("#searchCollapse").toggleClass("global-nav__search-collapse--visible"),$("#mainNav").toggleClass("local-nav--search-toggle"),$("#globalNav").toggleClass("global-nav--search-toggle")}),$("document").ready(function(){window.setTimeout(function(){$("input.gsc-input").attr("placeholder","Search KCC...")},3e3)})},function(e,t){document.addEventListener("DOMContentLoaded",function(){[].forEach.call(document.querySelectorAll("img[data-src]"),function(e){e.setAttribute("src",e.getAttribute("data-src")),e.onload=function(){e.removeAttribute("data-src")}})})},function(e,t){},function(e,t){document.addEventListener("DOMContentLoaded",function(){var e;e=["Hydrogen","Helium","Lithium","Beryllium","Boron","Carbon","Nitrogen","Oxygen"].map(function(e){return e.length+"<br>"+e+" <br><hr>"}),document.getElementById("theDiv").innerHTML=e})}]);
|
1
|
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);n(1),n(2),n(3),n(4),n(5),n(6)},function(e,t){document.addEventListener("DOMContentLoaded",function(){var e;e=(new Date).getFullYear(),document.getElementById("currentYear").innerHTML=e})},function(e,t){$("#searchImg").attr("src");$("#searchIcon").click(function(){-1!=$("#searchImg").css("background-image").indexOf("assets/img/search.svg")?$("#searchImg").css("background-image",'url("http://news.kcc.edu/assets/img/x.svg")'):$("#searchImg").css("background-image",'url("http://news.kcc.edu/assets/img/search.svg")'),$("#searchCollapse").toggleClass("global-nav__search-collapse--visible"),$("#mainNav").toggleClass("local-nav--search-toggle"),$("#globalNav").toggleClass("global-nav--search-toggle")}),$("document").ready(function(){window.setTimeout(function(){$("input.gsc-input").attr("placeholder","Search KCC...")},3e3)})},function(e,t){document.addEventListener("DOMContentLoaded",function(){[].forEach.call(document.querySelectorAll("img[data-src]"),function(e){e.setAttribute("src",e.getAttribute("data-src")),e.onload=function(){e.removeAttribute("data-src")}})})},function(e,t){},function(e,t){document.addEventListener("DOMContentLoaded",function(){var e;e=["Hydrogen","Helium","Lithium","Beryllium","Boron","Carbon","Nitrogen","Oxygen"].map(function(e){return e.length+"<br>"+e+" <br><hr>"}),document.getElementById("theDiv").innerHTML=e})},function(e,t){document.addEventListener("DOMContentLoaded",function(){!function e(t){if(3==t.nodeType&&(t.data=t.data.replace(/--/g,"—")),1==t.nodeType&&"SCRIPT"!=t.nodeName)for(var n=0;n<t.childNodes.length;n++)e(t.childNodes[n])}(document.body)})}]);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// Replace all occurences of "--" (double hyphens) with "—" (long-em dash)
|
2
|
+
function walkText(node) {
|
3
|
+
if (node.nodeType == 3) {
|
4
|
+
node.data = node.data.replace(/--/g, '—');
|
5
|
+
}
|
6
|
+
if (node.nodeType == 1 && node.nodeName != 'SCRIPT') {
|
7
|
+
for (var i = 0; i < node.childNodes.length; i++) {
|
8
|
+
walkText(node.childNodes[i]);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
document.addEventListener('DOMContentLoaded', function() {
|
13
|
+
walkText(document.body);
|
14
|
+
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kcc-gem-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wdzajicek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -61,14 +61,16 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- LICENSE.txt
|
63
63
|
- README.md
|
64
|
+
- _includes/body.html
|
65
|
+
- _includes/document-head.html
|
64
66
|
- _includes/foot.html
|
65
67
|
- _includes/footer.html
|
66
|
-
- _includes/google-noscript-wrapper.html
|
67
|
-
- _includes/google-tag-wrapper.html
|
68
|
-
- _includes/head.html
|
69
68
|
- _includes/nav-global.html
|
70
69
|
- _includes/nav-local.html
|
70
|
+
- _includes/old-head.html
|
71
71
|
- _includes/scripts/custom.html
|
72
|
+
- _includes/scripts/google-noscript.html
|
73
|
+
- _includes/scripts/google-tag.html
|
72
74
|
- _includes/scripts/kcc-theme.html
|
73
75
|
- _includes/scripts/vendor-cdn.html
|
74
76
|
- _includes/styles/fonts.html
|
@@ -118,6 +120,7 @@ files:
|
|
118
120
|
- assets/js/theme/script/lazyLoad.js
|
119
121
|
- assets/js/theme/script/searchToggle.js
|
120
122
|
- assets/js/theme/script/test.js
|
123
|
+
- assets/js/theme/script/walkText.js
|
121
124
|
- assets/scss/0-tools/_vars.scss
|
122
125
|
- assets/scss/1-base/_buttons.scss
|
123
126
|
- assets/scss/1-base/_links.scss
|