commit
8af8c3e222
@ -41,10 +41,11 @@ Incidents are plain markdown files inside the `site/content/incidents` directory
|
|||||||
### Creating new incidents
|
### Creating new incidents
|
||||||
|
|
||||||
Adding incidents to your status page is as simple as adding a new document to the incidents collection.
|
Adding incidents to your status page is as simple as adding a new document to the incidents collection.
|
||||||
Create a new incident using Hugo with a command like this:
|
Create a new incident using Hugo with a command like this as of Hugo v0.24:
|
||||||
|
|
||||||
```
|
```
|
||||||
hugo -s site new -k incidents incidents/oh-no-something-went-wrong.md
|
cd site
|
||||||
|
hugo new incidents/oh-no-something-went-wrong.md
|
||||||
```
|
```
|
||||||
|
|
||||||
Hugo will create a new Markdown file for you with title and date based on the file name and a few predefined settings in the header. To learn more about the different severities and report, you can see more detailed examples in `site/archetypes/incidents.md`.
|
Hugo will create a new Markdown file for you with title and date based on the file name and a few predefined settings in the header. To learn more about the different severities and report, you can see more detailed examples in `site/archetypes/incidents.md`.
|
||||||
|
Binary file not shown.
Binary file not shown.
BIN
bin/hugo_0.17_windows_amd64.exe → bin/hugo_0.24.1_windows_amd64.exe
Executable file → Normal file
BIN
bin/hugo_0.17_windows_amd64.exe → bin/hugo_0.24.1_windows_amd64.exe
Executable file → Normal file
Binary file not shown.
@ -9,7 +9,7 @@ import webpack from "webpack";
|
|||||||
import webpackConfig from "./webpack.conf";
|
import webpackConfig from "./webpack.conf";
|
||||||
|
|
||||||
const browserSync = BrowserSync.create();
|
const browserSync = BrowserSync.create();
|
||||||
const hugoBin = `./bin/hugo_0.17_${process.platform}_amd64${process.platform === "windows" ? ".exe" : ""}`;
|
const hugoBin = `./bin/hugo_0.24.1_${process.platform}_amd64${process.platform === "windows" ? ".exe" : ""}`;
|
||||||
const defaultArgs = ["-d", "../dist", "-s", "site", "-v"];
|
const defaultArgs = ["-d", "../dist", "-s", "site", "-v"];
|
||||||
|
|
||||||
gulp.task("hugo", (cb) => buildSite(cb));
|
gulp.task("hugo", (cb) => buildSite(cb));
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
+++
|
+++
|
||||||
# default attributes for an incident.
|
# default attributes for an incident.
|
||||||
#
|
#
|
||||||
# Hugo adds `title` and `date` by default
|
title = "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||||
# when running `hugo new incidents/new-incident.md`,
|
date = {{ .Date }}
|
||||||
# so we don't have to specify them here.
|
|
||||||
|
|
||||||
# severity: represents the impact of
|
# severity: represents the impact of
|
||||||
# your system due to the current incident.
|
# your system due to the current incident.
|
||||||
|
Loading…
Reference in New Issue
Block a user