Creating Your First Learning Path

A hands-on tutorial that walks you through creating, structuring, and testing a custom learning path for the Layer5 Academy.

This guide provides a step-by-step walkthrough for creating and organizing a new learning path in the Layer5 Academy. You’ll learn how to set up your content repository, structure your courses, add assets, preview your work, and publish it for your organization.

Before you dive into creating your first learning path, it’s helpful to be familiar with the core technologies and concepts used by the Academy platform.

  • Git and GitHub: All learning content is managed in a Git repository.
  • Markdown: All content is written in standard Markdown.
  • Hugo: The entire Academy platform is built on the Hugo static site generator.
  • Academy Template & Theme: We provide an academy-example repository that serves as a pre-configured template. Layer5 Academy theme to ensure your content is styled correctly right out of the box.
  • A Layer5 Cloud Account: Required to obtain your Organization ID and Personal Access Token for publishing.

Start by preparing a dedicated Git repository for your learning content. Using our official Layer5 template to help you get started quickly.

  1. Fork the academy-example Repository
  1. Clone Your Fork Locally
  • Use the git clone command to download your forked repository.
  • Example:
    # Replace `<your-username>` with your actual GitHub username
    git clone https://github.com/<your-username>/academy-example.git
    cd academy-example
    git checkout -b <your-feature-branch>
    
  1. Update the Go Module Path

    1. Open the go.mod file located at the root of your academy-example project.
    2. The first line will be:
    module github.com/layer5io/academy-example
    
    1. Change this line to match your fork’s path:
    module github.com/<your-username>/academy-example
    
    1. Save the file, then commit and push this change to your repository.

The Academy uses a specific directory layout to keep each organization’s content separate and secure.

  1. Find Your Organization UUID

    Each learning path is tied to a specific organization and secured by a unique identifier (UUID). This is a system-generated ID that ensures your content is scoped only to your organization.

  1. Create the Core Directories

    Now, inside your academy-example project, you should see the following top-level folders.

    1. content/learning-paths/<your-organization-uid>/ This content directory is where all your written material lives. The folder hierarchy you create here directly defines the navigation and organization of your learning paths.
    2. layouts/shortcodes/<your-organization-uid>/ This layouts directory is for advanced use. You can place custom Hugo Shortcodes here if you need special reusable components.
  2. Build the Content Hierarchy

    With the main folders in place, you can now structure your first course inside the content directory. The content is organized in a clear hierarchy: A Learning Path contains Courses. A Course is primarily broken down into Modules, but can also conclude with a final Test that serves as a course exam. Finally, a Module consists of individual Pages and Labs.

    A high-level view of the structure looks like this:

    learning-paths/
    └── mastering-kubernetes/                    // <-- Learning Path
        β”œβ”€β”€ _index.md                            
        β”œβ”€β”€ advanced-networking/                 // <-- Course 1
        β”‚   └── _index.md                        
        └── core-concepts/                       // <-- Course 2
            β”œβ”€β”€ _index.md   
            β”œβ”€β”€ course-exam.md                   // <-- Course Exam (Test)                     
            └── 01-pods-and-services/            // <-- Module
                β”œβ”€β”€ _index.md                    
                β”œβ”€β”€ 01-pods.md                   // <-- Page 1
                β”œβ”€β”€ 02-services.md               // <-- Page 2
                β”œβ”€β”€ 03-knowledge-check.md        // <-- Test
                β”œβ”€β”€ 04-hands-on-lab.md           // <-- Lab
                └── arch.png                     // <-- Image
    

    Each folder represents a level in the hierarchy. The _index.md file within a folder is crucial as it defines the metadata for that level, such as its title, description, and type (e.g., type: "course"). The final .md files represent your individual learning activities: Pages and Labs are typically found inside Modules, while Tests can be palced at any hierachy - either within Modules (as knowledge checks) or directly under a Course (as a final exam).

For a deeper understanding of how Hugo uses _index.md to create content sections, you can refer to the official Hugo Page Bundles documentation.

  1. Front matter

    Front matter is the configuration block at the top of every content file that defines its metadata. The most critical field is type, which tells the Academy how to render the content.

    The front matter configuration varies slightly depending on whether you are creating a Learning Path/Challengs, Course, Module, or Page. The following examples for a Learning Path and a Course illustrate a typical setup.

    Learing Path Frontmatter

    ---
    type: "learning-paths"
    title: "Cloud Fundamentals"
    description: "A learning path focused on providing the technical knowledge required for advanced topics."
    weight: 5
    banner: "images/kubernetes-icon.svg"
    id: "754627a3-2323-4545-a7f0-c66c0212a1a1" 
    tags: [kubernetes, infrastructure]
    categories: "cloud"
    ---
    

    Course Frontmatter

    If each course has its own markdown page, you can use this frontmatter:

    ---
    type: "course"
    title: "Intro Sustainability"
    description: "An introductory course exploring the core concepts of sustainability."
    weight: 2
    banner: "images/kubernetes-icon.svg"      
    tags: [network, infrastructure]
    level: "beginner"
    categories: "compliance"
    ---
    

    Summary of Required Fields

    Applicable ToFieldRequiredNotes
    Alltitleβœ…The main display title.
    Alldescriptionβœ…A brief summary of the content.
    Allweightβœ…Controls the display order (lower numbers appear first).
    Alldraft❌If true, the page will not be published.
    Alltypeβœ…Defines the content’s role. Optional values: challenge, learning-path, course, module, page, test, or lab.
    Courselevel❌The difficulty level of the content. Optional values: beginner, intermediate, advanced.
    Learning Pathidβœ…Crucial. A stable UUID for tracking progress. Do not change. 1
    Learning Path, Course, moduletags❌Keywords for content discovery. Multiple tags can be selected.
    Learning Path, Course, modulecategories❌The main categories for the content. Only one can be selected.
    Learning Path, Coursebanner❌Path to an image in the static folder, e.g., images/icon.svg.

For a complete list of all predefined variables and advanced usage, please refer to the official Hugo Front Matter documentation.

Enhance your course with images and other visual aids. The recommended and standard method for adding images is Page Bundling. This approach involves placing your image files directly alongside the Markdown content they belong to, which is simpler and keeps content organized.

While there’s no hard-coded size limit, we enforce these practical constraints:

Media TypeRecommended Max SizeImpact Beyond Limit
Video50 MBSlow builds, CI failures
Image5 MBHugo memory overflow
PDF20 MBBrowser loading delays
  1. Place your image file (e.g., hugo-logo.png) in the same directory as your Markdown file (e.g., 01-pods.md).

  2. In your 01-pods.md file, embed the image using a standard Markdown link. The path should just be the filename.

    ![The Hugo Logo](hugo-logo.png)
    

Page Bundling (Recommended)

<video controls width="100%">
  <source src="video-demo.mp4" type="video/mp4">
</video>

External Hosting (Large Files)

{{< card title="Video Tutorial" >}}
<video controls preload="metadata">
  <source src="https://cdn.yourcompany.com/video.mp4" type="video/mp4">
  Your browser doesn't support HTML5 video.
</video>
{{< /card >}}

For optimal performance, we recommend hosting large videos on dedicated platforms:

  • YouTube (Free, public/private options)
  • AWS S3 (Requires bucket & CORS configuration)
  • Cloudflare Stream (Paid, enterprise-grade)
  • Vimeo (Paid, professional features)
  • Best practice: Page Bundling

  • Accessibility: Always include subtitle tracks (VTT format)

  • Thumbnails: Set custom posters with poster="image.jpg"

  • Bandwidth: Self-hosted videos may incur significant costs

  • Authentication: For private videos, use signed URLs (S3) or unlisted (YouTube)

Before publishing, it is crucial to preview your content locally to check for formatting errors, broken links, and overall structure.

make site

This will start a local development server, where you can view your learning path as you build it.

Preview site

Once you have tested your content locally, you can publish it to the Layer5 Academy through our automated workflow.

To help you visualize how your content goes from a local file to a live learning path, the diagram below illustrates the entire end-to-end publishing workflow. It shows which components you will interact with directly and how the CI/CD pipeline handles the rest automatically.

The process involves a one-time setup of secrets in your repository, followed by creating a GitHub Release to publish each new version of your content.

To allow your repository to securely communicate with the Academy’s build system, you must configure GitHub Secrets. This one-time setup ensures your publishing workflow can authenticate automatically.

First, confirm the exact secret names required by the workflow.

In your repository, open the workflow file at .github/workflows/build-and-release.yml. This confirms the workflow expects secrets named exactly ACADEMY_ORG_ID and ACADEMY_TOKEN.

with:
  orgId: ${{ secrets.ACADEMY_ORG_ID }}
  token: ${{ secrets.ACADEMY_TOKEN }}
  # ... and other parameters

Now, create the two required secrets in your repository.

  1. Navigate to your GitHub repository and go to Settings > Secrets and variables > Actions.
  2. Ensure you are on the Secrets tab.
  3. Click New repository secret to add the following two secrets:
    1. Name: ACADEMY_ORG_ID

      Value: Paste your unique Organization ID string.

    2. Name: ACADEMY_TOKEN

      Value: Paste the personal access token generated from Layer5 Cloud by following the instructions below.

Once configured correctly, your secrets page should look like this:

Secrets page showing correct configuration

With the setup complete, you can publish your content anytime by creating a new release.

  1. Ensure all your latest changes are committed and pushed to your repository’s master branch.
  2. On your GitHub repository page, navigate to the “Releases” section.
  3. Click “Draft a new release”.
  4. Create a new version tag for your release (e.g., v1.0.1).
  5. Provide a title and description for your release.
  6. Click “Publish release”.

This action will automatically trigger the workflow, and your content will be deployed to the Layer5 Academy.

  • Your content will be available in the staging environment within approximately 10 minutes.
  • Your content will go fully live to the production Academy platform during the next scheduled cloud release.

For Urgent Updates: If you have a time-sensitive publishing request or encounter any issues with the automated process, please contact the Layer5 team for expedited assistance.

Release Example

Once your learning path is live, you may need to perform routine tasks to keep your local environment and dependencies up-to-date.

The academy-theme provides the core layout, style, and features for your learning path. Regularly updating it ensures you benefit from the latest improvements and bug fixes.

To upgrade to the latest theme version, run:

make theme-update

You will see output similar to this as Hugo fetches the new modules:

hugo mod get -u
hugo: collected modules in 1707 ms
go: downloading github.com/layer5io/academy-theme v0.1.6
go: upgraded github.com/layer5io/academy-theme v0.1.5 => v0.1.6
go: upgraded github.com/twbs/bootstrap v5.3.6+incompatible => v5.3.7+incompatible

If you encounter unexpected formatting issues or your content doesn’t update correctly during local development, your build cache might be stale. Use the make clean command to resolve this. This command first deletes the local build cache (public directory) and then restarts the development server, ensuring you are previewing a fresh build of your content.

make clean
  1. Why is my workflow failing with a 401 Unauthorized or user must be logged in error?

    This error indicates an issue with your ACADEMY_TOKEN. Please ensure you have correctly copied only the token string and not the entire JSON object from the downloaded file.

  2. Why is my workflow failing with a URL containing a double slash (//)?

    A double slash in the URL (e.g., .../api/academy//update/...) means your ACADEMY_ORG_ID was not found. This typically happens when the secret name in your repository does not exactly match the name expected by the workflow file (e.g., ORG_ID).

  3. How do I handle updates or corrections after my content is live?

    All content updates are managed through your Git repository. Simply commit and push your changes, then create a new GitHub Release with a new version number (e.g., v1.0.2). This automatically triggers the publishing workflow and updates your content on the Academy platform.

  4. What happens if my new content has an error?

    The publishing process is designed to be safe. If your new content causes a build error, the workflow will fail, and the previously working version of the Academy will remain unchanged. Your broken update will not be published.

  5. How do I structure multiple courses under one learning path?

    The structure is defined by your folder hierarchy. A learning path is a directory, and each course is a sub-directory within that path. This folder structure in your content directory directly maps to the learning path structure presented to users.

  6. Why does my local build fail when adding large videos?

    Hugo’s default memory limit is 512MB. For videos >50MB:

    hugo server --memlimit 2GB
    
  7. How to securely host private training videos?

    Use AWS S3 with signed URLs:

    <video src="{{< s3_signed_url path="training/private.mp4" >}}">
    

  1. The auto-generated learning path ID feature will be launched soon. ↩︎

Last modified August 6, 2025: fix (0c2db96c)