Permalink
Browse files

Made homepage configurable

  • Loading branch information...
1 parent 0782e83 commit da82898f92a71dc6ad7f1e0c2feb6dc77453cd7f @namelessjon committed Mar 13, 2010
Showing with 6 additions and 5 deletions.
  1. +1 −1 lists/index.js
  2. +1 −1 lists/recent.js
  3. +2 −1 notewiki.json
  4. +1 −1 shows/edit.js
  5. +1 −1 shows/page.js
View
2 lists/index.js
@@ -6,7 +6,7 @@ function(head, req) {
var recentPath = listPath('recent','recent',{descending:true, limit:20});
var allPath = listPath('index','all');
- var homePath = showPath('page', 'FrontPage');
+ var homePath = showPath('page', notewiki.homepage);
// The provides function serves the format the client requests.
// The first matching format is sent, so reordering functions changes
View
2 lists/recent.js
@@ -6,7 +6,7 @@ function(head, req) {
var recentPath = listPath('recent','recent',{descending:true, limit:20});
var allPath = listPath('index','all');
- var homePath = showPath('page', 'FrontPage');
+ var homePath = showPath('page', notewiki.homepage);
// The provides function serves the format the client requests.
// The first matching format is sent, so reordering functions changes
View
3 notewiki.json
@@ -1,4 +1,5 @@
{
"name": "NoteWiki",
- "description": "for all your random note needs"
+ "description": "for all your random note needs",
+ "homepage" : "FrontPage"
}
View
2 shows/edit.js
@@ -15,7 +15,7 @@ function(doc, req) {
var recentPath = listPath('recent','recent',{descending:true, limit:20});
var allPath = listPath('index','all');
- var homePath = showPath('page', 'FrontPage');
+ var homePath = showPath('page', notewiki.homepage);
// we only show http
return template(templates.edit, {
View
2 shows/page.js
@@ -17,7 +17,7 @@ function(doc, req) {
var recentPath = listPath('recent','recent',{descending:true, limit:20});
var allPath = listPath('index','all');
- var homePath = showPath('page', 'FrontPage');
+ var homePath = showPath('page', notewiki.homepage);
// we only show http
return template(templates.page, {

0 comments on commit da82898

Please sign in to comment.