Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Fix bug 893884 - Add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuck committed Aug 27, 2013
1 parent 6550084 commit 26b049a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Binary file added public/static/images/favicon.ico
Binary file not shown.
10 changes: 7 additions & 3 deletions server.js
Expand Up @@ -25,6 +25,7 @@ var app = express(),
nunjucksEnv = new nunjucks.Environment( new nunjucks.FileSystemLoader( path.join( __dirname, 'views' )), {
autoescape: true
}),
oneYear = 31556952000,
optimizeCSS = env.get("OPTIMIZE_CSS"),
tmpDir = path.join(require("os").tmpDir(), "make-valet");

Expand All @@ -46,6 +47,9 @@ app.locals({
});
nunjucksEnv.express( app );

app.use(express.favicon("public/static/images/favicon.ico", {
maxAge: oneYear
}));
app.use(express.logger());
app.use(express.compress());
// Redirect paths with trailing slashes to paths w/o trailing slashes
Expand All @@ -59,13 +63,13 @@ app.use(lessMiddleware({
optimization: optimizeCSS ? 0 : 2
}));
app.use(express.static(tmpDir, {
maxAge: "31556952000" // one year
maxAge: oneYear
}));
app.use(express.static(path.join(__dirname, "public"), {
maxAge: "31556952000" // one year
maxAge: oneYear
}));
app.use("/static/bower", express.static(path.join(__dirname, "bower_components"), {
maxAge: "31556952000" // one year
maxAge: oneYear
}));
app.use(middleware.setVanityURL);
app.use(app.router);
Expand Down
1 change: 1 addition & 0 deletions views/embed-shell.html
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<title>{{make.title}}</title>
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="/static/stylesheets/makedetails.css">
</head>
<body>
Expand Down

0 comments on commit 26b049a

Please sign in to comment.