Skip to content

Commit 4e58ccc

Browse files
committed
update sitemap and page metadata
1 parent 1375791 commit 4e58ccc

28 files changed

+443
-2578
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ dmypy.json
114114
.pyre/
115115

116116

117-
118-
119-
120117
config.json
121118
sm5_tdf/*
122119
laserball_tdf/*
@@ -129,6 +126,8 @@ transfer.py
129126
*.sqlite3-wal
130127
*.csv
131128

129+
sitemap.xml
130+
132131
# tailwind
133132

134133
assets/css/tailwind.css

assets/html/admin/adminbase.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77

88
<script src="/assets/js/rfid.js"></script>
99

10-
<title>Laserforce Ranking Panel - {% block title %}{% endblock %}</title>
10+
<title>{{ self.title() }} - Laserforce Ranking Panel</title>
1111

12-
<meta name="title" content="Laserforce Ranking Panel - {{ self.title() }}">
12+
<meta name="title" content="{{ self.title() }} - Laserforce Ranking Panel">
1313
<meta name="description" content="Laserforce Ranking for Invasion Laser Tag SM5 and Laserball.">
1414

1515
<meta property="og:type" content="website">
1616
<meta property="og:url" content="https://laserforce.spoo.uk/">
17-
<meta property="og:title" content="Laserforce Ranking Panel - {{ self.title() }}">
17+
<meta property="og:title" content="{{ self.title() }} - Laserforce Ranking Panel">
1818
<meta property="og:description" content="Laserforce Ranking for Invasion Laser Tag SM5 and Laserball.">
1919
<meta property="og:image" content="">
2020

21+
<meta name="robots" content="noindex">
22+
2123
<script>
2224
function toggleNav() {
2325
// animate the nav-items

assets/html/admin/player.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "admin/adminbase.html" %}
2-
{% block title %}Viewing Player{% endblock %}
2+
{% block title %}Player{% endblock %}
33

44

55
{% block html_head %}

assets/html/base.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,34 @@
1616

1717
<script src="/assets/js/rfid.js"></script>
1818

19-
<title>Laserforce Ranking - {% block title %}{% endblock %}</title>
19+
<title>{{ self.title() }} - Laserforce Ranking</title>
2020

21-
<meta name="title" content="Laserforce Ranking - {{ self.title() }}">
21+
<meta name="title" content="{{ self.title() }} - Laserforce Ranking">
22+
{% if self.meta_description %}
23+
<meta name="description" content="{{ self.meta_description() }}">
24+
{% else %}
2225
<meta name="description" content=
23-
"This site was made for Invasion Laser Tag members to track and compare their stats to others
26+
"This site was made for Invasion Laser Tag members to track and compare their stats to others
2427
while providing a more fairand balanced matchmaking system for SM5 and Laserball.
2528
The project is made for fun but improvements will continue to be made.
2629
If you have any comments or suggestions please contact me at collinmcarroll@gmail.com."
27-
>
30+
>
31+
{% endif %}
2832

2933
<meta name="google-site-verification" content="aij-Bj7LszQENPQW0pOGjDKu353N17fGaPQ5kdK8A2U"/>
3034
<meta property="og:type" content="website">
3135
<meta property="og:url" content="https://laserforce.spoo.uk/">
32-
<meta property="og:title" content="Laserforce Ranking - {{ self.title() }}">
36+
<meta property="og:title" content="{{ self.title() }} - Laserforce Ranking">
37+
{% if self.meta_description %}
38+
<meta property="og:description" content="{{ self.meta_description() }}">
39+
{% else %}
3340
<meta property="og:description" content=
34-
"This site was made for Invasion Laser Tag members to track and compare their stats to others while providing a more fairand balanced matchmaking system for SM5 and Laserball.
35-
41+
"This site was made for Invasion Laser Tag members to track and compare their stats to others
42+
while providing a more fairand balanced matchmaking system for SM5 and Laserball.
3643
The project is made for fun but improvements will continue to be made.
3744
If you have any comments or suggestions please contact me at collinmcarroll@gmail.com."
3845
>
46+
{% endif %}
3947
<meta property="og:image" content="">
4048

4149
{% include "game/sm5_tooltips_include.html" %}

assets/html/errors/400.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{% extends "base.html" %}
2-
{% block title %}400 - Bad Request{% endblock %}
2+
{% block title %}Bad Request{% endblock %}
33

44
{% block html_head %}
55
<link rel="stylesheet" href="/assets/css/errors/400.css">
6+
<meta name="robots" content="noindex">
67
{% endblock %}
78

89
{% block content %}

assets/html/errors/404.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{% extends "base.html" %}
2-
{% block title %}404 - Not Found{% endblock %}
2+
{% block title %}Not Found{% endblock %}
33

44
{% block html_head %}
55
<link rel="stylesheet" href="/assets/css/errors/404.css">
6+
<meta name="robots" content="noindex">
67
{% endblock %}
78

89
{% block content %}

assets/html/errors/500.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{% extends "base.html" %}
2-
{% block title %}500 - Internal Server Error{% endblock %}
2+
{% block title %}Internal Server Error{% endblock %}
33

44
{% block html_head %}
55
<link rel="stylesheet" href="/assets/css/errors/500.css">
6+
<meta name="robots" content="noindex">
67
{% endblock %}
78

89
{% block content %}

assets/html/game/games.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
{% extends "base.html" %}
22
{% block title %}Games{% endblock %}
3+
{% block meta_description %}List of recent SM5 and Laserball games{% endblock %}
34

45
{% block html_head %}
56
<link rel="stylesheet" href="/assets/css/game/games.css">
67

8+
9+
{% if page > 0 %}
10+
<meta name="robots" content="noindex, follow">
11+
<link rel="prev" href="/games?page={{ page-1 }}&mode={{ mode }}">
12+
{% else %}
13+
<meta name="robots" content="index, follow">
14+
{% endif %}
15+
16+
<link rel="next" href="/games?page={{ page+1 }}&mode={{ mode }}">
17+
718
<script>
819
sort = {{sort}};
920
sort_dir = "{{sort_dir}}";

assets/html/game/laserball.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{% extends "base.html" %}
2-
{% block title %}Laserball game on {{ game.start_time.strftime("%A, %B %d at %I:%M %p")}}{% endblock %}
3-
2+
{% block title %}Laserball Game #{{ game.id }}{% endblock %}
3+
{% block meta_description %}Detailed statistics and information for the Laserball game played on {{ game.start_time.strftime("%A, %B %d at %I:%M %p")}}.{% endblock %}
44

55
{% block html_head %}
66

77
<link rel="stylesheet" href="/assets/css/game/laserball.css">
8+
<meta name="robots" content="noindex, follow">
89

910
<script>
1011
function compareValues(a, b) {

assets/html/game/replay.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{% extends "base.html" %}
2-
{% block title %}Replay{% endblock %}
3-
2+
{% block title %}Replay for {% if game_type == "sm5" %}SM5{% else %}{{game_type|capitalize}}{% endif %} Game #{{ game_id }}{% endblock %}
3+
{% block meta_description %}Replay for {% if game_type == "sm5" %}SM5{% else %}{{game_type|capitalize}}{% endif %} Game #{{ game_id }} on {{ game.start_time.strftime("%A, %B %d at %I:%M %p") }}.{% endblock %}
44

55
{% block html_head %}
66

77
<link rel="stylesheet" href="/assets/css/game/replay.css">
8+
<meta name="robots" content="noindex, follow">
89
{% endblock %}
910

1011
{% block content %}

0 commit comments

Comments
 (0)