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:
parent
199d15133b
commit
30bc4d8434
1 changed files with 3 additions and 0 deletions
|
@ -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'}
|
||||
|
|
Loading…
Reference in a new issue