|
19 | 19 | import {
|
20 | 20 | Links,
|
21 | 21 | Meta,
|
| 22 | + type MetaFunction, |
22 | 23 | Outlet,
|
23 | 24 | Scripts,
|
24 | 25 | ScrollRestoration,
|
| 26 | + type MetaDescriptor, |
25 | 27 | } from "@remix-run/react";
|
26 | 28 | import cx from "classnames";
|
27 | 29 |
|
| 30 | +export const DEFAULT_META: MetaDescriptor[] = [ |
| 31 | + { |
| 32 | + title: "Reproducible Data Science | Open Research | Renku", |
| 33 | + }, |
| 34 | + { |
| 35 | + name: "description", |
| 36 | + content: |
| 37 | + "An open-source platform for reproducible and collaborative data science. Share code, data and computational environments whilst tracking provenance and lineage of research objects.", |
| 38 | + }, |
| 39 | + { |
| 40 | + property: "og:title", |
| 41 | + content: "Reproducible Data Science | Open Research | Renku", |
| 42 | + }, |
| 43 | + { |
| 44 | + property: "og:description", |
| 45 | + content: |
| 46 | + "Work together on data science projects reproducibly. Share code, data and computational environments whilst accessing free computing resources.", |
| 47 | + }, |
| 48 | +]; |
| 49 | + |
| 50 | +export const meta: MetaFunction = () => { |
| 51 | + return DEFAULT_META; |
| 52 | +}; |
| 53 | + |
28 | 54 | export default function Root() {
|
29 | 55 | return (
|
30 | 56 | <html lang="en">
|
31 | 57 | <head>
|
32 | 58 | <meta charSet="utf-8" />
|
33 |
| - <meta |
34 |
| - name="description" |
35 |
| - content="An open-source platform for reproducible and collaborative data science. Share code, data and computational environments whilst tracking provenance and lineage of research objects." |
36 |
| - /> |
37 |
| - |
38 |
| - <meta |
39 |
| - property="og:title" |
40 |
| - content="Reproducible Data Science | Open Research | Renku" |
41 |
| - /> |
42 |
| - <meta |
43 |
| - property="og:description" |
44 |
| - // eslint-disable-next-line spellcheck/spell-checker |
45 |
| - content="Work together on data science projects reproducibly. Share code, data and computational environments whilst accessing free computing resources." |
46 |
| - /> |
47 | 59 |
|
48 | 60 | <meta
|
49 | 61 | name="viewport"
|
@@ -74,8 +86,6 @@ export default function Root() {
|
74 | 86 | href="/favicon-16x16.png"
|
75 | 87 | />
|
76 | 88 | <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
|
77 |
| - |
78 |
| - <title>Reproducible Data Science | Open Research | Renku</title> |
79 | 89 | <Meta />
|
80 | 90 | <Links />
|
81 | 91 | </head>
|
|
0 commit comments