diff --git a/example-web/404.html b/example-web/404.html deleted file mode 100644 index 641af2a..0000000 --- a/example-web/404.html +++ /dev/null @@ -1,9 +0,0 @@ - -Test Web - - -
-

Page Not Found 404

-
- - diff --git a/example-web/css/default.css b/example-web/css/default.css deleted file mode 100644 index 8d3667d..0000000 --- a/example-web/css/default.css +++ /dev/null @@ -1,53 +0,0 @@ -body { - font-size: 10pt; - font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; - color: red; - background-color: blue; - line-height: 14pt; - /* display: block; */ - display: flex; -} - -main { - margin: 100px; - font-size: 2em; - flex-direction: column -} - - -h1 { - font: 30pt Verdana, Geneva, Arial, Helvetica, sans-serif; - font-weight: bold; - line-height: 20pt; -} - -p { - color: white; - margin-bottom: 1em; - line-height: 1.2em; -} - -code { - padding: .3em; - background-color: yellow; - color: blue; -} - -pre#_markdown { - background-color: black; - color: white; -} - -a { - text-decoration: none; -} - - -a:link, a:visited { - color: #8094d6; -} - - -a:hover, a:active { - color: #FF9933; -} diff --git a/example-web/example.md b/example-web/example.md deleted file mode 100644 index c557be4..0000000 --- a/example-web/example.md +++ /dev/null @@ -1,9 +0,0 @@ -# Example Rendered Markdown - -This is an example markdown file rendered via a template by Caddy2 - -`some code` - -``` -Fenced Code Block -``` diff --git a/example-web/index.md b/example-web/index.md deleted file mode 100644 index 3df60f4..0000000 --- a/example-web/index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Index File ---- -# Default Index File -[See Example Markdown File](./example.md) diff --git a/example-web/template.html b/example-web/template.html deleted file mode 100644 index 685d932..0000000 --- a/example-web/template.html +++ /dev/null @@ -1,15 +0,0 @@ -{{$markdownFilePath := printf .OriginalReq.URL.Path}} -{{$markdownFile := (include $markdownFilePath | splitFrontMatter)}} -{{$meta := $markdownFile.Meta }} - - - - {{ $meta.title }} - - - -
- {{markdown $markdownFile.Body }} -
- -