diff --git a/cal/src/CalBeta.vue b/cal/src/CalBeta.vue new file mode 100644 index 00000000..ab7ae98d --- /dev/null +++ b/cal/src/CalBeta.vue @@ -0,0 +1,37 @@ + + + + \ No newline at end of file diff --git a/cal/src/CalMain.vue b/cal/src/CalMain.vue index f56b07dd..ca7de27a 100644 --- a/cal/src/CalMain.vue +++ b/cal/src/CalMain.vue @@ -107,7 +107,7 @@ export default { // ( the only problem would be how to parameterize the page with the error string // ( could pass it as a query string? or is that too messy? ) this.error = error; - } else { + } else if (context) { this.page = context.page; // matches the format of siteConfig.defaultPageInfo this.shortcuts = context.shortcuts; scrollPos.restorePos(this.$route); diff --git a/cal/src/calMain.js b/cal/src/calMain.js index 3789d248..162ae004 100644 --- a/cal/src/calMain.js +++ b/cal/src/calMain.js @@ -13,6 +13,7 @@ import CalList from './CalList.vue' import CalSearch from './CalSearch.vue' import CalFavorites from './CalFavorites.vue' import EventDetails from './EventDetails.vue' +import CalBeta from './CalBeta.vue' // import Empty from './Empty.vue' // the router reads and writes the user's address bar @@ -45,6 +46,11 @@ const router = createRouter({ path: '/events/:series_id(\\d+)/:caldaily_id(\\d+)/:slug?', component: EventDetails }, + { + name: "beta", + path: "/events/beta", + component: CalBeta, + }, ], }) diff --git a/site/config/_default/hugo.toml b/site/config/_default/hugo.toml index 255e2125..05d85a8e 100644 --- a/site/config/_default/hugo.toml +++ b/site/config/_default/hugo.toml @@ -34,7 +34,7 @@ disableKinds = ["taxonomy", "term"] # Child of Calendar [[menu.main]] name = "Events (Beta)" - url = "/events/" + url = "/events/beta/" weight = 1 identifier = "" parent = "Calendar"