diff --git a/Gemfile b/Gemfile index 5caeecf..df0dd76 100644 --- a/Gemfile +++ b/Gemfile @@ -11,6 +11,7 @@ gem 'nanoc' gem 'pdfkit' gem 'sassc' gem 'slim' +gem 'sass' group :nanoc do gem 'guard-nanoc' diff --git a/Gemfile.lock b/Gemfile.lock index 064c377..8b55421 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -101,6 +101,11 @@ GEM rb-inotify (0.10.1) ffi (~> 1.0) ref (2.0.0) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) sassc (2.2.1) ffi (~> 1.9) shellany (0.0.1) @@ -133,6 +138,7 @@ DEPENDENCIES mini_racer nanoc pdfkit + sass sassc slim diff --git a/Rules b/Rules index 275f1e3..7493db9 100644 --- a/Rules +++ b/Rules @@ -7,6 +7,13 @@ compile '/verenigingen/*.md' do write ext: 'html' end +compile '/quiz/*.md' do + filter :kramdown + layout '/partials/question.*' + layout '/default.*' + write ext: 'html' +end + compile '/homepage.md' do filter :kramdown layout '/homepage.*' @@ -21,6 +28,13 @@ compile '/verenigingen.md' do write ext: 'html' end +compile '/quiz.md' do + filter :kramdown + layout '/quiz.*' + layout '/default.*' + write ext: 'html' +end + compile '/*.md' do filter :kramdown layout '/default.*' diff --git a/layouts/partials/question.erb b/layouts/partials/question.erb index c9c9e4c..19fc9f4 100644 --- a/layouts/partials/question.erb +++ b/layouts/partials/question.erb @@ -1 +1,2 @@ -