add initial layouts

This commit is contained in:
ajuvercr 2020-02-27 21:45:34 +01:00
parent 7e56cc3eb0
commit 3ebf1be95c
5 changed files with 25 additions and 3 deletions

View file

@ -11,6 +11,7 @@ gem 'nanoc'
gem 'pdfkit'
gem 'sassc'
gem 'slim'
gem 'sass'
group :nanoc do
gem 'guard-nanoc'

View file

@ -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

14
Rules
View file

@ -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.*'

View file

@ -1 +1,2 @@
<h1><%item[:vraag]%></h1>
<h1><%= item[:vraag] %></h1>
<h3> Hallo </h3>

View file

@ -5,5 +5,5 @@
<%= render '/partials/question.*', item: x %>
</div>
<% end %>
<ul>
</ul>
<%= yield %>