mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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;
|
var self = this;
|
||||||
return function initTheme(req, res, next) {
|
return function initTheme(req, res, next) {
|
||||||
app.set('view engine', 'hbs');
|
app.set('view engine', 'hbs');
|
||||||
|
// return the correct mime type for woff files
|
||||||
|
express['static'].mime.define({'application/font-woff': ['woff']});
|
||||||
|
|
||||||
if (!res.isAdmin) {
|
if (!res.isAdmin) {
|
||||||
app.engine('hbs', hbs.express3(
|
app.engine('hbs', hbs.express3(
|
||||||
{partialsDir: self.paths().activeTheme + 'partials'}
|
{partialsDir: self.paths().activeTheme + 'partials'}
|
||||||
|
|
Loading…
Add table
Reference in a new issue