Remove favicons from the environment.

It's hard to assume people will have those setup correctly from the
beginning.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera 2016-11-28 10:52:19 -08:00
parent 0a81eb2f9b
commit 444a66a192
No known key found for this signature in database
GPG Key ID: DE3D437CCBECE2C4
3 changed files with 0 additions and 3 deletions

View File

@ -16,7 +16,6 @@ Before creating the site, Netlify will ask you to fill required environment vari
- `STATUSKIT_COMPANY_LOGO` - URL to your company's logo. - `STATUSKIT_COMPANY_LOGO` - URL to your company's logo.
- `STATUSKIT_SUPPORT_CONTACT_LINK` - URL to a support page for your users to talk with you. - `STATUSKIT_SUPPORT_CONTACT_LINK` - URL to a support page for your users to talk with you.
- `STATUSKIT_RESOURCES_LINK` - URL to documentation for your users. - `STATUSKIT_RESOURCES_LINK` - URL to documentation for your users.
- `STATUSKIT_FAVICONS_PATH` - Path where the favicons for different statuses are. By default, we use `/images/favicon/favicon-ok.ico` when there are no incidents, `/images/favicon/favicon-warning.ico` when there are no major incidents, and `/images/favicon/favicon-danger.ico` when there are major incidents. This path can be an external URL, like `https://my-favourite-cdn/images/status-favicons`. The names for the different statuses must be `favicon-ok.ico`, `favicon-warning.ico` and `favicon-danger.ico`.
## Extra configuration ## Extra configuration

View File

@ -10,4 +10,3 @@
STATUSKIT_COMPANY_LOGO = "url to your company's logo" STATUSKIT_COMPANY_LOGO = "url to your company's logo"
STATUSKIT_SUPPORT_CONTACT_LINK = "url to your support page" STATUSKIT_SUPPORT_CONTACT_LINK = "url to your support page"
STATUSKIT_RESOURCES_LINK = "url to your knowledge base page" STATUSKIT_RESOURCES_LINK = "url to your knowledge base page"
STATUSKIT_FAVICONS_PATH = "/images/favicons/"

View File

@ -3,7 +3,6 @@
{{ $title := getenv "STATUSKIT_PAGE_TITLE" | default .Site.Title }} {{ $title := getenv "STATUSKIT_PAGE_TITLE" | default .Site.Title }}
{{ $resources := getenv "STATUSKIT_RESOURCES_LINK" | default .Site.Params.resourcesLink }} {{ $resources := getenv "STATUSKIT_RESOURCES_LINK" | default .Site.Params.resourcesLink }}
{{ $contact := getenv "STATUSKIT_SUPPORT_CONTACT_LINK" | default .Site.Params.contactLink }} {{ $contact := getenv "STATUSKIT_SUPPORT_CONTACT_LINK" | default .Site.Params.contactLink }}
{{ $favicons := getenv "STATUSKIT_FAVICONS_PATH" | default .Site.Params.faviconsPath }}
{{ $incidents := where .Site.Pages.ByDate.Reverse "Section" "incidents" }} {{ $incidents := where .Site.Pages.ByDate.Reverse "Section" "incidents" }}
{{ $active := where $incidents "Params.resolved" "!=" true }} {{ $active := where $incidents "Params.resolved" "!=" true }}