From f181d98e38aeb7a05bb81d494853878042441caa Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 2 May 2020 23:26:37 -0600 Subject: [PATCH] Minor style updates, add business contact page --- Caddyfile | 3 +++ src/business.html | 46 ++++++++++++++++++++++++++++++++++++ src/docs/markdown/install.md | 6 +++-- src/includes/header-nav.html | 2 +- src/resources/css/common.css | 14 ++++++++--- src/resources/css/docs.css | 8 ------- src/resources/css/home.css | 1 - 7 files changed, 65 insertions(+), 15 deletions(-) create mode 100644 src/business.html diff --git a/Caddyfile b/Caddyfile index 58fbec9..84fffc5 100644 --- a/Caddyfile +++ b/Caddyfile @@ -4,6 +4,9 @@ root * src file_server templates +encode gzip + +try_files {path}.html {path} redir /docs/json /docs/json/ redir /docs/modules /docs/modules/ diff --git a/src/business.html b/src/business.html new file mode 100644 index 0000000..4169a8d --- /dev/null +++ b/src/business.html @@ -0,0 +1,46 @@ + + + + Caddy for Business + {{include "/includes/head.html"}} + + + + + +
+
+
+ +
+ {{include "/includes/header-nav.html"}} +
+ +

Ready for business

+ +
+
+
+

Need help with something?

+

+ Most users should participate in our community forum to help others and ask questions. +

+

+ The only price for this help is to put some effort into your question and say thank you. 😃 +

+
+
+

Support and development for businesses

+

+ We highly recommend that companies using Caddy get a support plan and contract any related development work with our exclusive partner Ardan Labs. Contact us to get started: +

+ Email business@caddyserver.com +
+
+
+
+ + {{include "/includes/footer.html"}} + + + diff --git a/src/docs/markdown/install.md b/src/docs/markdown/install.md index 459bdfe..76101e3 100644 --- a/src/docs/markdown/install.md +++ b/src/docs/markdown/install.md @@ -65,14 +65,16 @@ Create a user named `caddy`, with a writeable home folder: --comment "Caddy web server" \ caddy +If using a config file, be sure it is readable by the `caddy` user you just created. + Next, [choose a systemd service file](https://github.com/caddyserver/dist/blob/master/init) based on your use case: - [**`caddy.service`**](https://github.com/caddyserver/dist/blob/master/init/caddy.service) if you configure Caddy with a file. - [**`caddy-api.service`**](https://github.com/caddyserver/dist/blob/master/init/caddy-api.service) if you configure Caddy solely through its API. -They are very similar but with minor differences in the ExecStart and ExecReload commands to accommodate your workflow. Customize the file accordingly. +They are very similar but have minor differences in the ExecStart and ExecReload commands to accommodate your workflow. Customize the file accordingly. -**Double-check the `ExecStart` and `ExecReload` directives.** Make sure the binary's location and command line arguments are correct for your installation! +**Double-check the `ExecStart` and `ExecReload` directives.** Make sure the binary's location and command line arguments are correct for your installation! For example: if using a config file, change your `--config` path if it is different from our example. The usual place to save the service file is: `/etc/systemd/system/caddy.service` diff --git a/src/includes/header-nav.html b/src/includes/header-nav.html index 561385d..cbd0bc2 100644 --- a/src/includes/header-nav.html +++ b/src/includes/header-nav.html @@ -6,5 +6,5 @@ GitHub Community v1 - For business + For business \ No newline at end of file diff --git a/src/resources/css/common.css b/src/resources/css/common.css index 9f537cc..857bf13 100644 --- a/src/resources/css/common.css +++ b/src/resources/css/common.css @@ -109,7 +109,7 @@ header nav .button { .button { border-radius: 2em; padding: 10px 20px; - margin: 15px 30px 15px 0; + margin: 15px 0; height: auto; transition: all .2s; text-decoration: none; @@ -134,7 +134,7 @@ header nav .button { } .button.blue { - background-color: #009ae6; + background-color: #0082d0; color: white; } @@ -168,12 +168,20 @@ article a:hover { text-decoration: underline; } +pre, +code { + font-family: 'PT Mono', 'Source Code Pro', monospace; + padding: 3px 6px; + font-size: 95%; + line-height: 1.5em; +} + footer { display: flex; justify-content: space-between; margin-top: 100px; - padding: 0 50px 100px; + padding-bottom: 100px; line-height: 125%; } diff --git a/src/resources/css/docs.css b/src/resources/css/docs.css index 9582d70..4e18f7f 100644 --- a/src/resources/css/docs.css +++ b/src/resources/css/docs.css @@ -335,14 +335,6 @@ h5 { background-color: rgba(0, 0, 0, .075); } -pre, -code { - font-family: 'PT Mono', 'Source Code Pro', monospace; - padding: 3px 6px; - font-size: 95%; - line-height: 1.5em; -} - code { background-color: #e9f1fb; border-radius: 5px; diff --git a/src/resources/css/home.css b/src/resources/css/home.css index 48dc220..5c6b8bd 100644 --- a/src/resources/css/home.css +++ b/src/resources/css/home.css @@ -138,7 +138,6 @@ code.rest { } iframe.github-stars { - margin-left: 20px; vertical-align: middle; }