Skip to content

Commit f99b256

Browse files
committed
Reconcile scss/js files and remove the need for grunt
This change pares down the unused styles/scripts from the www site, and removes the need for grunt to concatenate/minify styles--we now use Jekyll's built-in capability.
1 parent 09b317c commit f99b256

34 files changed

+869
-1909
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ vendor
1010
.bundle
1111
node_modules
1212
*.map
13+
/.sass-cache/

_includes/head.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
{% if include.notfound %}
2525
<link rel="stylesheet" href="/css/404.css" media="all" />
2626
{% else %}
27-
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
28-
<link rel="stylesheet" href="/css/styles.css" media="all">
29-
<link rel="stylesheet" href="/css/style.css" media="all" />
30-
<link rel="stylesheet" href="/css/pygments.css" media="all" />
27+
<link rel="stylesheet" href="/css/styles.css" media="all" />
3128
<script async defer src="https://buttons.github.io/buttons.js"></script>
3229
{% endif %}
3330
<script> !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t,e){var n=document.createElement("script");n.type="text/javascript";n.async=!0;n.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o);analytics._loadOptions=e};analytics.SNIPPET_VERSION="4.1.0"; analytics.load("mNROzbfcr6gi80tV37QuBcL0tK1DWvte"); analytics.page(); }}();</script>

_includes/scripts.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
2+
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
3+
crossorigin="anonymous"></script>
4+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
5+
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
6+
crossorigin="anonymous"></script>
7+
<script src="/js/main.js"></script>
8+
<script src="/js/langchoose.js"></script>

_js/anchor.js

-89
This file was deleted.

_js/code-anim.js

-90
This file was deleted.

_js/hero.js

-77
This file was deleted.

_js/main.js

-87
This file was deleted.

_layouts/default.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ <h1>{{ page.title }}</h1>
3636
{% include footer.html %}
3737

3838
{% include intercom.html %}
39-
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
40-
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
41-
crossorigin="anonymous"></script>
42-
<script src="/js/langchoose.js"></script>
43-
<script src="/js/scripts-all.js"></script>
39+
{% include scripts.html %}
4440
</body>
4541
</html>

_layouts/default_index.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
{% include footer.html %}
3333

3434
{% include intercom.html %}
35-
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
36-
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
37-
crossorigin="anonymous"></script>
38-
<script src="/js/langchoose.js"></script>
39-
<script src="/js/scripts-all.js"></script>
35+
{% include scripts.html %}
4036
</body>
4137
</html>

0 commit comments

Comments
 (0)