Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made homepage configurable

  • Loading branch information...
commit da82898f92a71dc6ad7f1e0c2feb6dc77453cd7f 1 parent 0782e83
Jon authored
2  lists/index.js
View
@@ -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
2  lists/recent.js
View
@@ -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
3  notewiki.json
View
@@ -1,4 +1,5 @@
{
"name": "NoteWiki",
- "description": "for all your random note needs"
+ "description": "for all your random note needs",
+ "homepage" : "FrontPage"
}
2  shows/edit.js
View
@@ -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, {
2  shows/page.js
View
@@ -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, {
Please sign in to comment.
Something went wrong with that request. Please try again.