Skip to content
Snippets Groups Projects
Commit 1a4e0503 authored by Marius Heidenreich's avatar Marius Heidenreich
Browse files

added meta tags

parent 2396e147
No related branches found
No related tags found
No related merge requests found
Pipeline #280426 passed
...@@ -8,6 +8,7 @@ def get_competition_page_html(self, competition_id): ...@@ -8,6 +8,7 @@ def get_competition_page_html(self, competition_id):
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="description" content="Results of {full_competition_name}">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{full_competition_name} - Results</title> <title>{full_competition_name} - Results</title>
{self.header_snippet} {self.header_snippet}
...@@ -206,19 +207,18 @@ def get_competition_page_html(self, competition_id): ...@@ -206,19 +207,18 @@ def get_competition_page_html(self, competition_id):
<body> <body>
<h1>{full_competition_name} - Results</h1> <h1>{full_competition_name} - Results</h1>
<p><a href="../index.html">← Back to World Ranking</a></p> <p><a href="../index.html">← Back to World Ranking</a></p>
</div>
<div class="sponsoring-container"> <div class="sponsoring-container">
<div style="margin-bottom: 12px; margin-top: 16px; text-align: center">sponsored by:</div> <div style="margin-bottom: 12px; margin-top: 16px; text-align: center">sponsored by:</div>
<div class="sponsoring-flex"> <div class="sponsoring-flex">
<div class="sponsor"> <div class="sponsor">
<a href="https://murtfeldt.de" target="_blank"><img src="../../murtfeldt.png"></a> <a href="https://murtfeldt.de" target="_blank"><img src="../murtfeldt.png" alt="Logo of Murtfeldt Kunststoffe"></a>
</div> </div>
<div class="sponsor"> <div class="sponsor">
<a href="https://www.kordel.de" target="_blank"><img src="../../kordel.png"></a> <a href="https://www.kordel.de" target="_blank"><img src="../kordel.png" alt="Logo of Kordel"></a>
</div> </div>
<div class="sponsor"> <div class="sponsor">
<a href="https://www.vulcanus-stahl.de/" target="_blank"><img src="../../vulcanus.png"></a> <a href="https://www.vulcanus-stahl.de/" target="_blank"><img src="../vulcanus.png" alt="Logo of Vulcanus Stahl"></a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -242,7 +242,7 @@ class EloSystem: ...@@ -242,7 +242,7 @@ class EloSystem:
"""Generate static HTML website with Elo ratings and visualizations""" """Generate static HTML website with Elo ratings and visualizations"""
# If num_processes not specified, use number of CPU cores # If num_processes not specified, use number of CPU cores
num_processes = int(mp.cpu_count()/2) num_processes = int(mp.cpu_count())
print(f"staring computation on {num_processes} cores") print(f"staring computation on {num_processes} cores")
pool = mp.Pool(processes=num_processes) pool = mp.Pool(processes=num_processes)
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="description" content="Unofficial Formula Student World Ranking">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formula Student World Elo</title> <title>Formula Student World Elo</title>
<script defer data-domain="fselo.get-racing.de" src="https://analytics.get-racing.de/js/script.js"></script> <script defer data-domain="fselo.get-racing.de" src="https://analytics.get-racing.de/js/script.js"></script>
<style> <style>
......
...@@ -6,6 +6,7 @@ def get_team_page_html(self, team_name, team_data, team_competitions): ...@@ -6,6 +6,7 @@ def get_team_page_html(self, team_name, team_data, team_competitions):
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="description" content="Overview of the elo history of {team_name}">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{team_name} - Elo Profile</title> <title>{team_name} - Elo Profile</title>
{self.header_snippet} {self.header_snippet}
......
...@@ -6,6 +6,7 @@ def get_world_ranking_html(self, sorted_teams): ...@@ -6,6 +6,7 @@ def get_world_ranking_html(self, sorted_teams):
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="description" content="Unofficial Formula Student {self.competition_type} World Ranking">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formula Student {self.competition_type} Elo Rankings</title> <title>Formula Student {self.competition_type} Elo Rankings</title>
{self.header_snippet} {self.header_snippet}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment