caddy-website/src/docs/index.html

33 lines
1.2 KiB
HTML
Raw Normal View History

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)}}
{{$title := default $markdownFilename $markdownFile.Meta.title}}
2020-01-24 12:47:52 -07:00
<!DOCTYPE html>
<html>
<head>
<title>{{$title}} &mdash; Caddy Documentation</title>
2020-01-24 12:47:52 -07:00
{{include "/includes/docs-head.html"}}
<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>