seo stuff
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m55s

This commit is contained in:
Lee 2024-04-14 15:27:13 +01:00
parent 4d0ae5286d
commit 1de25a92ba
2 changed files with 30 additions and 13 deletions

@ -18,6 +18,7 @@ public class HomeController {
@GetMapping(value = "/") @GetMapping(value = "/")
public String home(Model model) { public String home(Model model) {
model.addAttribute("public_url", Config.INSTANCE.getWebPublicUrl());
model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid); model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid);
model.addAttribute("java_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/java/" + exampleServer); model.addAttribute("java_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/java/" + exampleServer);
model.addAttribute("mojang_endpoint_status_url", Config.INSTANCE.getWebPublicUrl() + "/mojang/status"); model.addAttribute("mojang_endpoint_status_url", Config.INSTANCE.getWebPublicUrl() + "/mojang/status");

@ -1,17 +1,33 @@
<!doctype html> <!doctype html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"> <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head> <head>
<title>Minecraft Utilities</title> <title>Minecraft Utilities - Wrapper for the Minecraft APIs</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" <meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="keywords" content="Minecraft, APIs, wrapper, utility, development">
<!-- Discord Meta Tags --> <!-- Discord Meta Tags -->
<meta name="description" content="Wrapper for the Minecraft APIs to make them easier to use."> <meta name="description" content="Minecraft Utilities provides a convenient wrapper for the Minecraft APIs, simplifying their usage for developers.">
<meta name="theme-color" content="#3498DB"> <meta name="theme-color" content="#3498DB">
<!-- Open Graph / Facebook -->
<meta property="og:title" content="Minecraft Utilities - Wrapper for the Minecraft APIs">
<meta property="og:description" content="Minecraft Utilities provides a convenient wrapper for the Minecraft APIs, simplifying their usage for developers.">
<meta property="og:type" content="website">
<meta property="og:url" th:content="${public_url}">
<meta property="og:image" content="https://git.fascinated.cc/MinecraftUtilities/Assets/raw/branch/master/logo.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" th:content="${public_url}">
<meta property="twitter:title" content="Minecraft Utilities - Wrapper for the Minecraft APIs">
<meta property="twitter:description" content="Minecraft Utilities provides a convenient wrapper for the Minecraft APIs, simplifying their usage for developers.">
<meta property="twitter:image" content="https://git.fascinated.cc/MinecraftUtilities/Assets/raw/branch/master/logo.png">
<script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.tailwindcss.com"></script>
</head> </head>
<body class="flex flex-col h-screen mt-5 items-center bg-neutral-900 text-white text-center"> <body class="flex flex-col h-screen mt-5 items-center bg-neutral-900 text-white text-center">