I haven't found a way to completely eliminate hacks to the stock
routing module, but I did manage a static "About Us" page that exists
within our local theme and requires only a reference in
'src/app/app-routing.module.ts':
------------------------ src/app/app-routing.module.ts ------------------------
index d426b041c..2d5b27797 100644
@@ -41,9 +41,12 @@ import { ServerCheckGuard } from './core/server-check/server-check.guard';
import { MenuResolver } from './menu.resolver';
import { ThemedPageErrorComponent } from './page-error/themed-page-error.component';
+import { AboutComponent } from '../themes/scholarworks/app/static/about/about-page.component';
+
@NgModule({
imports: [
RouterModule.forRoot([
+ { path: 'about', component: AboutComponent },
{ path: INTERNAL_SERVER_ERROR, component: ThemedPageInternalServerErrorComponent },
{ path: ERROR_PAGE , component: ThemedPageErrorComponent },
{
AboutComponent consists of an empty class, an empty stylesheet, and a
single 'div' providing a basic description of the repo. plus links to
further reading and a 'mailto:'.
The close coupling between stock and theme led me to leave this commit
message:
Add a link and an About page.
This required adding the route in the main routing module, pointing into our
theme. That is a nasty hack and should be fixed when I find out how to put
the route into our theme's module.
--
Mark H. Wood
Lead Technology Analyst
University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu