Skip to content

Conversation

@Arnaud-de-Grandmaison-ARM
Copy link
Contributor

Before submitting a pull request for a new Learning Path, please review Create a Learning Path

  • I have reviewed Create a Learning Path

Please do not include any confidential information in your contribution. This includes confidential microarchitecture details and unannounced product information.

  • I have checked my contribution for confidential information

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the Creative Commons Attribution 4.0 International License.

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.
@pareenaverma pareenaverma merged commit 62aff49 into ArmDeveloperEcosystem:main Oct 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants