diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index 1a1c1768..06438100 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -961,6 +961,10 @@ async function loadNews(){ const distroData = await DistroAPI.getDistribution() if(!distroData.rawDistribution.rss) { loggerLanding.debug('No RSS feed provided.') + + // remove the news button + await $('#newsButton').fadeOut(250).promise() + return null } diff --git a/app/assets/lang/_custom.toml b/app/assets/lang/_custom.toml index da17faf9..c9d3526b 100644 --- a/app/assets/lang/_custom.toml +++ b/app/assets/lang/_custom.toml @@ -5,9 +5,9 @@ title = "Helios Launcher" [ejs.landing] mediaGitHubURL = "https://github.com/dscalzi/HeliosLauncher" -mediaTwitterURL = "#" -mediaInstagramURL = "#" -mediaYouTubeURL = "#" +mediaTwitterURL = "" +mediaInstagramURL = "" +mediaYouTubeURL = "" mediaDiscordURL = "https://discord.gg/zNWUXdt" [ejs.settings] diff --git a/app/landing.ejs b/app/landing.ejs index 5ac72a15..3e1e72b2 100644 --- a/app/landing.ejs +++ b/app/landing.ejs @@ -27,66 +27,79 @@ -
-
-
- - - - - - - - + <% if (lang('landing.mediaGitHubURL') + lang('landing.mediaTwitterURL') + lang('landing.mediaInstagramURL') + lang('landing.mediaYouTubeURL') + lang('landing.mediaDiscordURL') != "") { %> +
+
+ <% if (lang('landing.mediaGitHubURL') != "") { %> + + <% } %> + <% if (lang('landing.mediaTwitterURL') != "") { %> + + <% } %> + <% if (lang('landing.mediaInstagramURL') != "") { %> + + <% } %> + <% if (lang('landing.mediaYouTubeURL') != "") { %> + + <% } %> + + <% if (lang('landing.mediaDiscordURL') != "") { %> + + <% } %>
- - - - -
+ <% } %>