diff --git a/frontend/apps/remark42/app/components/root/root.tsx b/frontend/apps/remark42/app/components/root/root.tsx
index 57fe3e10..91f8e0c7 100644
--- a/frontend/apps/remark42/app/components/root/root.tsx
+++ b/frontend/apps/remark42/app/components/root/root.tsx
@@ -351,22 +351,28 @@ const CopyrightLink = (title: string) => (
);
+const Copyright = () => (
+
+
+
+);
+
/** Root component connected to redux */
export function ConnectedRoot() {
const intl = useIntl();
const props = useSelector(mapStateToProps);
const actions = useActions(boundActions);
+ if (!window.remark_config) {
+ throw new Error('Remark42: Config object is undefined');
+ }
+
+ const { no_footer } = window.remark_config;
+
return (
);
}
diff --git a/frontend/apps/remark42/app/typings/global.d.ts b/frontend/apps/remark42/app/typings/global.d.ts
index 0706aef3..0a52cade 100644
--- a/frontend/apps/remark42/app/typings/global.d.ts
+++ b/frontend/apps/remark42/app/typings/global.d.ts
@@ -13,6 +13,7 @@ type RemarkConfig = {
max_last_comments?: number;
__colors__?: Record;
simple_view?: boolean;
+ no_footer?: boolean;
};
declare global {
diff --git a/site/src/docs/configuration/frontend/index.md b/site/src/docs/configuration/frontend/index.md
index 6f0fd891..8e59a849 100644
--- a/site/src/docs/configuration/frontend/index.md
+++ b/site/src/docs/configuration/frontend/index.md
@@ -20,6 +20,7 @@ title: Frontend Configuration
- **`show_email_subscription`**`: boolean` (optional, `true` by default) – enables email subscription feature in interface when enable it from backend side, if you set this param in `false` you will get notifications email notifications as admin but your users won't have interface for subscription
- **`show_rss_subscription`**`: boolean` (optional, `true` by default) – enables RSS subscription feature in interface
- **`simple_view`**`: boolean` (optional, `false` by default) – overrides the parameter from the backend minimized UI with basic info only
+- **`no_footer`**`: boolean` (optional, `false` by default) – hides footer with signatue and links to remark42
Example with all of the params:
@@ -34,7 +35,8 @@ Example with all of the params:
page_title: 'My custom title for a page',
locale: 'es',
show_email_subscription: false,
- simple_view: true
+ simple_view: true,
+ no_footer: false
}
```