mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 19:19:06 +03:00
Add a little comment for those viewing HTML source that we could use contributors
This commit is contained in:
parent
bfb245efe2
commit
9cc7b1cf2d
2 changed files with 6 additions and 1 deletions
4
web/components/common/HtmlComment/HtmlComment.tsx
Normal file
4
web/components/common/HtmlComment/HtmlComment.tsx
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/* eslint-disable react/no-danger */
|
||||||
|
export const HtmlComment = ({ text }) => (
|
||||||
|
<div dangerouslySetInnerHTML={{ __html: `<!-- ${text} -->` }} />
|
||||||
|
);
|
|
@ -1,8 +1,8 @@
|
||||||
/* eslint-disable react/no-danger */
|
/* eslint-disable react/no-danger */
|
||||||
import { Html, Head, Main, NextScript } from 'next/document';
|
import { Html, Head, Main, NextScript } from 'next/document';
|
||||||
|
|
||||||
import { readFileSync } from 'fs';
|
import { readFileSync } from 'fs';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
import { HtmlComment } from '../components/common/HtmlComment/HtmlComment';
|
||||||
|
|
||||||
class InlineStylesHead extends Head {
|
class InlineStylesHead extends Head {
|
||||||
getCssLinks: Head['getCssLinks'] = ({ allFiles }) => {
|
getCssLinks: Head['getCssLinks'] = ({ allFiles }) => {
|
||||||
|
@ -26,6 +26,7 @@ class InlineStylesHead extends Head {
|
||||||
export default function Document() {
|
export default function Document() {
|
||||||
return (
|
return (
|
||||||
<Html lang="en">
|
<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 />
|
<InlineStylesHead />
|
||||||
<body>
|
<body>
|
||||||
<Main />
|
<Main />
|
||||||
|
|
Loading…
Reference in a new issue