fix: add 'rel' attirubte to edit link (#3293)
This commit is contained in:
@ -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"
|
||||
|
@ -33,7 +33,7 @@ export const LayoutTemplate = ({ children }) => (
|
||||
<GlobalStyles />
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
)
|
||||
);
|
||||
|
||||
const Layout = ({ hasPageHero, children }) => {
|
||||
return (
|
||||
|
@ -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 }} />;
|
||||
};
|
||||
|
Reference in New Issue
Block a user