Skip to content

Commit 8af8c3e

Browse files
authored
Merge pull request #24 from steveoh/patch-1
update for hugo 0.24
2 parents 30a7266 + e455647 commit 8af8c3e

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ Incidents are plain markdown files inside the `site/content/incidents` directory
4141
### Creating new incidents
4242

4343
Adding incidents to your status page is as simple as adding a new document to the incidents collection.
44-
Create a new incident using Hugo with a command like this:
44+
Create a new incident using Hugo with a command like this as of Hugo v0.24:
4545

4646
```
47-
hugo -s site new -k incidents incidents/oh-no-something-went-wrong.md
47+
cd site
48+
hugo new incidents/oh-no-something-went-wrong.md
4849
```
4950

5051
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.
Binary file not shown.

gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import webpack from "webpack";
99
import webpackConfig from "./webpack.conf";
1010

1111
const browserSync = BrowserSync.create();
12-
const hugoBin = `./bin/hugo_0.17_${process.platform}_amd64${process.platform === "windows" ? ".exe" : ""}`;
12+
const hugoBin = `./bin/hugo_0.24.1_${process.platform}_amd64${process.platform === "windows" ? ".exe" : ""}`;
1313
const defaultArgs = ["-d", "../dist", "-s", "site", "-v"];
1414

1515
gulp.task("hugo", (cb) => buildSite(cb));

site/archetypes/incidents.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
+++
22
# default attributes for an incident.
33
#
4-
# Hugo adds `title` and `date` by default
5-
# when running `hugo new incidents/new-incident.md`,
6-
# so we don't have to specify them here.
4+
title = "{{ replace .TranslationBaseName "-" " " | title }}"
5+
date = {{ .Date }}
76

87
# severity: represents the impact of
98
# your system due to the current incident.

0 commit comments

Comments
 (0)