From 06c788d997497991a89da85c7ba94efd6f5b3683 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 11 Dec 2024 12:22:40 -0500 Subject: [PATCH] Improve www-template --- examples/www-template/error.step | 7 +++++++ examples/www-template/index.step | 9 ++++++--- examples/www-template/step.meta | 1 + examples/www-template/theme.step | 8 ++++++++ 4 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 examples/www-template/error.step create mode 100644 examples/www-template/step.meta diff --git a/examples/www-template/error.step b/examples/www-template/error.step new file mode 100644 index 0000000..bf7c315 --- /dev/null +++ b/examples/www-template/error.step @@ -0,0 +1,7 @@ +--- +Title: Error +Extends: theme.step +--- +{{.Data.Status}}: {{statusText .Data.Status}} + +{{.Data.Message}} diff --git a/examples/www-template/index.step b/examples/www-template/index.step index 1da8384..b00b9e0 100644 --- a/examples/www-template/index.step +++ b/examples/www-template/index.step @@ -5,6 +5,9 @@ Extends: theme.step ![STEP logo](icon.svg) -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. +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. + +You can find more about how to use STEP [here](http://holanet.xyz/soft/step). + diff --git a/examples/www-template/step.meta b/examples/www-template/step.meta new file mode 100644 index 0000000..2039e95 --- /dev/null +++ b/examples/www-template/step.meta @@ -0,0 +1 @@ +http.error-document: error.step diff --git a/examples/www-template/theme.step b/examples/www-template/theme.step index f6f2864..dfa4a23 100644 --- a/examples/www-template/theme.step +++ b/examples/www-template/theme.step @@ -13,6 +13,14 @@ max-width: 40em; margin: auto; } + a { + color: #3d808f; + } + code { + outline: 1px solid #FFF4; + background-color: #FFF2; + border-radius: 2px; + }