Skip to content

Commit 02d9567

Browse files
[Fix] Duplicate fields.
Newer versions of hugo will error and fail when the .md files have duplicated fields, e.g. : $ ./hugo-server.sh Start building sites … hugo v0.152.1+extended+withdeploy darwin/arm64 BuildDate=2025-10-22T19:10:44Z VendorInfo=brew Total in 2716 ms Error: error building site: process: readAndProcessContent: ".../content/learning-paths/cross-platform/dynamic-memory-allocator/_index.md:57:1": [56:1] mapping key "layout" already defined at [7:1] 53 | ### FIXED, DO NOT MODIFY 54 | # ================================================================================ 55 | weight: 1 # _index.md always has weight of 1 to order correctly > 56 | layout: "learningpathall" # All files under learning paths have this same wrapper ^ 57 | learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content. 58 | This commit removes the duplicates, keeping the most "rich" version of the field (the one that has a comment) and prefering the field in the 'FIXED, DO NOT MODIFY' section.
1 parent 193a662 commit 02d9567

16 files changed

Lines changed: 1 addition & 23 deletions

File tree

content/learning-paths/cross-platform/dynamic-memory-allocator/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ minutes_to_complete: 120
55

66
who_is_this_for: This is an introductory topic for software developers learning about dynamic memory allocation for the first time, and who may have used malloc and free in C programming. It also provides a starting point to explore more advanced memory allocation topics.
77

8-
layout: learningpathall
98
learning_objectives:
109
- Explain how dynamic memory allocation and the C heap works
1110
- Write a simple dynamic memory allocator
@@ -56,4 +55,4 @@ shared_between:
5655
weight: 1 # _index.md always has weight of 1 to order correctly
5756
layout: "learningpathall" # All files under learning paths have this same wrapper
5857
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
59-
---
58+
---

content/learning-paths/embedded-and-microcontrollers/tfm/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,5 @@ further_reading:
5858
weight: 1 # _index.md always has weight of 1 to order correctly
5959
layout: "learningpathall" # All files under learning paths have this same wrapper
6060
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
61-
layout: learningpathall
6261

6362
---

content/learning-paths/embedded-and-microcontrollers/zephyr/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,5 @@ further_reading:
5353
weight: 1 # _index.md always has weight of 1 to order correctly
5454
layout: "learningpathall" # All files under learning paths have this same wrapper
5555
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
56-
layout: learningpathall
5756

5857
---

content/learning-paths/servers-and-cloud-computing/bitmap_scan_sve2/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,4 @@ further_reading:
4646
weight: 1 # _index.md always has weight of 1 to order correctly
4747
layout: "learningpathall" # All files under learning paths have this same wrapper
4848
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
49-
layout: learningpathall
5049
---

content/learning-paths/servers-and-cloud-computing/codec/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ further_reading:
5656
weight: 1 # _index.md always has weight of 1 to order correctly
5757
layout: "learningpathall" # All files under learning paths have this same wrapper
5858
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
59-
layout: learningpathall
6059
---

content/learning-paths/servers-and-cloud-computing/flink/_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ cloud_service_providers: AWS
2323
armips:
2424
- Neoverse
2525

26-
layout: learningpathall
2726

28-
learning_path_main_page: 'yes'
2927

3028
operatingsystems:
3129
- Linux

content/learning-paths/servers-and-cloud-computing/glibc-with-lse/_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ subjects: Performance and Architecture
2323
armips:
2424
- Neoverse
2525

26-
layout: learningpathall
2726

28-
learning_path_main_page: 'yes'
2927

3028
operatingsystems:
3129
- Linux

content/learning-paths/servers-and-cloud-computing/memcached/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,4 @@ further_reading:
4747
weight: 1 # _index.md always has weight of 1 to order correctly
4848
layout: "learningpathall" # All files under learning paths have this same wrapper
4949
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
50-
layout: learningpathall
5150
---

content/learning-paths/servers-and-cloud-computing/memcached_cache/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@ further_reading:
5151
weight: 1 # _index.md always has weight of 1 to order correctly
5252
layout: "learningpathall" # All files under learning paths have this same wrapper
5353
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
54-
layout: learningpathall
5554
---

content/learning-paths/servers-and-cloud-computing/ml-perf/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,4 @@ further_reading:
5454
weight: 1 # _index.md always has weight of 1 to order correctly
5555
layout: "learningpathall" # All files under learning paths have this same wrapper
5656
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
57-
layout: learningpathall
5857
---

0 commit comments

Comments
 (0)