I’m having a little trouble with this scenario:
compile '/**/*.md.erb', rep: :slides do
if item[:status] != "hidden"
filter :erb
layout '/slides.*'
write item.identifier.without_ext + '/slides.html'
else
nil
end
end
compile '/**/*.{md,ical}.erb' do
if item[:status] != "hidden"
filter :erb
filter :kramdown, coderay_line_numbers: nil
layout '/course.*'
else
nil
end
end
# Select which .md.erb becomes the home page of the site
route "/content/welcome/10_syllabus.md.erb" do
'/index.html'
end
route "/content/welcome/10_syllabus.md.erb", rep: :slides do
'/slides.html’
end
My intention is that "/content/welcome/10_syllabus.md.erb” is compiled both with the course layout and the slides layout, and then that the result is that a file called index.html and one called slides.html are generated at output/…
The first one (compile with layout slides) works great, but the second one doesn’t do anything.
If it helps, here’s the repo:
https://github.com/pitosalas/cosi102r
Thanks!
Pito Salas
Brandeis Computer Science
Volen 134