diff options
| author | Leitwolf | 2026-10-18 02:22:48 +0300 |
|---|---|---|
| committer | GitHub | 2026-10-18 02:22:48 +0300 |
| commit | c2eb3d208b37826167496cfdf657ffca33fef703 (patch) | |
| tree | 7e459be0fa4ac04c126413e405c3939e26cb86bc /frontend/src/main.ts | |
| parent | 7190d8a0911b4cea07cc502a1e471f0889b6d20b (diff) | |
| parent | 43c431a793affe2fa41ead816268d6af760f72d0 (diff) | |
| download | website-c2eb3d208b37826167496cfdf657ffca33fef703.tar.gz | |
Merge pull request #40 from Progmasoft/design/landing-pages
Give each site a calm landing page with a "Why" section
Diffstat (limited to 'frontend/src/main.ts')
| -rw-r--r-- | frontend/src/main.ts | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 9a5d204..c67898f 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -6,24 +6,25 @@ import { createRouter, createWebHistory, type RouteRecordRaw } from "vue-router" import App from "./App.vue"; import { contentRoutes } from "./content/routes"; import DocPage from "./pages/DocPage.vue"; -import HomePage from "./pages/HomePage.vue"; +import LandingPage from "./pages/LandingPage.vue"; import OverviewPage from "./pages/OverviewPage.vue"; import GettingStartedPage from "./pages/GettingStartedPage.vue"; import { locale } from "./preferences"; import { applyPageMetadata } from "./seo"; -import { site, siteHome } from "./site"; +import { site } from "./site"; import "./styles/site.css"; -// tala.run has its home page and two pages built by hand; the documentation of Talac and Tazel, on their own -// hosts, is rendered from content and opens on its first topic. -const pages: RouteRecordRaw[] = - site === "language" +// Every site opens on its own landing page. tala.run also has two pages built by hand; the rest of the +// documentation of each site is rendered from content. +const pages: RouteRecordRaw[] = [ + { path: "/", component: LandingPage }, + ...(site === "language" ? [ - { path: "/", component: HomePage }, { path: "/docs/overview", component: OverviewPage }, { path: "/docs/getting-started", component: GettingStartedPage }, ] - : [{ path: "/", redirect: siteHome[site] }]; + : []), +]; const documentation: RouteRecordRaw[] = contentRoutes[site].map((route) => ({ path: route.path, component: DocPage, |