Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
add favicon. fixed #69
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 11, 2013
1 parent 297a6dd commit 5045c0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion servers/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,22 @@ var render = require('connect-render');
var opensearch = require('../middleware/opensearch');
var app = connect();

var rootdir = path.dirname(__dirname);

app.use(rt({headerName: 'X-ReadTime'}));
app.use(function (req, res, next) {
res.req = req;
next();
});

app.use('/public', connect.static(path.join(rootdir, 'public')));
app.use('/opensearch.xml', opensearch);

app.use(connect.cookieParser());
app.use(session);
app.use(connect.query());
app.use(connect.json());

var rootdir = path.dirname(__dirname);
var viewDir = path.join(rootdir, 'view', 'web');
var docDir = path.join(rootdir, 'docs', 'web');

Expand Down
1 change: 1 addition & 0 deletions view/web/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title><%- locals.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/public/favicon.png">
<!-- Bootstrap -->
<link href="http://cdn.staticfile.org/twitter-bootstrap/3.0.0-rc2/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="http://cdn.staticfile.org/prettify/r298/prettify.min.css" rel="stylesheet" media="screen">
Expand Down

0 comments on commit 5045c0e

Please sign in to comment.