From 8af7d013825a24afd262f27634b2c723b6d3857e Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 15 Mar 2019 14:48:26 +0100 Subject: [PATCH] Fix general-purpose IDs --- website/src/components/title.js | 4 ++-- website/src/html.js | 2 +- website/src/styles/title.module.sass | 3 +++ website/src/templates/docs.js | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/website/src/components/title.js b/website/src/components/title.js index 1eadb3deb..361d24a30 100644 --- a/website/src/components/title.js +++ b/website/src/components/title.js @@ -8,7 +8,7 @@ import { H1 } from './typography' import classes from '../styles/title.module.sass' -const Title = ({ title, tag, version, teaser, source, image, children, ...props }) => ( +const Title = ({ id, title, tag, version, teaser, source, image, children, ...props }) => (
{(image || source) && (
@@ -25,7 +25,7 @@ const Title = ({ title, tag, version, teaser, source, image, children, ...props )}
)} -

+

{title}

{tag && {tag}} diff --git a/website/src/html.js b/website/src/html.js index 54afba894..17d0b6cbe 100644 --- a/website/src/html.js +++ b/website/src/html.js @@ -17,7 +17,7 @@ export default function HTML(props) { /> {props.headComponents} - + {props.preBodyComponents}