Skip to content
maneesha edited this page Sep 13, 2024 · 1 revision

Pages should be created in the content folder. Each section of a website has a page within the content folder. Each folder should have a file called _index.md (note the leading underscore), and can have any additional files. URL patterns are created from the folder and file structure. For example:

content
    _index.md --> URL: <home>
    community
        _index.md --> URL: <home>/community
        instructors.md --> URL: <home>/community/instructors
        trainers.md --> URL: <home>/community/trainers
    about
        _index.md --> URL: <home>/about
        history.md --> URL: <home>/about/history
        mission.md --> URL: <home>/about/mission

Pages can be customized using yaml frontmatter.

  • layout: For most pages, this will be single
  • title: Page title
  • widgets: Widgets to display in sidebar
  • hideToC: Hides the Table of Contents in sidebar (normally autogenerated from H2 elements)
  • aliases: URLs to redirect from
  • lastmod: date time string. Will set the "Last modified" element in sidebar
Clone this wiki locally