2020-01-24 12:47:52 -07:00
{{$pathParts := splitList "/" .OriginalReq.URL.Path}}
{{$markdownFilename := default "index" (slice $pathParts 2 | join "/")}}
{{$markdownFilePath := printf "/docs/markdown/%s.md" $markdownFilename}}
{{$markdownFile := (include $markdownFilePath | splitFrontMatter)}}
2020-02-28 15:15:13 -07:00
{{$title := default $markdownFilename $markdownFile.Meta.title}}
2020-01-24 12:47:52 -07:00
<!DOCTYPE html>
< html >
< head >
2020-02-28 15:15:13 -07:00
< title > {{$title}} — Caddy Documentation< / title >
2020-01-24 12:47:52 -07:00
{{include "/includes/docs-head.html"}}
2020-02-28 15:15:13 -07:00
< meta property = "og:title" content = "{{$title}} - Caddy Documentation" >
< meta name = "twitter:title" value = "{{$title}} - Caddy Documentation" >
2020-01-24 12:47:52 -07:00
< link rel = "stylesheet" href = "/resources/css/chroma.css" >
< / head >
< body >
{{include "/includes/docs-header.html"}}
< main >
{{include "/includes/docs-nav.html"}}
< div class = "article-container" >
< div class = "beta-warning" >
< b > Caddy 2 is beta software.< / b > It is ready for production, but some things will change between releases; check the < a href = "https://github.com/caddyserver/caddy/releases" > release notes< / a > before upgrading.
< / div >
< article class = "centered" >
{{markdown $markdownFile.Body}}
< / article >
< / div >
< div class = "sidebar" > < / div >
< / main >
{{include "/includes/footer.html"}}
< / body >
< / html >