Move the contributor comment to end of source

This commit is contained in:
Gabe Kangas 2023-01-11 23:50:26 -08:00
parent bcdce2e885
commit aadf721808
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* eslint-disable react/no-danger */
export const HtmlComment = ({ text }) => (
<div dangerouslySetInnerHTML={{ __html: `<!-- ${text} -->` }} />
<span style={{ display: 'none' }} dangerouslySetInnerHTML={{ __html: `\n\n<!-- ${text} -->` }} />
);

View File

@ -26,11 +26,12 @@ class InlineStylesHead extends Head {
export default function Document() {
return (
<Html lang="en">
<HtmlComment text="If you're reading this we'd love your help with Owncast! Visit https://owncast.online/help to see how you can contribute to make independent, open source live streaming better with your help." />
<InlineStylesHead />
<body>
<Main />
<NextScript />
{'\n\n'}
<HtmlComment text="If you're reading this we'd love your help with Owncast! Visit https://owncast.online/help to see how you can contribute to make independent, open source live streaming better with your help." />
</body>
</Html>
);