Skip to content

Commit

Permalink
Merge pull request #317 from NFDI4Chem/316-Update-docusaurus.config.js
Browse files Browse the repository at this point in the history
316 update docusaurus.config.js
  • Loading branch information
jliermann authored Jan 8, 2024
2 parents 7f99f3b + 9ac06b0 commit d28649e
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 42 deletions.
11 changes: 11 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const announcementBar = announcementBarActive
: {};

const title = "NFDI4Chem Knowledge Base";
const description =
"Supporting scientists to digitalise all steps of chemical research: to collect, store, process, analyse, publish, and reuse research data";
const url = "https://knowledgebase.nfdi4chem.de/";
const baseUrl = "/knowledge_base/";

Expand All @@ -20,6 +22,9 @@ module.exports = {
title: title,
url: url,
baseUrl: baseUrl,
customFields: {
description: description,
},
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.png",
Expand All @@ -40,6 +45,12 @@ module.exports = {
...(Object.keys(announcementBar).length > 0 && {
announcementBar: announcementBar,
}),
metadata: [
{
name: "google-site-verification",
content: "wgYVjYSe_T6v6BPPM6fPo1ffl7MYYnuVw-h9RoAYfM0",
},
],
matomo: {
matomoUrl: "https://knowledgebase.nfdi4chem.de/matomo/",
siteId: "1",
Expand Down
87 changes: 45 additions & 42 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
import React from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import N4CFeatures from '../components/N4CFeatures';
import Translate,{translate} from '@docusaurus/Translate';

var desc = <Translate>A place for all knowledge regarding Research Data Management (RDM) in Chemistry</Translate>;
import React from "react";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import N4CFeatures from "../components/N4CFeatures";
import Translate from "@docusaurus/Translate";

export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`${siteConfig.title}`}
description={desc}>
<div className="hero">
<div className="container hero__container">
<div className="row">
<div className="col">
<h1 className='hero__title text'>
{siteConfig.title}
</h1>
</div>
</div>
<div className="row">
<div className="col col--8">
<p className="hero__subtitle">
{desc}
</p>
</div>
<div className="col col--2">
<div className="buttons">
<Link
className="button button--negative button--lg"
to="/docs/intro">
<Translate>Get started</Translate>
</Link>
</div>
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`${siteConfig.title}`}
description={`${siteConfig.customFields.description}`}
>
<div className="hero">
<div className="container hero__container">
<div className="row">
<div className="col">
<h1 className="hero__title text">
{siteConfig.title}
</h1>
</div>
</div>
<div className="row">
<div className="col col--8">
<p className="hero__subtitle">
<Translate>
A place for all knowledge regarding Research
Data Management (RDM) in Chemistry
</Translate>
</p>
</div>
<div className="col col--2">
<div className="buttons">
<Link
className="button button--negative button--lg"
to="/docs/intro"
>
<Translate>Get started</Translate>
</Link>
</div>
</div>
</div>
<N4CFeatures feature="entry" />
</div>
</div>
</div>
<N4CFeatures feature="entry" />
</div>
</div>
</Layout>
);
</Layout>
);
}

0 comments on commit d28649e

Please sign in to comment.