Skip to content

Commit 6f19934

Browse files
committed
Added code to cope with any multi-part page names, and to convert all suffixes into uppercase
1 parent 2248b9d commit 6f19934

File tree

3 files changed

+45
-45
lines changed

3 files changed

+45
-45
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<!-- I know scripts aren't supposed to go in the header, but we need this here in order to pick different suffix lists for the typewriter at the top -->
4444
<script src="./js/suffix-lists.js"></script>
4545
<script lang="javascript">
46-
var suffixOptions = {{ page.title }};
46+
var suffixOptions = eval("{{ page.title }}".split(" ")[0]).map(function(x) { return x.toUpperCase(); });
4747
</script>
4848

4949
</head>

_site/contact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<!-- I know scripts aren't supposed to go in the header, but we need this here in order to pick different suffix lists for the typewriter at the top -->
4646
<script src="./js/suffix-lists.js"></script>
4747
<script lang="javascript">
48-
var suffixOptions = Contact;
48+
var suffixOptions = eval("Contact".split(" ")[0]).map(function(x) { return x.toUpperCase(); });
4949
</script>
5050

5151
</head>

js/suffix-lists.js

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
"use strict"
22

33
var people = [
4-
"BEN",
5-
"DREW",
6-
"EDWARD",
7-
"GARETH",
8-
"HARRY",
9-
"JIM",
10-
"LIAM",
11-
"LIZ",
12-
"KEIRAN",
13-
"SIMON",
14-
"US"
4+
"Ben",
5+
"Drew",
6+
"Edward",
7+
"Gareth",
8+
"Harry",
9+
"Jim",
10+
"Liam",
11+
"Liz",
12+
"Keiran",
13+
"Simon",
14+
"Us"
1515
];
1616

1717
var About = people;
1818

1919
var Activities = [
20-
"CODECADEMY",
21-
"CODECOMBAT",
22-
"CSSDINER",
23-
"CSSTRICKS",
24-
"FREECODECAMP",
25-
"GIT",
26-
"JAVASCRIPT",
27-
"UDEMY",
28-
"#100DAYSOFCODE",
29-
"ADVENTOFCODE",
30-
"BOX-256",
31-
"CODEWARS",
32-
"CODINGAME",
33-
"EDABIT",
34-
"REDDIT",
35-
"JUPYTER"
20+
"codecademy",
21+
"CodeCombat",
22+
"CSSDiner",
23+
"CSSTricks",
24+
"FreeCodeCamp",
25+
"git",
26+
"Javascript",
27+
"Udemy",
28+
"#100DaysOfCode",
29+
"AdventOfCode",
30+
"Box-256",
31+
"CodeWars",
32+
"CodinGame",
33+
"Edabit",
34+
"Reddit",
35+
"Jupyter"
3636
];
3737

3838
var Contact = people;
3939

4040
var Events = [
41-
"DATABASES",
42-
"DOCKER",
43-
"GIT",
41+
"Databases",
42+
"Docker",
43+
"Git",
4444
"SQL",
45-
"KUBERNETES"
45+
"Kubernetes"
4646
];
4747

4848
var Home = people;
@@ -51,25 +51,25 @@ var Languages = [
5151
"C#",
5252
"CSS",
5353
"HTML",
54-
"JAVA",
55-
"JS",
56-
"PYTHON",
54+
"Java",
55+
"Javascript",
56+
"Python",
5757
"SQL"
5858
];
5959

6060
var People = people;
6161

6262
var Resources = [
63-
"ANDROIDSTUDIO",
63+
"AndroidStudio",
6464
"IDLE",
65-
"INTELLIJ",
66-
"VISUALSTUDIO",
67-
"VSCODE",
68-
"COOLORS",
69-
"CODEPEN",
70-
"FONTAWESOME",
71-
"GOOGLEFONTS",
72-
"REPL"
65+
"IntelliJ",
66+
"VisualStudio",
67+
"VSCode",
68+
"Coolors",
69+
"CodePen",
70+
"FontAwesome",
71+
"GoogleFonts",
72+
"Repl"
7373
];
7474

7575
var Branding = [

0 commit comments

Comments
 (0)