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

Add custom text at the bottom - contact a maintainer #3826

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions config/config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,16 @@ jobs:
##
#banner:

##
## Custom footer displayed on the bottom of every page.
## Similar to the banner option but at the bottom of the page
## Useful for putting contact info of a/the maintainer for example.
##
## Accepted values: any string. HTML is accepted.
## Default: <none>
##
#footer:

##
## Subscribe to channels using PubSubHub (Google PubSubHubbub service).
## PubSubHub allows Invidious to be instantly notified when a new video
Expand Down
2 changes: 2 additions & 0 deletions src/invidious/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class Config
property cache_annotations : Bool = false
# Optional banner to be displayed along top of page for announcements, etc.
property banner : String? = nil
# Optional footer banner to be displayed along the bottom of the page. Can be used for maintainer contact info, etc.
property footer : String? = nil
# Enables 'Strict-Transport-Security'. Ensure that `domain` and all subdomains are served securely
property hsts : Bool? = true
# Disable proxying server-wide: options: 'dash', 'livestreams', 'downloads', 'local'
Expand Down
5 changes: 5 additions & 0 deletions src/invidious/views/template.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@
<span><%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %> @ <%= CURRENT_BRANCH %></span>
</div>
</div>
<% if CONFIG.footer %>
<div>
<h4 style="text-align: center;"><%= CONFIG.footer %></h3>
auralglow marked this conversation as resolved.
Show resolved Hide resolved
</div>
<% end %>
</footer>

</div>
Expand Down