Skip to content

Commit ee30c5b

Browse files
committed
reorganizes assets and adds jekyll-assets gem
1 parent 54230a8 commit ee30c5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+16
-8167
lines changed

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
source 'https://rubygems.org'
22
gem 'jekyll'
3-
gem 'wdm', '~> 0.1.0' if Gem.win_platform?
3+
gem 'jekyll-assets'
4+
gem 'uglifier'
5+
6+
gem 'bootstrap-sass'
7+
48
gem 'rake'
59
gem 'rake-jekyll'
610
gem 'html-proofer'
11+
12+
gem 'wdm', '~> 0.1.0' if Gem.win_platform?

javascript/turbolinks.coffee renamed to _assets/javascripts/turbolinks.js.coffee

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
3-
---
41
pageCache = {}
52
cacheSize = 10
63
transitionCacheEnabled = false
File renamed without changes.
File renamed without changes.

css/main.scss renamed to _assets/stylesheets/main.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
# Only the main Sass file needs front matter (the dashes are enough)
3-
---
41
@charset "utf-8";
52
@import url(//fonts.googleapis.com/css?family=Share+Tech+Mono|Merriweather);
63

@@ -44,7 +41,6 @@ $on-laptop: 800px;
4441
}
4542
}
4643

47-
// Import partials from `sass_dir` (defaults to `_sass`)
4844
@import
4945
"bootstrap",
5046
"base",

_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ url: "http://csuwebdev.com/" # the base hostname & protocol for your site
99
# Build settings
1010
markdown: kramdown
1111
exclude: ['README.md', 'Gemfile', 'Gemfile.lock', 'Rakefile']
12+
13+
# jekyll-assets settings
14+
assets:
15+
js_compressor: uglifier
16+
css_compressor: sass

_includes/head.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55

66
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
77
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8-
9-
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
108
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
119
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
1210

13-
<script src="/javascript/turbolinks.js" type="text/javascript" charset="utf-8"></script>
11+
{% stylesheet main %}
12+
{% javascript turbolinks %}
1413
</head>

_plugins/ext.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require "jekyll-assets"
2+
require "jekyll-assets/bootstrap"

_sass/_bootstrap.scss

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)