diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index 14b7719b..d1bda9f0 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -125,6 +125,7 @@ user: String, dmca_content: {type: Array(String), default: [] of String}, # For compliance with DMCA, disables download widget using list of video IDs check_tables: {type: Bool, default: false}, # Check table integrity, automatically try to add any missing columns, create tables, etc. cache_annotations: {type: Bool, default: false}, # Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards + banner: {type: String?, default: nil}, # Optional banner to be displayed along top of page for announcements, etc. }) end diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr index 87a8b950..e10ee5c6 100644 --- a/src/invidious/views/template.ecr +++ b/src/invidious/views/template.ecr @@ -94,13 +94,18 @@ <% if config.login_enabled %>
" class="pure-menu-heading"> - <%= translate(locale, "Log in") %> + <%= translate(locale, "Log in") %>
<% end %> <% end %> + <% if CONFIG.banner %> +
+

<%= CONFIG.banner %>

+ <% end %> +
<%= content %>