parent
b41540e091
commit
9aa1695d53
69
examples/www-template/icon.svg
Normal file
69
examples/www-template/icon.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 84 KiB |
10
examples/www-template/index.step
Normal file
10
examples/www-template/index.step
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
Title: Test Page
|
||||
Extends: theme.step
|
||||
---
|
||||
|
||||

|
||||
|
||||
If you can see this, it means that `stepd` is working!
|
||||
This page should be located at `/srv/www-step`. You can place your site in that
|
||||
directory, and configure it using the step.meta file.
|
26
examples/www-template/theme.step
Normal file
26
examples/www-template/theme.step
Normal file
@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Child.Title}}</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #161815;
|
||||
color: #e2c558;
|
||||
font-family: monospace;
|
||||
margin: 2em;
|
||||
}
|
||||
body > * {
|
||||
max-width: 40em;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<main>
|
||||
<h1>{{.Child.Title}}</h1>
|
||||
{{.Child.Body | markdownHTML}}
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
7
examples/www/error.step
Normal file
7
examples/www/error.step
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
Title: Error
|
||||
Extends: theme.step
|
||||
---
|
||||
{{.Data.Status}}: {{statusText .Data.Status}}
|
||||
|
||||
{{.Data.Message}}
|
14
examples/www/index.step
Normal file
14
examples/www/index.step
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
Title: Home
|
||||
Extends: theme.step
|
||||
---
|
||||
|
||||
Maxime iusto delectus fuga nam fugiat et mollitia qui. Assumenda nemo voluptatem velit. Debitis et id a laborum. Dolor enim ipsum non temporibus fugit. Enim optio voluptas sunt. Quos omnis delectus repudiandae accusamus accusamus perspiciatis eum quasi.
|
||||
|
||||
Est alias odit et facilis dolores consequatur odit. Sed et pariatur ut omnis omnis. Doloribus suscipit vel incidunt eum beatae dolor officiis libero.
|
||||
|
||||
Repellat sit autem voluptatem ad nobis provident. Magnam cumque veritatis dicta exercitationem quidem ut ut placeat. Est ut harum repellat laudantium et fugiat. Blanditiis similique nobis sed dolorum earum enim. Et consectetur eligendi error consequatur.
|
||||
|
||||
Aliquam impedit voluptatem id saepe vel. Nisi et labore minima voluptatum doloribus porro. Eius saepe placeat autem. Qui dolores dolor facilis et autem. Et voluptate molestiae ut est repellat.
|
||||
|
||||
Ea sint qui autem temporibus repudiandae est voluptate. Vel in quaerat ut. Voluptatem consequatur tempore tempora assumenda voluptas. Delectus magnam incidunt sunt. Esse ut et iusto nemo.
|
2
examples/www/step.meta
Normal file
2
examples/www/step.meta
Normal file
@ -0,0 +1,2 @@
|
||||
http.serve-directories: true
|
||||
http.error-document: error.step
|
4
examples/www/style.css
Normal file
4
examples/www/style.css
Normal file
@ -0,0 +1,4 @@
|
||||
body {
|
||||
max-width: 40em;
|
||||
margin: auto;
|
||||
}
|
15
examples/www/theme.step
Normal file
15
examples/www/theme.step
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Child.Title}}</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<main>
|
||||
<h1>{{.Child.Title}}</h1>
|
||||
{{.Child.Body | markdownHTML}}
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user