{{ define "main" }}
{{ $import := index .Site.Params.imports .Params.source }} {{ $include_path := path.Join $import.repo_path .Params.markdown_file}} {{ if eq (os.FileExists $include_path) true }} {{ $include_path | readFile | markdownify }} {{ else }}
                This page is a placeholder for a missing imported file.

                One of three thing are most likely wrong:
                - `params.imports.bottlerocket.source.repo_path` in `config.toml` is incorrect
                - `source` in the front matter of this file is incorrect
                - You haven't cloned bottlerocket-os/bottlerocket into the website repo
            
{{ end }}
{{ end }} {{ define "footer"}} {{ $import := index .Site.Params.imports .Params.source }}

This file was sourced from the {{ $import.repo_human_readable }} repo.

{{ end }}