Commit 02d9567
committed
[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
- embedded-and-microcontrollers
- tfm
- zephyr
- servers-and-cloud-computing
- bitmap_scan_sve2
- codec
- flink
- glibc-with-lse
- memcached_cache
- memcached
- ml-perf
- onnx
- profiling-for-neoverse
- rag
- ran
- snappy
- sve2-match
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
| 58 | + | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
0 commit comments