0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 13:32:39 +00:00

Added print rules and fixing the newer border images

This commit is contained in:
Scott Tolksdorf
2016-05-14 13:40:31 -04:00
parent 9c1fd5b13a
commit c4c09f0a69
5 changed files with 80 additions and 91 deletions

View File

@@ -87,10 +87,10 @@ module.exports = function(app){
}
var content = _.map(brew.text.split('\\page'), function(pageText){
return '<div class="phb">' + Markdown(pageText) + '</div>';
return '<div class="phb print">' + Markdown(pageText) + '</div>';
}).join('\n');
var title = '<title>' + brew.text.split('\n')[0] + '</title>';
var title = '<title>' + brew.title + '</title>';
var page = '<html><head>' + title + PHBStyle + '</head><body>' + content +'</body></html>'
return res.send(page)