Skip to content

Commit

Permalink
make migration easier by adopting hugo yaml format
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltester committed Mar 16, 2024
1 parent 8ecd2e7 commit b74809d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public void setup(final Challengers challengers,
continue;
}

if(line.contains(" = ") && state.equals("READING_HEADER")){
if(line.contains(": ") && state.equals("READING_HEADER")){
mdheaders.add(line);
continue;
}
Expand Down Expand Up @@ -345,8 +345,8 @@ public void setup(final Challengers challengers,
java.nio.charset.StandardCharsets.UTF_8.toString());

for(String aHeader : mdheaders){
if(aHeader.startsWith("title = ")){
pageTitle = aHeader.replace("title = " , "");
if(aHeader.startsWith("title: ")){
pageTitle = aHeader.replace("title: " , "");
}
}

Expand Down
2 changes: 1 addition & 1 deletion challenger/src/main/resources/content/apichallenges.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title = API Challenges Documentation
title: API Challenges Documentation
---

# API Challenges
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title = API Challenges Solution Index
title: API Challenges Solution Index
---

# API Challenge Solutions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title = API Challenges Solution For - GET Challenges (200)
title: API Challenges Solution For - GET Challenges (200)
---

How to complete the challenge `GET /challenges 200`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title = API Challenges Solution For - GET Todos (200)
title: API Challenges Solution For - GET Todos (200)
---

How to complete the challenge `GET /todos 200`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title = API Challenges Solution For - POST Challenger (201)
title: API Challenges Solution For - POST Challenger (201)
---

# POST Challenger 201 Solution
Expand Down
2 changes: 1 addition & 1 deletion challenger/src/main/resources/content/learning.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title = Learning Utilities and Resources
title: Learning Utilities and Resources
---

# Learning
Expand Down
2 changes: 1 addition & 1 deletion challenger/src/main/resources/content/sponsors.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title = Sponsors of API Challenges
title: Sponsors of API Challenges
---

# Support and Sponsorship
Expand Down
2 changes: 1 addition & 1 deletion challenger/src/main/resources/content/test.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title = 123
title: 123
---

# Test
Expand Down

0 comments on commit b74809d

Please sign in to comment.