Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Option to set a custom HTML Imprint #153

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

scaedufax
Copy link
Contributor

Hi,

related to #152, but a little more sophisticated. Additionally to just simply set an external URL this would allow to also set HTML code via the Enviroment variable IMPRINT_HTML.

This has the drawback that a route to /imprint is needed, regardless whether the Imprint feature is used or not. As of now the /imprint route just redirects to /about if nothing is configured.

If IMPRINT_URL is specified it takes precedence and /imprint redirects to the given URL. Only if IMPRINT_HTML is given, it'll show on /imprint.

The result looks something like this (depending on the given HTML):
sample

Uli Roth and others added 3 commits September 24, 2024 10:15
The environment Variable IMPRINT_URL simply adds a /imprint button in footer to the url
@cupcakearmy
Copy link
Owner

Super nice PR, thanks for this :)

@cupcakearmy cupcakearmy merged commit 3e8e82f into cupcakearmy:main Sep 27, 2024
1 check passed
@cupcakearmy
Copy link
Owner

Grüße aus dem TMG §5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants