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') != "") { %> + + <% } %>
- - - - -
+ <% } %>