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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68962ecbe592473fc6a365faa95f7f013561c542946d5ae3e48853095ae2c96c
4
- data.tar.gz: b010e79d05a177c4ab59ab871735246714d95a46eabb929139c9c8f9bb2b0775
3
+ metadata.gz: 5830547c757dd7322fa5e9b76abb42bb1233cb3c59e60c5af04d1d2e6eaa7342
4
+ data.tar.gz: 7f8af2646566417935c83b909fc604f1e1c36591ac49c22f559872c3575922dc
5
5
  SHA512:
6
- metadata.gz: ac4694a915293abbe478b134a08230533726b833e62b8891d8a5753633337626319a2fc411572d136d6899f588dbd6905d4575e1d965ce04ec61017d2fad5af2
7
- data.tar.gz: a33171a5c3ff286cd8fdccb7a2b3a07b7aa2ab16a7391015ed61d67bc52d15a87af7054a5ea8ba1fc5525e66b09126d8ebd85d34b7582d4f3ca474536f961582
6
+ metadata.gz: 374c06d6bef9424f2ef7ec8e582749ecd6879c174d1d6ed9d44a686e23f7870d0ac361c837eecbf8272e0c20c1b48bd80d8594e5fd27efcc3c81c38138d0e461
7
+ data.tar.gz: 4fdac25103d50bdc4e2de161322b170054b900b5ae4021883406456ac338b26c287d85f073c25acf45efea5d0d9a4fa76f6fd3478b36aa02c8d9c984831fb03c
@@ -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>
@@ -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
- {% comment %}
2
- This file is here just to prevent Liquid include errors when building the theme (otherwise, Liquid errors will break the build).
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>
@@ -0,0 +1,6 @@
1
+ <!-- Google Tag Manager (noscript) -->
2
+
3
+ <!-- Place appropriate Google Tag Manager noscript here.
4
+ ======================================================= -->
5
+
6
+ <!-- End Google Tag Manager (noscript) -->
@@ -0,0 +1,6 @@
1
+ <!-- Google Tag Manager -->
2
+
3
+ <!-- Place appropriate Google Tag Manager script here & delete only this comment.
4
+ ===================================================== -->
5
+
6
+ <!-- End Google Tag Manager -->
@@ -1,2 +1,2 @@
1
1
  <!-- custom compiled and minified javascript -->
2
- <script src="{{page.baseurl}}assets/js/theme/dist/kcc-theme.{% comment %}{% if site.data.theme_hash %}{{ site.data.theme_hash }}.{% endif %}{% endcomment %}bundle.js"></script>
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>
@@ -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">
@@ -1,4 +1,2 @@
1
- {% comment %}
2
- Another placeholder that just gets replaced.
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
- <!-- Preload slick font -->
3
- <link rel="preload" href="https://cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/fonts/slick.woff" as="font" crossorigin="anonymous">
4
- <!-- Bootstrap 4 Beta stylesheet CDN link -->
5
- <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> -->
6
- <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">
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"/>
@@ -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)})}]);
@@ -3,3 +3,4 @@ import './searchToggle.js';
3
3
  import './lazyLoad.js';
4
4
  import './test.js';
5
5
  import './babelTest.js';
6
+ import './walkText.js';
@@ -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.6.1
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-05 00:00:00.000000000 Z
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
@@ -1,4 +0,0 @@
1
- {% comment %}
2
- Placehodler file to prevent liquid errors.
3
- Gets replaced in project theme is used in.
4
- {% endcomment %}
@@ -1,4 +0,0 @@
1
- {% comment %}
2
- Placehodler file to prevent liquid errors.
3
- Gets replaced in project theme is used in.
4
- {% endcomment %}