diff --git a/Gemfile b/Gemfile index db7a7b4..a7b9490 100644 --- a/Gemfile +++ b/Gemfile @@ -37,6 +37,7 @@ group :production do # Autoprefixing for class gem 'autoprefixer-rails' gem 'htmlcompressor' + gem 'yui-compressor' end group :nanoc do diff --git a/Gemfile.lock b/Gemfile.lock index 1482cb5..6eddd8a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -107,6 +107,7 @@ GEM json (>= 1.8) nokogiri (~> 1.6) words_counted (1.0.2) + yui-compressor (0.12.0) PLATFORMS ruby @@ -132,6 +133,7 @@ DEPENDENCIES uglifier (>= 4.0.0) w3c_validators words_counted + yui-compressor BUNDLED WITH 1.14.6 diff --git a/content/events/17-18/geeks-attack-vi.md b/content/events/17-18/geeks-attack-vi.md index b106532..d5047c9 100644 --- a/content/events/17-18/geeks-attack-vi.md +++ b/content/events/17-18/geeks-attack-vi.md @@ -7,7 +7,7 @@ created_at: 08-10-2017 time: '27-10-2017 16:00' end: '28-10-2017 12:00' location: 'Therminal, Hoveniersberg 24 9000 Gent' -locationlink: 'Therminal,Ghent Belgium' +locationlink: 'Therminal' facebook: 'https://www.facebook.com/events/1280929475288422/' sponsors: diff --git a/content/events/17-18/internet-freedom.md b/content/events/17-18/internet-freedom.md index 035a789..f44f366 100644 --- a/content/events/17-18/internet-freedom.md +++ b/content/events/17-18/internet-freedom.md @@ -5,7 +5,7 @@ created_at: 19-10-2017 time: '23-11-2017 19:30' end: '23-11-2017 21:00' location: 'Auditorium D, Jozef Plateaustraat 22, 9000 Gent' -locationlink: 'Faculteit Ingenieurswetenschappen en Architectuur' +locationlink: Instituut der Wetenschappen facebook: 'https://www.facebook.com/events/313118845828839/' color: '#aea485' gradient: false diff --git a/content/events/17-18/vpw.md b/content/events/17-18/vpw.md index 5f7bba0..c9c6cf2 100644 --- a/content/events/17-18/vpw.md +++ b/content/events/17-18/vpw.md @@ -4,7 +4,7 @@ image: https://www.vlaamseprogrammeerwedstrijd.be/current/images/VPW2018grootP.p description: Ga mee naar de jaarlijkse Vlaamse Programmeerwedstrijd! time: 14-03-2018 10:00 location: Campus Sterre, Gebouw S9 -locationlink: Building S9 Universiteit Gent +locationlink: S9, Gent #facebook: https://www.facebook.com/events/226450807821839/ color: "#AAF" end: 14-03-2018 21:30 diff --git a/content/events/17-18/zeus-kiest.md b/content/events/17-18/zeus-kiest.md index 4df7fa8..a6e4122 100644 --- a/content/events/17-18/zeus-kiest.md +++ b/content/events/17-18/zeus-kiest.md @@ -5,7 +5,7 @@ created_at: 20-04-2018 time: 08-05-2018 17:30 end: 08-05-2018 23:00 location: Lokaal V1, S9, Campus Sterre -locationlink: S9, Sterre +locationlink: S9 Gent facebook: 'https://www.facebook.com/events/593833734311046' --- diff --git a/layouts/eventpost.erb b/layouts/eventpost.erb index 6075e9b..136fe93 100644 --- a/layouts/eventpost.erb +++ b/layouts/eventpost.erb @@ -12,6 +12,9 @@ + + + <% end %> <% if item[:banner] %> @@ -76,16 +79,72 @@ <%= yield %> - +
- + +
- - + + <% if item[:sponsors] %>
diff --git a/lib/filters/htmlpress.rb b/lib/filters/htmlpress.rb index ed70665..4f319f6 100644 --- a/lib/filters/htmlpress.rb +++ b/lib/filters/htmlpress.rb @@ -1,5 +1,5 @@ require 'htmlcompressor' -Nanoc::Filter.define(:html_press) do |content, _params| - HtmlCompressor::Compressor.new.compress content +Nanoc::Filter.define(:html_press) do |content, options| + HtmlCompressor::Compressor.new(compress_javascript: true, compress_css: true, remove_quotes: true, simple_boolean_attributes: true).compress content end