gitoria
All repositories: gitoria
758 B
// components/index.hl — `/` ON EVERY ADDRESS (ticket #6, gitoria#16). The request's host decides, on the SERVER// (`host = null`, hybriel#74): the main address (gitoria.worldapi.org) shows the repo list (list.hl), a repo// address (<slug>.gitoria.worldapi.org) shows that repo's Readme view (readme.hl) — or "No such repository".parent './main.hl'import { siteName } from '../project.hl'import RepoList from './list.hl'import Readme from './readme.hl'import { pageTitle } from '../repos.hl'import { slugOfHost } from '../users.hl'host = nullonMain = slugOfHost(host) == ''onRepo = slugOfHost(host) != ''__title = pageTitle(siteName, slugOfHost(host), '')View {repoHome {if (onMain) { RepoList { } }if (onRepo) { Readme { } }}}
Branches
- mainmain branch