|
|
|
@@ -56,8 +56,9 @@ type LandingPage string |
|
|
|
|
|
|
|
// enumerates all the landing page types |
|
|
|
const ( |
|
|
|
LandingPageHome LandingPage = "/" |
|
|
|
LandingPageExplore LandingPage = "/explore" |
|
|
|
LandingPageHome LandingPage = "/" |
|
|
|
LandingPageExplore LandingPage = "/explore" |
|
|
|
LandingPageOrganizations LandingPage = "/explore/organizations" |
|
|
|
) |
|
|
|
|
|
|
|
// MarkupParser defines the external parser configured in ini |
|
|
|
@@ -737,6 +738,8 @@ func NewContext() { |
|
|
|
switch sec.Key("LANDING_PAGE").MustString("home") { |
|
|
|
case "explore": |
|
|
|
LandingPageURL = LandingPageExplore |
|
|
|
case "organizations": |
|
|
|
LandingPageURL = LandingPageOrganizations |
|
|
|
default: |
|
|
|
LandingPageURL = LandingPageHome |
|
|
|
} |
|
|
|
|