mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00

This commit adds the "license" frontmatter property which sets a link with the "license" relation in the head of the HTML page. Furthermore, this commit restructures the other head elements for a note altogether into a single component that can be used to inject all head elements at once. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
26 lines
1 KiB
TypeScript
26 lines
1 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { NoteLoadingBoundary } from '../../components/common/note-loading-boundary/note-loading-boundary'
|
|
import { HeadMetaProperties } from '../../components/editor-page/head-meta-properties/head-meta-properties'
|
|
import { EditorToRendererCommunicatorContextProvider } from '../../components/editor-page/render-context/editor-to-renderer-communicator-context-provider'
|
|
import { SlideShowPageContent } from '../../components/slide-show-page/slide-show-page-content'
|
|
import React from 'react'
|
|
|
|
/**
|
|
* Renders a page that is used by the user to hold a presentation. It contains the renderer for the presentation.
|
|
*/
|
|
export const SlideShowPage: React.FC = () => {
|
|
return (
|
|
<NoteLoadingBoundary>
|
|
<HeadMetaProperties />
|
|
<EditorToRendererCommunicatorContextProvider>
|
|
<SlideShowPageContent />
|
|
</EditorToRendererCommunicatorContextProvider>
|
|
</NoteLoadingBoundary>
|
|
)
|
|
}
|
|
|
|
export default SlideShowPage
|