Adrian McEwen
@amcewen
http://mcqn.com
@mcqn_ltd
http://mcqn.com/bell
http://mcqn.com/ibal156
http://doesliverpool.com
# Move onto the next page
page_num += 1
end
end
# Output blog post data
puts "Saving draft blog post..."
content = output_settings["preambles"]["intro"]
unless weeknotes.empty?
content = content + "\n<h3>Things of Note</h3>"
content = content + "\n<ul class=\"weeknotes\">"
weeknotes.each do |w|
content = content + "\n" + w.html.force_encoding("UTF-8")
end
content = content + "\n</ul>"
end
unless input_settings["calendar"].nil?
content = content + "\n<h3>Coming Up in the Next Week</h3>"
content = content + "\n<table>"
events.each do |ev|
content = content + "\n" + ev.html.force_encoding("UTF-8")
end
content = content + "\n</table>"
end