fix: add 'rel' attirubte to edit link (#3293)

This commit is contained in:
Erez Rokah
2020-02-20 16:38:34 +01:00
committed by GitHub
parent 783440e370
commit 5ea1554a07
5 changed files with 21 additions and 24 deletions

View File

@ -15,7 +15,7 @@ const EditLink = ({ collection, filename }) => (
}
`}
>
<a href={`/admin/#/edit/${collection}/${filename}`} target="_blank">
<a href={`/admin/#/edit/${collection}/${filename}`} target="_blank" rel="noopener noreferrer">
<svg
version="1.1"
id="pencil"

View File

@ -33,7 +33,7 @@ export const LayoutTemplate = ({ children }) => (
<GlobalStyles />
{children}
</ThemeProvider>
)
);
const Layout = ({ hasPageHero, children }) => {
return (

View File

@ -127,7 +127,7 @@ const StyledMarkdown = styled.div`
const Markdown = ({ body, html }) => {
if (body) {
return <StyledMarkdown>{body}</StyledMarkdown>
return <StyledMarkdown>{body}</StyledMarkdown>;
}
return <StyledMarkdown dangerouslySetInnerHTML={{ __html: html }} />;
};