Permalink
Browse files

add minification

  • Loading branch information...
1 parent 891e416 commit 94017bc2c7d7411e0b8c8edda949d7879d7f8cd3 @ghiculescu committed Mar 17, 2013
Showing with 462 additions and 11 deletions.
  1. +1 −0 .gitignore
  2. +2 −1 Gemfile
  3. +8 −0 Gemfile.lock
  4. +10 −1 _config.yml
  5. +10 −7 _layouts/default.html
  6. +429 −0 _plugins/asset_bundler.rb
  7. +2 −2 js/toc.js
View
@@ -1 +1,2 @@
_site
+_asset_bundler_cache
View
@@ -2,4 +2,5 @@ source 'https://rubygems.org'
gem 'rack-jekyll', :git => 'https://github.com/adaoraul/rack-jekyll.git'
gem 'unicorn'
-gem 'kramdown'
+gem 'kramdown'
+gem 'yui-compressor'
View
@@ -9,6 +9,10 @@ GIT
GEM
remote: https://rubygems.org/
specs:
+ POpen4 (0.1.4)
+ Platform (>= 0.4.0)
+ open4
+ Platform (0.4.0)
albino (1.3.3)
posix-spawn (>= 0.3.6)
classifier (1.3.3)
@@ -27,6 +31,7 @@ GEM
liquid (2.4.1)
maruku (0.6.1)
syntax (>= 1.0.0)
+ open4 (1.3.0)
posix-spawn (0.3.6)
rack (1.4.4)
raindrops (0.10.0)
@@ -35,6 +40,8 @@ GEM
kgio (~> 2.6)
rack
raindrops (~> 0.7)
+ yui-compressor (0.9.6)
+ POpen4 (>= 0.1.4)
PLATFORMS
ruby
@@ -43,3 +50,4 @@ DEPENDENCIES
kramdown
rack-jekyll!
unicorn
+ yui-compressor
View
@@ -3,4 +3,13 @@ permalink: /:categories/:title/
exclude: ['bin', 'vendor', 'Gemfile', 'Gemfile.lock', 'Procfile', 'Rakefile', 'unicorn.rb', 'config.ru', 'README.md']
# the order that categories appear in the sidebar
-sort_order: ['staff', 'timesheets', 'rosters', 'dashboard', 'notifications', 'portals']
+sort_order: ['staff', 'timesheets', 'rosters', 'dashboard', 'notifications', 'portals']
+
+asset_bundler:
+ compress:
+ js: yui
+ css: yui
+ base_path: /bundles/
+ server_url:
+ remove_bundled: false
+ dev: false
View
@@ -4,11 +4,16 @@
<meta charset=utf-8 />
<title> {% if page.title %} {{ page.title }} | {% endif %} PayAus Help</title>
<link rel="shortcut icon" href="/favicon.ico" />
- <link rel="stylesheet" href="/css/bootstrap.min.css" />
- <link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
- <link rel="stylesheet" href="/css/style.css" />
- <script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
- <!--<script type="text/javascript" src="/js/bootstrap.min.js"></script>-->
+ {% bundle %}
+ - /css/bootstrap.min.css
+ - /css/bootstrap-responsive.min.css
+ - /css/style.css
+ {% endbundle %}
+ {% bundle %}
+ - /js/jquery-1.9.1.min.js
+ - /js/nav.js
+ - /js/toc.js
+ {% endbundle %}
{% render_partial analytics.html %}
</head>
<body>
@@ -35,7 +40,5 @@
</ul>
</div>
</footer>
- <script type="text/javascript" src="/js/nav.js"></script>
- <script type="text/javascript" src="/js/toc.js"></script>
</body>
</html>
Oops, something went wrong.

0 comments on commit 94017bc

Please sign in to comment.