0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fix for WOFF files

- get express to return the correct mime type for woff files
This commit is contained in:
Hannah Wolfe 2013-06-25 22:47:29 +01:00
parent 199d15133b
commit 30bc4d8434

View file

@ -230,6 +230,9 @@ Ghost.prototype.initTheme = function (app) {
var self = this;
return function initTheme(req, res, next) {
app.set('view engine', 'hbs');
// return the correct mime type for woff files
express['static'].mime.define({'application/font-woff': ['woff']});
if (!res.isAdmin) {
app.engine('hbs', hbs.express3(
{partialsDir: self.paths().activeTheme + 'partials'}